DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:struct:filters

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
plugin:struct:filters [2024-11-09 15:59] – [Value Placeholders] Aleksandrplugin:struct:filters [2025-05-12 13:08] (current) – [Table] andi
Line 53: Line 53:
 </code> </code>
  
-^ Placeholder                        ^ Description                                                                    +^ Placeholder                        ^ Description                                                                                                                                                                                                                                                                                                                                    
-| ''$USER$''                         | Currently logged in user                                                       +| ''$USER$''                         | Currently logged in user                                                                                                                                                                                                                                                                                                                       
-| ''$USER.name$''                    | Real name of currently logged in user                                          +| ''$USER.name$''                    | Real name of currently logged in user                                                                                                                                                                                                                                                                                                          
-| ''$USER.email$''                   | Email of currently logged in user                                              +| ''$USER.email$''                   | Email of currently logged in user                                                                                                                                                                                                                                                                                                              
-| ''$USER.grps$''                    | Groups of currently logged in user. Useful with [[plugin:structgroup]] plugin.| +| ''$USER.grps$''                    | Groups of currently logged in user. Useful with [[plugin:structgroup]] plugin.                                                                                                                                                                                                                                                                 
-| ''$TODAY$''                        | Today's date in Y-m-d format                                                   +| ''$TODAY$''                        | Today's date in Y-m-d format                                                                                                                                                                                                                                                                                                                   
-| ''$DATE(//<formula>//)$''          | A calculated date, where ''//<formula>//'' is a valid [[phpfn>datetime.formats|Date/Time Format]] | +| ''$DATE(//<formula>//)$''          | A calculated date, where ''//<formula>//'' is a valid [[phpfn>datetime.formats|Date/Time Format]]                                                                                                                                                                                                                                              
-| ''$ID$''                           | The page's full page ID (of the page the aggregation is defined on)            +| ''$ID$''                           | The page's full page ID (of the page the aggregation is defined on)                                                                                                                                                                                                                                                                            
-| ''$PAGE$''                         | The page's page name without a namespace                                       +| ''$PAGE$''                         | The page's page name without a namespace                                                                                                                                                                                                                                                                                                       
-| ''$NS$''                           | The page's namespace                                                           +| ''$NS$''                           | The page's namespace                                                                                                                                                                                                                                                                                                                           | 
-| ''$STRUCT.//<schema>.<field>//$''  | The struct data saved for the current page in given field.                     |+| ''$NSORID$''                       | This placeholder will resolve to the current page unless when called on a namespace start page where it will return the namespace instead. This is useful to create included aggregations that behave different on start pages and content pages. See [[http://github.com/cosmocode/dokuwiki-plugin-struct/issues/712|#712]] for an example.  
 +| ''$STRUCT.//<schema>.<field>//$''  | The struct data saved for the current page in given field.                                                                                                                                                                                                                                                                                     |
  
 ===== Dynamic Filters ===== ===== Dynamic Filters =====
plugin/struct/filters.txt · Last modified: by andi

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