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

Mike Turco turco.mike at gmail.com
Wed Jan 25 05:03:03 CST 2012


Hi,

I'm going through the learning curve on pmwiki and fox, and don't have
a lot of experience with PHP and the like (although I do have some).

I loaded pmwiki on a site of mine along with some of the fox forms
add-ons. Then I loaded the Contacts example that goes along with fox
forms. I'm trying to create a formatted table based on data within the
contact forms.

I'm sure I have the field names (PTV's??) correct.

This is what does not work:

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

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]]

Here is something that does work, but there is no formatting of the
table. All of the following has been typed into the page itself.

(:pagelist group={$Group} list=normal fmt=#customlist name=-*Contact*:)

(:if false:)
[[#customlist]]
(:template first:)
||
||!Name ||!Mobile ||!Email ||
(:template each:)
||[[{=$FullName}|+]] ||{{=$FullName}$:mobile} ||{{=$FullName}$:email} ||
[[#customlistend]]
(:ifend:)

As far as I can tell, the problem with the first (broken) example is
that I am using the wrong format for field names. I've done quite a
lot of searching and reading on the website, but am feeling a bit
lost.

Thanks!

Mike

--
Mike Turco
Phone: (310) 714-9669
Access Development: http://miketurco.com
Access Downloads: http://miketurco.com/category/downloads



More information about the pmwiki-users mailing list