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
Next revision
Previous revision
Next revisionBoth sides next revision
plugin:struct:filters [2016-07-28 12:36] – [Table] andiplugin:struct:filters [2019-06-07 17:20] – Add new placeholders solewniczak
Line 15: Line 15:
 schemas  : projects A schemas  : projects A
 cols     : %pageid%, product, budget, team cols     : %pageid%, product, budget, team
-filter   : product = "Fantastico Basic" +filter   : product = Fantastico Basic 
-filteror : product = "Fantastico Professional"+filteror : product = Fantastico Professional
 ---- ----
 </code> </code>
Line 36: Line 36:
 | ''*~''           | Wildcard match. Look for matches containing search term; e.g. ''dessert*~ Pi'' match ''Apple Pie'' | | ''*~''           | Wildcard match. Look for matches containing search term; e.g. ''dessert*~ Pi'' match ''Apple Pie'' |
 | ''!~''           | Negative Wildcard match. Select everything that does not match the expression. | | ''!~''           | Negative Wildcard match. Select everything that does not match the expression. |
-| ''=*''           | Regular expression search |+| ''=*''           | Regular expression search; example: ''keyword =* Hydraulic%%|%%Spindle'' filters out pages where the keyword is "Hydraulics" or "Spindle"  |
  
 ===== Value Placeholders ===== ===== Value Placeholders =====
Line 48: Line 48:
 schemas  : projects A schemas  : projects A
 cols     : %pageid%, product, budget, team cols     : %pageid%, product, budget, team
-filter   : team = %USER%+filter   : team = $USER$
 ---- ----
 </code> </code>
  
-^ Placeholder                        ^ Description                                                          +^ Placeholder                        ^ Description                                                                    
-| ''$USER$''                         | currently logged in user                                             +| ''$USER$''                         Currently logged in user                                                       | 
-| ''$TODAY$''                        | Today's date in Y-m-d format                                         +| ''$USER.name$''                    | Real name of currently logged in user                                          | 
-| ''$ID$''                           | The page's full page ID (of the page the aggregation is defined on)  +| ''$USER.email$''                   | Email of currently logged in user                                              | 
-| ''$PAGE$''                         | The page's page name without a namespace                             +| ''$USER.grps$''                    | Groups of currently logged in user. Useful with [[plugin::structgroup]] plugin.
-| ''$NS$''                           | The page's namespace                                                 +| ''$TODAY$''                        | Today's date in Y-m-d format                                                   
-| ''$STRUCT.//<schema>.<field>//$''  | The struct data saved for the current page in given field.           |+| ''$ID$''                           | The page's full page ID (of the page the aggregation is defined on)            
 +| ''$PAGE$''                         | The page's page name without a namespace                                       
 +| ''$NS$''                           | The page's namespace                                                           
 +| ''$STRUCT.//<schema>.<field>//$''  | The struct data saved for the current page in given field.                     |
  
 ===== Dynamic Filters ===== ===== Dynamic Filters =====
Line 68: Line 71:
 <code> <code>
 ---- struct table ---- ---- struct table ----
-schemas    : projects A+schema     : projects A
 cols       : %pageid%, product, budget, team cols       : %pageid%, product, budget, team
 dynfilters : 1 dynfilters : 1
plugin/struct/filters.txt · Last modified: 2023-11-01 16:06 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