[pmwiki-users] Navboxes on pmwiki

Michael Fake michael.j.fake at googlemail.com
Wed Apr 1 09:31:01 CDT 2009


Petko, Peter,

These are both absolutely fantastic! I was banging my head on a wall trying
to figure it out, but that is exactly what I wanted. I knew PMWiki ought to
be able to do it.

Thanks very much!
Michael.

2009/4/1 Peter Bowers <pbowers at pobox.com>

> I think PTV (PageTextVariables) will do what you want.
>
> Put this in Templates/Navbox:
>
> ===(snip)===
> Hi, my name is {$:MyName} and I live at {$:Address} but you can call me
> {$:Title}.
> ===(snip)===
>
> Then in page Mygroup.Mypage where you want to see that displayed you put
> this:
>
> ===(snip)===
> (:MyName:John Smith:)
> (:Title:Sam:)
> (:Address:132 Main St:)
> (:include Templates/Navbox:)
> ===(snip)===
>
> Now when you view Mygroup.Mypage you will see
>
> ===(snip)===
> Hi, my name is John Smith and I live at 132 Main St but you can call me
> Sam.
> ===(snip)===
>
> Is that what you were wanting?  Or were you wanting the variable to be set
> in the Nav page?
>
> -Peter
>
> 2009/4/1 Michael Fake <michael.j.fake at googlemail.com>
>
>> Hi all,
>>
>> New to PMWiki, and I promise I've spent hours and hours trawling through
>> the email archives and the main site trying to find the answer to this
>> question, but I'm still stumped: is it possible in PMWiki to create
>> templates with variables, equivalent to the templating seen in Mediawiki
>> (e.g. with navboxes, warning boxes, etc).
>>
>> I know I can edit group.headers and .footers, and I think I understand how
>> the (:include:) function and pagelist variables are working, but neither of
>> these seems capable of doing what I need.
>>
>> I'd like to be able to, say, create a table in the page Templates/Navbox,
>> with variables in the 'Name', 'Address', 'Title' cells, and then to pull
>> that table into any other page on the wiki, and set the name, address, and
>> title variables within that table on each of those pages.
>>
>> Is this possible?
>>
>> Thanks,
>> Michael.
>>
>> _______________________________________________
>> pmwiki-users mailing list
>> pmwiki-users at pmichaud.com
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090401/71a3edf0/attachment.html 


More information about the pmwiki-users mailing list