It's better when it's simple

User Tools

Site Tools


Struct Plugin

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.

To manage assignment patterns, log in as a Manager and access the “Admin” page. Select the “Struct Schema Assignments” from the “Additional Plugins” section.

The assignment manager shows a list of currently active patterns and the schemas they assign. A form at the bottom allows to add a new pattern to assign a selected schema to all matching pages. Assignments can be done on a page or namespace basis or using a regular expression.

For example, the following regular expression will assign the schema to all pages in mynamespace except for foo and bar: /mynamespace:(?!foo)(?!bar)./

A page can have multiple schemas assigned.

plugin/struct/assignments.txt · Last modified: 2020-05-13 13:23 by annda

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