Changes between Version 80 and Version 81 of TagsPlugin


Ignore:
Timestamp:
May 23, 2015, 8:10:27 AM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TagsPlugin

    v80 v81  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 {{{
    4 #!NewsFlash
    5 = News =
    6  2014-04-06:: '''`tractags-0.7` release'''
    7  2011-07-06:: Version 0.6 is a complete rewrite for Trac 0.11. This page documents that version. Refer to ["TagsPlugin/0.5"] for information on older versions of the plugin. Also works on Trac 0.12.
    8 = !ToDo =
    9  * work towards release `tractags-0.8`
    10 }}}
    11 
    123= A Tagging System for Trac
    134
    14 The TagsPlugin implements both a generic tagging engine, and front ends for the Wiki and ticket systems. An extra text entry box is added to the Wiki edit page for tagging Wiki pages, and ticket fields (you can configure which ones) are treated as tags for the ticket system.
    15 
    16 The TagsPlugin was originally created by [wiki:muness Muness Alrubaie] but has since been completely rewritten by [wiki:athomas Alec Thomas], and now maintained by hasienda.
     5== Description
     6
     7This plugin implements both a generic tagging engine, and front ends for the Wiki and ticket systems. An extra text entry box is added to the Wiki edit page for tagging Wiki pages, and ticket fields (you can configure which ones) are treated as tags for the ticket system.
     8
     9This plugin was originally created by [wiki:muness Muness Alrubaie], but has since been completely rewritten by [wiki:athomas Alec Thomas], and now maintained by hasienda.
    1710
    1811Have a look at [wiki:TagsPlugin/RelatedHacks some other hacks], that may fit well and complement your !TagsPlugin installation nicely.
     
    3730
    3831 1. Go to the wiki entry you want to tag.
    39  2. Click on ''Edit This Page''
     32 2. Click on ''Edit This Page''.
    4033 3. Under ''Change information'', ''Tag under:'', enter the tags you want to categorize the entry under. Separate tags with spaces.
    4134 4. Click ''Save changes''.
     
    5043
    5144 1. Go to the wiki entry you want to ''untag''.
    52  2. Click on ''Edit This Page''
     45 2. Click on ''Edit This Page''.
    5346 3. Under ''Change information'', ''Tag under:'', remove the tag from the list.
    5447 4. Click ''Save changes''.
     
    7164||`realm:<realm>`||Restrict to tags in `<realm>` where realm is `wiki`, `ticket`, etc.||
    7265 3. Sub-expressions can be grouped inside parentheses `(`, `)`.
    73  4. Expressions and individual tags can be quoted with single `'` or double `"` quotes. (check #3624)
     66 4. Expressions and individual tags can be quoted with single `'` or double `"` quotes (#3624).
    7467
    7568 Examples::
     
    8073==== /tags handler
    8174
    82 Going to /tags under your project will show a list of all tags in the wiki.  /tags/?q=<query> will show all the objects matching ''<query>''.  e.g. [http://trac-hacks.org/tags/?q=plugin]. This accepts all the parameters that the !ListTagged macro does.  e.g. [http://trac-hacks.org/tags?q=plugin%20or%20macro].
     75Going to /tags under your project will show a list of all tags in the wiki. /tags/?q=<query> will show all the objects matching ''<query>'', eg [http://trac-hacks.org/tags/?q=plugin]. This accepts all the parameters that the !ListTagged macro does, eg [http://trac-hacks.org/tags?q=plugin%20or%20macro].
    8376
    8477==== `tag:<tag>` or `tagged:<query>`
     
    10396 Examples::
    10497  * Intersection of `macro` and `plugin` tags:  `[[ListTagged(macro plugin)]]`
    105   * All resources tagged  `macro` but not `plugin`:     `[[ListTagged(macro -plugin)]]`
     98  * All resources tagged `macro` but not `plugin`:      `[[ListTagged(macro -plugin)]]`
    10699  * Tickets tagged with `macro`:         `[[ListTagged(realm:ticket macro)]]`
    107100  * Pages tagged with `macro`:         `[[ListTagged(realm:wiki macro)]]`
     
    120113
    121114Generic installation guidelines are troubleshooting can be found at TracPlugins.
    122  Note before upgrading:: older !TagsPlugin configuration '''must be removed'''. In  particular `trac.wiki.web_ui.wikimodule = disabled` and `default_handler = TagsWikiModule`.
     115 Note before upgrading:: older !TagsPlugin configuration '''must be removed'''. In particular, `trac.wiki.web_ui.wikimodule = disabled` and `default_handler = TagsWikiModule`.
    123116
    124117Steps to install and configure this plugin:
     
    131124         2. [trac:wiki:TracPlugins Build and install an egg] from this source.
    132125      1. With `easy_install`:
    133          {{{
    134          #!sh
     126         {{{#!sh
    135127         $ sudo easy_install https://trac-hacks.org/svn/tagsplugin/tags/0.7
    136128         }}}
     
    142134    * Ticket fields from which to gather tags. Defaults to `keywords`. Custom fields are currently not supported.
    143135  * Example:
    144 {{{
    145 #!ini
     136{{{#!ini
    146137[tags]
    147138ignore_closed_tickets = true
     
    150141  * For v0.7, after install see the TracIni page for the available configuration options.
    151142   * Especially you may want to alter the following list of realms, you enable tag change records (default: ''wiki-only'' as shown here):
    152 {{{
    153 #!ini
     143{{{#!ini
    154144[tags]
    155145revisable_realms = wiki
    156146}}}
    157  1. '''Enable'''
    158     * Update your TracIni file (`..../trac.ini`) with:
    159 {{{
    160 #!ini
     147 1. '''Enable''' plugin by updating your TracIni file (`..../trac.ini`) with:
     148{{{#!ini
    161149[components]
    162150tractags.* = enabled
    163151}}}
    164  1. '''Run''' on your Trac environment
    165     {{{
    166     #!sh
     152 1. '''Run''' on your Trac environment:
     153    {{{#!sh
    167154    $ trac-admin <env> upgrade
    168155    }}}
    169156 1. '''Restart''' web server:
    170     {{{
    171     #!sh
     157    {{{#!sh
    172158    $ sudo /etc/init.d/apache2 restart
    173159    }}}
    174160 1. '''Grant''' `TAGS_VIEW` and `TAGS_MODIFY` permissions to your users according to the policies that you'd like to implement. Permissions are assigned since v0.7 for a new install to anonymous and authenticated users respectively, and you'll only need to adjust that to your needs.
    175  1. '''Test''' At this stage the plugin should be working and you should see a text control for tags in your Wiki edit page. You should also see an entry in the main navigation bar labeled ''Tags''.
     161 1. '''Test''' the plugin and you should see a text control for tags in your Wiki edit page. You should also see an entry in the main navigation bar labeled ''Tags''.
    176162
    177163=== About i18n/l10n support
    178164
    179 Since 0.7 this plugin is prepared for localization.
    180 
    181 But English message texts are still the (POSIX) default. If this isn't your preferred language, you can
     165Since 0.7 this plugin is prepared for localization, and English message texts are still the (POSIX) default. If this isn't your preferred language, you can
    182166 1. check if it's already available from the [TracPluginTranslation Trac plugin l10n project] at [http://www.transifex.net/projects/p/Trac_Plugin-L10N/c/tractags Transifex] or
    183  1. do it yourself (see the [http://trac.edgewall.org/wiki/CookBook/PluginL10N#Dotranslatorswork l10n cookbook page for Trac plugins] for more details).
     167 1. do it yourself, see the [http://trac.edgewall.org/wiki/CookBook/PluginL10N#Dotranslatorswork l10n cookbook page for Trac plugins] for more details.
    184168
    185169You've done a new translation? Superb! Contributing your translation is highly appreciated.
     
    193177
    194178Preparing the plugin from source requires '''no additional steps''' for compiling message catalog files. Only to include translations marked as `# fuzzy` by the translator, you'll want to do a manual message catalog compilation with the extra `-f` argument before packaging:
    195 {{{
     179{{{#!sh
    196180cd tagsplugin/
    197181python ./setup.py compile_catalog -f
    198182python ./setup.py bdist_egg
    199 }}}
     183}}}
     184
    200185Due to a known Trac issue ''Babel has to be installed prior to Trac'', to get it all working as expected.[[BR]]
    201186Again, for more details see the [t:wiki:CookBook/PluginL10N#Compileanduseit l10n cookbook page for Trac plugins].