[pmwiki-users] How to create Directive for Titles
Miller, Joshua
web at cityofelmira.net
Fri Oct 7 11:19:01 CDT 2005
Thank you all for your help!
Now, I am trying to create a button to insert
(:title TypePageTitle:)
!{$Title spaced}
Into the Wiki with a single click.
My button code in y config file looks like:
$GUIButtons['h1'] = array(400, '(:title TypePageTitle:)\\n!{$Titlespaced} ',
'\\n', '$[Page Title]',
'$GUIButtonDirUrlFmt/h2.gif"$[Page Title]"');
As you can guess...the output looks like this:
(:title TypePageTitle:)
!{Welcome} Page Title
What can I put in the GUIButton code to insert $Titlespaced instead of the
value of that particular variable?
Thanks a bunch!!
Regards,
-Josh
-----Original Message-----
From: Dominique Faure [mailto:dominique.faure at gmail.com]
Sent: Friday, October 07, 2005 11:37 AM
To: Miller, Joshua
Subject: Re: [pmwiki-users] How to create Directive for Titles
> 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
>
You should have a look on
http://www.pmwiki.org/wiki/PmWiki/MarkupVariables and use the {$Titlespaced}
markup variable as in:
(:title My Title:)
! {$Titlespaced}
Regards,
Dom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20051007/d1e82806/attachment.html
More information about the pmwiki-users
mailing list