[pmwiki-users] How to output nice table format from fox form?

Hans design5 at softflow.co.uk
Wed Jan 25 08:35:57 CST 2012


Wednesday, January 25, 2012, 11:03:03 AM, Mike Turco wrote:

> This is on the page itself:
> (:pagelist fmt=Site.LocalTemplates#contactlist order=-name1 group=Contacts count=4:)

you could just use fmt=#contactlist as sIte.LocalTemplates is a
default page for the pagelist function to look for templates.

> This is in Site.LocalTemplates:
> [[#contactlist]]
> (:if equal {<$Group}:)
> (:table width="90%" :)
> (:cell style="background:#e5e5ff;padding-left:5px" :)'''Name'''
> (:cell style="background:#e5e5ff;padding-left:5px" :)%thd%'''Mobile'''
> (:cellnr style="background:#eeeeff;padding-left:5px" :){{=$FullName}$:name1}
> (:cell style="background:#eeeeff;padding-left:5px" :){{=$FullName}$:mobile}
(:if equal {>>$Group}:)
> (:tableend:)(:if:)
> [[#contactlist]]

this should end as [[#contactlistend]]
Maybe that us what confuses pagelist.
Your ptvs in the templates look fine.

None of this has to do with Fox, as you use Fox only to create the
pages and PTVs, then use pagelist to extract PTV content.

  ~Hans




More information about the pmwiki-users mailing list