[pmwiki-users] How to add anchors to WikiForms generated pages?

John Rankin john.rankin at affinity.co.nz
Mon Apr 17 19:27:36 CDT 2006


On Friday, 14 April 2006 7:21 AM, Bellave Jayaram <bellavejayaram at cox.net> wrote:
>Hopefully, this is an easy question. I am looking at wikiform.php to see how
>to add an anchor to a particular field (or all fields). For example, I have
>a field called Description for which I would like to add begin and end
>anchors, so that the page 00001 ends up looking like this: 
>
>[[#Desc]] <Description text> [[#DescEnd]] 
>
>when rendered in HTML. The reason for this is that I want to include only
>this section in another page. I tried (:include 00001:) and it included the
>whole page. How can I change wikiform.php so I can include only certain
>fields in other pages?

WikiForms provides a (:fpara field=Group.Page:) markup. This allows
you to include the value of the specified field on another page. For
example, (:fpara desc=Group.00007:) will insert the value of the desc
field from page 00007.

Please note that it uses the field name, not the field prompt text. If
your form template looks like this, for example

...

:Description:desc Description tool tip

...

you use "desc" not "Description".

This feature has only been lightly tested, but I think it should work.
-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list