Инструменты пользователя

Инструменты сайта


wiki:syntax.my_icons_2

data Plugin

Совместим с «Докувики»

  • 2024-02-06 "Kaos" неизвестно
  • 2023-04-04 "Jack Jackrum" неизвестно
  • 2022-07-31 "Igor" неизвестно
  • 2020-07-29 "Hogfather" да

plugin Add and query structured data in your wiki

Последнее обновление:
2024-01-30
Предоставляет
Syntax, Helper, Action
Репозиторий
исходный код
Конфликтует с
fckg
Требует
sqlite

Название расширения содержит символ подчёркивания, «градусник» популярности формироваться не будет.

Это расширение не находится в пространстве имен 'plugin' или 'template' и поэтому игнорируется.

Похож на fields, pagemod, strata, struct

Теги: data, database, listing, sqlite, tables, tags

This plugin allows you to add structured data to any DokuWiki page. Think about this data as additional named attributes. Those attributes can then be queried and aggregated. The plugin is similar to what was done here for the repository plugin but its internals are very different to it.

:!: You might want to consider using the spiritual successor to this plugin: struct Plugin

Download and Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Changes

Build Status

Updating from versions prior to 2013-02-06

Be sure to update the sqlite plugin and follow its instructions on sqlite version upgrades.

Updating from versions prior to 2010-03-22

Since 2010-03-22, the data plugin uses the sqlite helper plugin. Therefore, the database file location and structure changed. If you want to keep your old database, you have to perform the following steps prior to upgrading the data plugin:

  1. Install the sqlite plugin
  2. Move the file data/cache/dataplugin.sqlite to data/meta/data.sqlite
  3. Perform the following SQL statements on the database (for example using the sqlite plugin’s admin page)
    CREATE TABLE opts (opt,val);
    CREATE UNIQUE INDEX idx_opt ON opts(opt);
    INSERT INTO opts VALUES ('dbversion', 1);
  4. Upgrade the data plugin

If you upgraded the data plugin before these steps, a blank data.sqlite has been created and you have to copy the data/cache/dataplugin.sqlite over the existing data/meta/data.sqlite.

Plugin Syntax

This plugin depends on multiple parts, each having a similar syntax. The syntax defines a block with various key/value pairs configuring the behaviour of the plugin part. The following parts are available:

Part Function
Data Entry Input
Data Table Output
Data List Output
Related Pages Output
Tag Cloud Control

Data Entry (Input)

This part is used to add structured data to a page. All data entered here is tied to the page. So you can use it only once on a page1). Let's start with an example:

[list of tags] меня есть строки для ввода информации в таблицы и вывода. Как мне сделать, что бы при вводе или выводе логина, содержащий balloon-left.png.символы «<» и «>», заменить их на «&lt» и «&gt»?

Ссылка на оригинальную статью

index.php
Вставить код PHP
style.css
Вставить код CSS
script.js
Вставить код JS

«См.подробности»

Скрытый блок текста

8-O :&18: wp application-dock.png.

lib/tpl/dokuwiki/css/content.less
/*____________ images ____________*/
/* голубая рамка при наведении*/
/* embedded images (styles are already partly set in lib/styles/all.css) */
 
 
.dokuwiki img.media:hover{
background:#FDFDFB;
border:1px solid #8DDCEF;
-moz-box-shadow:0 0 10px 2px #B9E9F7;
-webkit-box-shadow:0 0 10px 4px #B9E9F7;
box-shadow:0 0 10px 4px #B9E9F7;}
 
.dokuwiki img.media {
    margin: .2em 0;
	background: none repeat scroll 0 0 #F8F7F1;
border: 1px solid #00a8e1; /*#FFFFFF по умолчанию*/
box-shadow: 0 0 5px 2px #DDDDDD;
}

Пример тень при наведении курсора

1)
any additional dataentry on the same page would overwrite any preceding dataentry on this page and so - while many dataentry blocks on one page may be displayed - only the values of the last one would be stored in the SQLite database and could be retrieved as an output by e.g. a datatable
Только авторизованные участники могут оставлять комментарии.
wiki/syntax.my_icons_2.txt · Последнее изменение: 2025/01/14 21:09 — 127.0.0.1