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 revision Previous revision
Next revision
Previous revision
plugin:struct:filters [2016-07-20 16:44]
andi [Comparators]
plugin:struct:filters [2019-07-03 20:02] (current)
rkaa shemas > schema (typo)
Line 13: Line 13:
 <​code>​ <​code>​
 ---- struct table ---- ---- struct table ----
-schemas  ​: projects A+schema ​  : 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 46: Line 46:
 <​code>​ <​code>​
 ---- struct table ---- ---- struct table ----
-schemas  ​: projects A+schema ​  : 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.//<​column>//​$''​ | The struct data saved for the current page in given //<​column>// ​|+| ''​$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.1469025873.txt.gz · Last modified: 2016-07-20 16:44 by andi