SlotsSlots are in layout templates manageable areas, where the user can insert content elements.
Just use this Smarty-code to insert a slot in a position you want:
{slot id="<id>" name="<name>"}
Important: Make sure that the <id> is unique on each slot within one layout. For good practice you should use the same <id> for the same slots in different layouts, so that the user see his saved contents on the same or almost same position when he change to another layout.
It is also possible to define own attributes. You can access your own and the official attributes via kryn::$slot and {$slot}.
Optional attributes
Read attributes and other informationsIf you want to know all defined attributes in the current slot or want to know on which content element you currently are, then you can read kryn::$slot or {$slot}. In this variable are stored all defined attributes and following additional:
Practical examples in a content template #1
Practical examples in a content template #2
|
What is Kryn.cms ?
Administrator
Developer
|
