[pmwiki-users] How to create Directive for Titles

Sebastian Siedentopf schlaefer at macnews.de
Fri Oct 7 10:50:12 CDT 2005


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.

Sebastian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2369 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20051007/18415e1b/attachment.bin 


More information about the pmwiki-users mailing list