[pmwiki-users] RE: How to create Directive for Titles

Miller, Joshua web at cityofelmira.net
Fri Oct 7 12:41:55 CDT 2005


Christian,

That didn't work...I still get this:

(:title TypePageTitle:)
!{Welcome} Page Title

I'm going to go through my PHP books and see if I can find something...
I'll let you know if I do...

-Josh 


-----Original Message-----
From: chr at home.se [mailto:chr at home.se] 
Sent: Friday, October 07, 2005 1:16 PM
To: pmwiki-users at pmichaud.com
Subject: [pmwiki-users] RE: How to create Directive for Titles

On Fri, 7 Oct 2005, Miller, Joshua wrote:

> 
> 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:

Hmm... sounds like you need to quote it somehow. For a general string, e.g.
"$Titlespaced" you'd do "\$Titlespaced". For a string in single quotes this
is generally not needed, e.g. '$Titlespaced', but I'm guessing the string
below in single quotes is evaluated later on. So try the modified code below
(I've inserted '\\' which I hope becomes a '\'):

$GUIButtons['h1'] = array(400,
                          '(:title TypePageTitle:)\\n!{\\$Titlespaced} ',
                          '\\n', '$[Page Title]',
                          '$GUIButtonDirUrlFmt/h2.gif"$[Page Title]"');

Btw, is there some cookpage where all these additional ideas for GUI-buttons
could be written down?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44
http://www.md.kth.se/~chr



_______________________________________________
pmwiki-users mailing list
pmwiki-users at pmichaud.com
http://host.pmichaud.com/mailman/listinfo/pmwiki-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20051007/39507c07/attachment.html 


More information about the pmwiki-users mailing list