[pmwiki-users] RFC: Attachment variable syntax

Simon nzskiwi at gmail.com
Fri May 7 14:32:58 CDT 2010

Yes, well on http://pmwiki.org/wiki/PmWiki/PageVariables#specialreferences I
visualise the * and being a shortcut for a prepend of the page name to the
page or page text variable (analagous to {ThisGroup.ThisPage$PageVariable})

I think the important thing is trying to produce markup that would work the
user expects, and they are already used to "{*".

Actually I just noticed a minor markup discontinuity,
 {MyGroup.MyPage$PageVariable} versus Attach:MyGroup.MyPage/PageVariable}
or perhaps not, (I'm thinking  {MyGroup.MyPage/$PageVariable} - which by the
way I am not suggesting).



On 8 May 2010 00:29, Eemeli Aro <eemeli at gmail.com> wrote:

> On 7 May 2010 14:21, Simon <nzskiwi at gmail.com> wrote:
> > I'm thinking of consistency with
> > http://pmwiki.org/wiki/PmWiki/PageVariables#specialreferences
> Yah, me too. Problem is that page talks of prefixing the variable with
> *, whereas <
> http://pmwiki.org/wiki/PmWiki/PageListTemplates#specialreferences>
> and the source code consider *, <, =, > as indicators to replace with
> a page name.
> But I'll go with your suggestion in any case, since otherwise I'd have
> to differentiate between {Attach:=/duck.jpg$Filesize} and
> {Attach:=$Filesize} which seems more obfuscated than the difference
> between {=Attach:duck.jpg$Filesize} and {Attach:=$Filesize}.
> eemeli

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100508/0800bf94/attachment.html>

More information about the pmwiki-users mailing list