plugin:strata
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:strata [2016-02-17 09:59] – Aleksandr | plugin:strata [2023-10-31 01:03] (current) – Klap-in | ||
---|---|---|---|
Line 3: | Line 3: | ||
---- plugin ---- | ---- plugin ---- | ||
description: | description: | ||
- | author | + | author |
- | email : b.wanders@utwente.nl | + | email : francois.kaag@cardynal.fr |
type : syntax, action, helper | type : syntax, action, helper | ||
- | lastupdate : 2016-02-03 | + | lastupdate : 2023-10-10 |
- | compatible : Ponder Stibbons, Binky, Weatherwax, Hrun, Detritus | + | compatible : Jack Jackrum |
depends | depends | ||
- | conflicts | + | conflicts |
- | similar | + | similar |
tags : database, sqlite, data, tables, listing, mysql, postgresql | tags : database, sqlite, data, tables, listing, mysql, postgresql | ||
- | downloadurl: | + | downloadurl: |
- | bugtracker : https:// | + | bugtracker : https:// |
- | sourcerepo : https:// | + | sourcerepo : https:// |
donationurl: | donationurl: | ||
Line 21: | Line 21: | ||
---- | ---- | ||
- | The Strata | + | This plugin |
- | Though a little more complex than the [[plugin:data]] plugin, Strata allows you to create tables that combine data from different pages. Strata also supports previewing your edits showing you the correctly changed data, and has a flexible and user-controlled data type display. Finally, you can put multiple data entries on a single page, and have them combined or remain separate depending on how you want to model your data. | + | The Strata plugin allows you to add data to your pages, just like the [[data]] plugin. You can think of this data either as named values attached to the page, or as describing things on the page in a more structured way. |
+ | |||
+ | Though a little more complex than the [[data]] plugin, Strata allows you to create tables that combine data from different pages. Strata also supports previewing your edits showing you the correctly changed data, and has a flexible and user-controlled data type display. Finally, you can put multiple data entries on a single page, and have them combined or remain separate depending on how you want to model your data. | ||
**Requirements: | **Requirements: | ||
- | * Strata requires PHP 5.3.x | + | * Strata requires PHP 5.6.x |
* [[http:// | * [[http:// | ||
Line 32: | Line 34: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Search and install |
- | After installation, | + | After installation, |
+ | |||
+ | Strata followes DokuWiki' | ||
===== Examples/ | ===== Examples/ | ||
+ | |||
+ | //For a separate page focusing only on examples and troubleshooting, | ||
Below is a very simple example of how to use Strata. | Below is a very simple example of how to use Strata. | ||
Line 54: | Line 60: | ||
^ Page Title // | ^ Page Title // | ||
^ Full Name | John Doe | | ^ Full Name | John Doe | | ||
- | ^ Age | 20 | | + | ^ Age | 24 | |
^ Contact | ^ Contact | ||
^ Friends | ^ Friends | ||
Line 77: | Line 83: | ||
The next section will go over the syntax in more detail. | The next section will go over the syntax in more detail. | ||
+ | |||
===== Syntax ===== | ===== Syntax ===== | ||
- | The strata plugin allows you to add data to your pages and to query that data from your pages. The quick guide will get you up and running with some examples of how to enter and query. More advanced uses are discussed in the [[.strata:reference guide]]. | + | The strata plugin allows you to add data to your pages and to query that data from your pages. The quick guide will get you up and running with some examples of how to enter and query. More advanced uses are discussed in the [[~:reference guide]]. |
A good way to get more experienced is to add some simple data to your wiki, and start querying it. Most error messages are descriptive enough to get some idea of what went wrong. | A good way to get more experienced is to add some simple data to your wiki, and start querying it. Most error messages are descriptive enough to get some idea of what went wrong. | ||
+ | |||
==== Data Block ==== | ==== Data Block ==== | ||
Line 102: | Line 110: | ||
The same example, but extended with more features: | The same example, but extended with more features: | ||
+ | |||
< | < | ||
<data person> | <data person> | ||
Line 210: | Line 219: | ||
* **image** (type hint: size to scale the image to)\\ Displays an image. The optional hint is treated as the size to scale the image to. Give the hint in WIDTHxHEIGHT format. | * **image** (type hint: size to scale the image to)\\ Displays an image. The optional hint is treated as the size to scale the image to. Give the hint in WIDTHxHEIGHT format. | ||
* **link** (type hint: The link title)\\ Creates a link. This type is multi-purpose: | * **link** (type hint: The link title)\\ Creates a link. This type is multi-purpose: | ||
- | * **ref** (type hint: namespace)\\ References another piece of data or wiki page, and creates a link. The optional hint is used as namespace for the link. If the hint ends with a #, all values will be treated as fragments. | + | * **ref** (type hint: namespace)\\ References another piece of data or wiki page, and creates a link. An optional |
* **wiki**\\ Allows the use of dokuwiki syntax; only non-block syntax is allowed (only links, formatting, etc.; no tables, headers, and other large stuff). The hint is ignored. | * **wiki**\\ Allows the use of dokuwiki syntax; only non-block syntax is allowed (only links, formatting, etc.; no tables, headers, and other large stuff). The hint is ignored. | ||
+ | * ** enum** (type hint: value set name)\\ Searches the entry in the value set, a ''< | ||
==== Aggregates ==== | ==== Aggregates ==== | ||
- | Aggregates are used on displays of variables. They are attached to the variable with '' | + | Aggregates are used on displays of variables. They are attached to the variable with '' |
On your own wiki, you can get a list of all available aggregates with '' | On your own wiki, you can get a list of all available aggregates with '' | ||
Line 234: | Line 244: | ||
* **Default database source name** (// | * **Default database source name** (// | ||
* **The name of the 'is a' relation** (// | * **The name of the 'is a' relation** (// | ||
+ | * ** Data scope reduced to the current namespace ** (// | ||
* **The name of the 'entry title' relation** (// | * **The name of the 'entry title' relation** (// | ||
* **Enable debug information? | * **Enable debug information? | ||
* **Is the data entry syntax enabled?** (// | * **Is the data entry syntax enabled?** (// | ||
+ | |||
+ | Furthermore, | ||
+ | |||
+ | * **[[config: | ||
Line 296: | Line 311: | ||
The credentials file should have the following content | The credentials file should have the following content | ||
+ | |||
<file php credentials.local.php> | <file php credentials.local.php> | ||
<?php | <?php | ||
Line 310: | Line 326: | ||
=== Change Log === | === Change Log === | ||
+ | After adoption: | ||
+ | {{rss> | ||
+ | Before adoption: | ||
{{rss> | {{rss> | ||
Line 320: | Line 338: | ||
===== Bugs, Feature Requests and Patches ===== | ===== Bugs, Feature Requests and Patches ===== | ||
- | Please submit bugs and feature requests in the [[https:// | + | Please submit bugs and feature requests in the [[https:// |
plugin/strata.1455699542.txt.gz · Last modified: 2016-02-17 09:59 by Aleksandr