List Info

Thread: How do you insert the name of the Wiki page into the Wiki page?




How do you insert the name of the Wiki page into the Wiki page?
country flaguser name
Canada
2007-03-31 15:55:13
Hi,

I am using the Trac Wiki to write documentation and I find
that I rename 
pages quite a bit, often enough in fact that I want to
reduce the 
workload of doing so as much as possible.  In Trac there are
basically 
three places where what a page is 'called' is defined:

  1. The name of the page.
  2. The title of the page.
  3. The titles of any links to the page.

I have undergone an effort to collapse all three of these
into one, by:

  * Renaming all pages to have a name that can be used as a
title.
  * Changing all links to MoinMoin-style free links having
no explicit 
title.
  * Writing a macro to insert the name of the current page
and putting 
it at the top of every page.
  * Changing the WikiRenamePlugin to handle free links.

Now, when I rename a page with the WikiRenamePlugin, link
titles are 
adjusted automatically because they are the same as the page
names, and 
page titles are adjusted automatically because they are
inserted onto 
each page at render time.

I was just wondering if there was an alternate way to get
the current 
page name onto the page in Wiki markup.

-- 
Danny MacMillan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Trac Users" group.
To post to this group, send email to trac-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )