Triggering Contents Plugins to create a customized layout of your fields, to e.g. Sliders or Tabs/ render a google maps plugin /etc
Some times it is desired to create a customized layout of your fields for item or category view ...
e.g. to create a layout with tabs or sliders containing the display of various fields ...
-- a. First duplicate one of flexicontent templates e.g. 'default' to 'mydefault'
-- b. Edit Content Type e.g. 'Article' to use as predefined item layout the one from 'mydefault'
-- c. In templates management edit item layout of template 'mydefault', and places ALL fields you wish to use in the 'renderonly' position, e.g. fields 'myfielda', 'myfieldb', 'myfieldc'
-- d. Edit file: components/templates/mydefault/item.php and add this code inside it, at appropriate place:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
// STEP 1. Create an empty object c $c = new stdClass(); // STEP 2. Prepare your some text to trigger Content plugins on |
