Monday, 14 September 2015 05:00

Ordering Vcards by field in SobiPro

To order Vcards by a specific field edit the entries.xsl file.

The entries.xsl file can be found in components/com_sobipro/usr/templates/<your template>/common.entries.xsl

Find where the loop begins:

<xsl:for-each select="entries/entry">

and place a call for a field immediately after the loop opens. In my example I'm using the field field_property_status

<xsl:for-each select="entries/entry">
<xsl:sort select="fields/field_property_status" order="ascending" />

For further reading check these forum posts:

and here is some general sobipro templating tips:

Published in Blog