DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:struct:assignments

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:assignments [2023-05-05 14:53] 212.201.117.6plugin:struct:assignments [2024-05-02 16:47] (current) – link asheenlevrai
Line 2: Line 2:
 ====== Struct Plugin: Assignments ====== ====== Struct Plugin: Assignments ======
  
-What structured data can be added to a page depends on the schema assigned to that page. The assignment is done through patterns - if a page matches a configured pattern, the appropriate schema will be used.+===== Page data ===== 
 + 
 +What structured data can be added as page data to a page depends on the schema assigned to that page. The assignment is done through patterns - if a page matches a configured pattern, the appropriate schema will be used.
  
 To manage assignment patterns, log in as a [[config:manager|Manager]] and access the "Admin" page. Select the "Struct Schema Assignments" from the "Additional Plugins" section. To manage assignment patterns, log in as a [[config:manager|Manager]] and access the "Admin" page. Select the "Struct Schema Assignments" from the "Additional Plugins" section.
Line 9: Line 11:
  
 For example, the following regular expression will assign the schema to all pages in ''mynamespace'' except for ''foo'' and ''bar'': ''/mynamespace:(?!foo)(?!bar)./'' For example, the following regular expression will assign the schema to all pages in ''mynamespace'' except for ''foo'' and ''bar'': ''/mynamespace:(?!foo)(?!bar)./''
 +
 +''**Question:** please add a link or explain how [[https://en.wikipedia.org/wiki/Regular_expression|regular expressions]] work. Maybe a [[https://www.rexegg.com/regex-quickstart.html|list]] of valid regex or [[https://regex101.com/|this tool]] (or [[https://regexr.com/|this one]]). Thanks''
  
 A page can have multiple schemas assigned. But, a page can only have one set (row) of page data from each of those schemas (see [[plugin:struct:csvimport|page data csv import]] and [[plugin:struct:dbinternals#data|struct database internals]]). A page can have multiple schemas assigned. But, a page can only have one set (row) of page data from each of those schemas (see [[plugin:struct:csvimport|page data csv import]] and [[plugin:struct:dbinternals#data|struct database internals]]).
 +
 +**Note:** Also see the section [[plugin:struct:schemaedit#schema_usage|Schema Usage]] for general informations on struct data.
 +
plugin/struct/assignments.1683291183.txt.gz · Last modified: 2023-05-05 14:53 by 212.201.117.6

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