Changes between Version 11 and Version 12 of TracBasicMacro
- Timestamp:
- Jan 16, 2016, 6:20:54 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracBasicMacro
v11 v12 34 34 == Source 35 35 36 You can check out TracBasicMacro from [http://bitbucket.org/olemis/trac-basic-macros its Bitbucket repository] using '''Mercurial'''. Currently it is not possible to [source:tracbasicmacro browse the source] with Trac.36 You can check out TracBasicMacro from its [http://bitbucket.org/olemis/trac-basic-macros Bitbucket repository] using '''Mercurial'''. 37 37 38 38 == Example 39 39 40 Install the plugin and enable [TracBasicMacro TracBasicMacros] plugin by inserting the following lines in [TracIni trac.ini].40 Install the plugin and enable [TracBasicMacro TracBasicMacros] plugin by inserting the following lines in your [TracIni trac.ini] file: 41 41 42 42 {{{#!ini … … 51 51 - `[[ConfigOption(olemis, simelo, type=text)]]` displays the specified text. 52 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. Outputlooks like this:53 - `[[ConfigOption(trac, metanav, type=list)]]` displays a list of ''metanav'' options and looks like this: 54 54 - login 55 55 - search 56 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.57 - `[[ConfigOption(trac, permission_store, type=extension)]]` displays the component responsible of storing user permissions. 58 - `[[ConfigOption(trac, permission_policies, type=extension_list)]]` displays active permission policies. 59 - `[[ConfigOption(trac, permission_policies, type=extension_list, include_missing=true)]]` displays all permission policies, active first. 60 60 61 For up-to-datedocumentation consult `TracMacros` page in your local environment.61 For the latest documentation consult `TracMacros` page in your local environment. 62 62 63 63 '''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 `*` to make reference respectively to a particular option, all options in a section, or any option. For instance, the following configuration: … … 73 73 74 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 i nserted elsewhere e.g. in a ticket's comment) up to version 4.75 - `[[WikiHistory(,4)]]` lists versions of current wiki page (or `WikiStart` if wiki text is inserted elsewhere e.g. in a ticket's comment) up to version 4. 76 76 - `[[WikiHistory(TracGuide,cols=time:version:author)]]` lists versions of `TracGuide` wiki page but hides user comments. 77 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.