[pmwiki-users] How to create Directive for Titles

Waylan Limberg waylan at gmail.com
Fri Oct 7 11:04:42 CDT 2005


On 10/7/05, Sebastian Siedentopf <schlaefer at macnews.de> wrote:
>
> Am 07.10.2005 um 17:28 schrieb Miller, Joshua:
> >
> > The first two lines of every page in my wiki looks like this:
> >
> > (:title Title of My Page:)
> > !Title of My Page
> >
> > Is there any way to write a directive that will take the text from
> > the title and display it again so that I can have something like this:
> >
> > (:title Title of My Page:)
> > !$pagetitle
> >
> > This way, I won't have to type the Title of the page twice...the
> > first header will take what came from the previous directive....
>
> You can do
>
> (:title Title of My Page:)
> !{$Title}
>
> See also http://pmwiki.org/wiki/PmWiki/MarkupVariables for page
> variables.
>
(:title Title of My Page:)
!$Titlespaced

Should work nicely.


--
----
Waylan Limberg
waylan at gmail.com




More information about the pmwiki-users mailing list