Technical Support
posted this on February 04, 2009 17:23
Although you can't edit TouristWay database schema we offer you an easy way to structure your information beyond standard TouristWay's fields.
Any text field in TouristWay supports "virtual sub-fields", basically a way to split the original field in parts to be used independently as they were actual fields.
For example, all product types in the administration area have a mask named "Details" in the Descriptions menu. Here you will find a large text field which we left unused in the templates on purpose.
This field is located in the product object under the variable %-product.leaflet3-%
You can split this field by writing directly in the text box (administration area) something like:
==sportfacilities==
Hotel ABC offers the top for water sports and blah blah blah
==mymetatags==
diving,watersky,kite surfing,surf
==skypecode==
cometoHotelABC
Instead of using the entire text you can extract the sub-fields defined by
==subfieldname==
just by using the following syntax:
%-product.leaflet3--chunk=subfieldname-%
In our example, by placing this in your template:
%-product.leaflet3--chunk=mymetatags-%
this will be displayed
diving,watersky,kite surfing,surf