

Sections General Configuration simply open up the your SobiPro templateįolder and locate the common/category.xsl file and edit line 28 If you want to show more than the max subcategories set by the

Replace MAXLENGTH with the maximum length of the output you want, e.g. Replace YOURFIELD with the field name that you want to have truncated, e.g. fields/field_item_detail/data Or on the details view use (though I do not think you need to for the details view, but here it is anyway) In the xsl value section add the following after the field data Outputting content without html being shown:
#Sobipro templates how to#
Take note also that there is no elseif in XSL, you can use otherwise (shown in next how to example) or you can nest additional if statements if you want it to check for more values. The value is whatever you want to check if something is equal to it, for example is the field equal to 100, you would add 100 in the THEVALUE location. If you wish to check a value and if correct publish or if not then not publish the code is simply Where field_web_site is your web site field. Where field_item_main_image is the name of the image field you want displayed.ĭisplay a web site URL field as a link (updated). field_NAME is the field to which you want the data displayedįor a single image in the vcard use the codeįor a single image in the detail sview use the code Where YOUR TEXT is any text you want displayed in or around the field label or field data. Surround the text with the following code

The field_NAME is the actual field name that you wish to have the label for. Some of this is shown below in the examples provided. When looking to insert fields into the vcard and the details view there is two small differences between the two.įor vcard view the fields are added by simply prefixing the field you want with field/įor the Details view you need to prefix the fields with entry/field The Basics: Differences between Vcard and Details view
#Sobipro templates full#
To keep this front page short I have added "Read More" Please click that and you'll see the full thing.Īlso to keep things organized you can't post questions or your own template tips under this article. These are "The Basics" from Greg's original page.
