Wednesday 21 May 2003 2:35:10 am
I'll try to clearify a bit about how the content actions work. A content action a term for "active" datatypes, i.e. datatypes that enables the users to perform an action to the objects. All datatypes can have a content action, e.g. collect information and add to basket. The content actions are defined in the datatypes and when you have one datatype which has a content action it will be shown in the template as a button.
To show the list of content actions dynamically in the template you can use the code:
{section name=ContentAction loop=$node.object.content_action_list show=$node.object.content_action_list}
<input class="button" type="submit" name="{$ContentAction:item.action}" value="{$ContentAction:item.name|wash}" /> {/section}
If you have a products and it has a price you can just use the code: <input type="submit" name="ActionAddToBasket" value="Add to basket" /> --bård
Documentation: http://ez.no/doc
|