15 | | Embed information about wiki changelog in wiki pages. |
16 | | If invoked without keyword arguments then full |
17 | | changelog is shown inside a table with columns |
18 | | `Date`, `Version`, `Description`, `Author`. Please |
19 | | read below for further details. |
| 15 | Embed information about wiki changelog in wiki pages. If invoked without keyword arguments then full changelog is shown inside a table with columns `Date`, `Version`, `Description`, `Author`. Please read below for further details. |
49 | | All the macros will be ready to use in your Trac environment. For up-to-date documentation consult `TracMacros` page in your local environment. |
| 47 | All the macros will be ready to use in your Trac environment: |
| 48 | - `[[ConfigOption(project, name)]]` displays project name. |
| 49 | - `[[ConfigOption(trac, auto_reload, type=bool)]]` displays a check-box indicating whether the option is set or not. |
| 50 | - `[[ConfigOption(trac, auto_reload)]]` idem. the macro is able to lookup metadata describing the option (if it's registered in the global `Option`'s registry). |
| 51 | - `[[ConfigOption(olemis, simelo, type=text)]]` displays the specified text. |
| 52 | - `[[ConfigOption(timeline, default_daysback, type=int)]]` displays default number of days displayed in the `Timeline`, in days. Integers are displayed like this `30`. |
| 53 | - `[[ConfigOption(trac, metanav, type=list)]]` Display a list of ''metanav'' options. Output looks like this: |
| 54 | - login |
| 55 | - search |
| 56 | - help |
| 57 | - `[[ConfigOption(trac, permission_store, type=extension)]]` display the component responsible of storing user permissions. |
| 58 | - `[[ConfigOption(trac, permission_policies, type=extension_list)]]` display active permission policies. |
| 59 | - `[[ConfigOption(trac, permission_policies, type=extension_list, include_missing=true)]]` display all permission policies, active first. |
51 | | - `[[ConfigOption(project, name)]]` displays project name. |
52 | | - `[[ConfigOption(trac, auto_reload, type=bool)]]` displays a check-box indicating |
53 | | whether the option is set or not |
54 | | - `[[ConfigOption(trac, auto_reload)]]` idem. the macro is able to lookup |
55 | | metadata describing the option (if it's registered in the global `Option`'s registry) |
56 | | - `[[ConfigOption(olemis, simelo, type=text)]]` displays something like ~~ Missing ? ~~ ''';o)''' |
57 | | - `[[ConfigOption(timeline, default_daysback, type=int)]]` displays default number of |
58 | | days displayed in the `Timeline`, in days. Integers are displayed like this `30`. |
59 | | - `[[ConfigOption(trac, metanav, type=list)]]` Display a list of ''metanav'' options. |
60 | | Output looks like this |
| 61 | For up-to-date documentation consult `TracMacros` page in your local environment. |
66 | | - `[[ConfigOption(trac, permission_store, type=extension)]] ` display the component |
67 | | responsible of storing user permissions. |
68 | | - `[[ConfigOption(trac, permission_policies, type=extension_list)]]` display active |
69 | | permission policies. |
70 | | - `[[ConfigOption(trac, permission_policies, type=extension_list, include_missing=true)]]` |
71 | | display all permission policies, active first. |
72 | | |
73 | | '''Important ! ''' Administrator must specify permissions (i.e. permission names) needed to view a particular configuration option by adding entries under `config-perm` section in [TracIni trac.ini]. Option names will be of the form `section.option`, `section.*` or `*` in order to make reference respectively to a particular option, all options in a section , or any option. For instance, the configuration shown below |
74 | | |
75 | | {{{ |
| 65 | {{{#!ini |
84 | | - `[[WikiHistory]]` lists versions of current wiki page (or |
85 | | `WikiStart` if wiki text inserted elsewhere e.g. in a ticket's comment) |
86 | | - `[[WikiHistory(,4)]]` lists versions of current wiki page (or |
87 | | `WikiStart` if wiki text inserted elsewhere e.g. in a ticket's comment) |
88 | | up to version 4 |
89 | | - `[[WikiHistory(TracGuide,cols=time:version:author)]]` lists versions |
90 | | of `TracGuide` wiki page but hides user comments. |
91 | | - `[[WikiHistory(,cols=time:comment)]]` lists versions of current |
92 | | wiki page (or `WikiStart` if wiki text inserted elsewhere e.g. in a |
93 | | ticket's comment). Only shows modification time and user comment. |
94 | | - `[[WikiHistory(TracGuide,19,cols=time:comment)]]` lists versions of |
95 | | `TracGuide` wiki page up to version 19. Only shows modification time |
96 | | and user comment. |
97 | | - `[[WikiHistory(,attr=time)]]` displays last modification time of current |
98 | | wiki page (or `WikiStart` if wiki text inserted elsewhere e.g. in a |
99 | | ticket's comment) |
100 | | - `[[WikiHistory(TracPermissions,2,attr=time)]]` displays modification time of |
101 | | version 2 of `TracPermissions` wiki page. |
| 74 | - `[[WikiHistory]]` lists versions of current wiki page (or `WikiStart` if wiki text inserted elsewhere e.g. in a ticket's comment). |
| 75 | - `[[WikiHistory(,4)]]` lists versions of current wiki page (or `WikiStart` if wiki text inserted elsewhere e.g. in a ticket's comment) up to version 4. |
| 76 | - `[[WikiHistory(TracGuide,cols=time:version:author)]]` lists versions of `TracGuide` wiki page but hides user comments. |
| 77 | - `[[WikiHistory(,cols=time:comment)]]` lists versions of current wiki page (or `WikiStart` if wiki text inserted elsewhere e.g. in a ticket's comment). Only shows modification time and user comment. |
| 78 | - `[[WikiHistory(TracGuide,19,cols=time:comment)]]` lists versions of `TracGuide` wiki page up to version 19. Only shows modification time and user comment. |
| 79 | - `[[WikiHistory(,attr=time)]]` displays last modification time of current wiki page (or `WikiStart` if wiki text inserted elsewhere e.g. in a ticket's comment) |
| 80 | - `[[WikiHistory(TracPermissions,2,attr=time)]]` displays modification time of version 2 of `TracPermissions` wiki page. |