WikiStart/tags/Setup/0.8


Setting up tags in Trac 0.8

  1. Download the right zip file below for the version of Trac you're running.
  2. Extract *.py to the wiki-macros directory of your trac environment directory.
  3. Extract wiki.cs to the templates directory of your trac environment directory.
  4. Edit any wiki page in your wiki:
    1. Put in a call to the SetupTags macro. i.e.: [[SetupTags]]
    2. Click Preview. You should see a message stating: "Tag tables successfully created!"
    3. Cancel. This macro needs only to be called once. It saves you from having to create the table by hand. If you'd rather do it that way, run this:
      CREATE TABLE wiki_namespace(name text,namespace text);
      
  5. Create a new wiki page, tags/index page in your wiki
    • Put in [[ListTags]]
    • Or [[ListTags(showpages=true)]] if you want to see a list of all the wiki entries under each tag
    • Or [[TagCloud]] if you want to use a Tag Cloud.

Attachments