DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:struct:schemaedit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:struct:schemaedit [2020-05-14 13:20] – [Schema usage] andiplugin:struct:schemaedit [2022-01-20 12:18] (current) – Added valid name info. iainhallam
Line 7: Line 7:
  
 To create a new schema, log in as a [[config:manager|Manager]] and access the "Admin" page. Select the "Struct Schema Editor" from the "Additional Plugins" section. Use the form to create a new schema. To create a new schema, log in as a [[config:manager|Manager]] and access the "Admin" page. Select the "Struct Schema Editor" from the "Additional Plugins" section. Use the form to create a new schema.
 +
 +Schema names must start with a lowercase letter, then can contain lowercase letters, numerals, and the underscore character((https://github.com/cosmocode/dokuwiki-plugin-struct/issues/595)). In other words, must match the regular expression ''^[a-z][a-z0-9_]*$''. Names that don't match this will have offending characters removed when you save the schema.
  
 Existing schemas can be selected in the table of contents and can be edited there. Existing schemas can be selected in the table of contents and can be edited there.
Line 17: Line 19:
  
   * **Page data** is directly associated with exactly the one page it was entered for. To be able to enter page data, the schema has to be assigned to the page via [[plugin:struct:assignments|Assignments]]. You can think of page data as additional metadata for a page. This is what you may know from the old [[plugin:data|data plugin]]. Page data is revisioned with the page it is associated to.   * **Page data** is directly associated with exactly the one page it was entered for. To be able to enter page data, the schema has to be assigned to the page via [[plugin:struct:assignments|Assignments]]. You can think of page data as additional metadata for a page. This is what you may know from the old [[plugin:data|data plugin]]. Page data is revisioned with the page it is associated to.
-  * **Global data** (previously called lookup schemas) is not assigned to pages. It is a collection of data sets (rows) held globally. This is useful for data that you want to use as a [[plugin:struct:type_lookup|Lookup source]] or for data that doesn't justify a page per entry. You edit them by adding a [[plugin:struct:lookupedit|Global Data Editor]] to a page. You can reference their values in any aggregation. Global data has no revisions or history.+  * **Global data** (previously called lookup schemas) is not assigned to pages. It is a collection of data sets (rows) held globally. This is useful for data that you want to use as a [[plugin:struct:type_lookup|Lookup source]] or for data that doesn't justify a page per entry. You edit them by adding a [[plugin:struct:globaledit|Global Data Editor]] to a page. You can reference their values in any aggregation. Global data has no revisions or history.
   * **Serial data** is bound to a Wiki page. In this respect they are somewhat similar to page data. However, serial data does not belong to a specific page revision and you can have many serial datasets per page. Serial data has no revisions or history.   * **Serial data** is bound to a Wiki page. In this respect they are somewhat similar to page data. However, serial data does not belong to a specific page revision and you can have many serial datasets per page. Serial data has no revisions or history.
  
  
 Note: in older versions of the plugin, the future use of the schema had to be defined when creating it. This is no longer the case. A schema can be used for all three of the above use cases simultaneously, though this will probably rarely be the case in the real world. Note: in older versions of the plugin, the future use of the schema had to be defined when creating it. This is no longer the case. A schema can be used for all three of the above use cases simultaneously, though this will probably rarely be the case in the real world.
plugin/struct/schemaedit.txt · Last modified: 2022-01-20 12:18 by iainhallam

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki