[pmwiki-users] RE: RE: How to create Directive for Titles
chr at home.se
chr at home.se
Fri Oct 7 13:19:20 CDT 2005
On Fri, 7 Oct 2005, Miller, Joshua wrote:
> Christian,
Hi Joshua,
Would you mind bottom-post when talking with me? (I get so confused
otherwise - the drawback of following to many lists and threads
simultaneously...:-)
> 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...
Unfortunately I don't think that'll help... Patrick is needed for this
one. I think it's some magic in the GUI-code that does this, or it's
the function FmtPageName().
The question might be how to escape something like '$Titlespaced' from
FmtPageName() - I fiddled with it for a little while to no avail myself.
cheers
/C
> -----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
More information about the pmwiki-users
mailing list