Message preview
Author | Topic |
---|---|
Graham Brookins ![]()
|
Thursday 20 August 2009 6:10:59 pm A couple more variables of interest ...
Here are a couple more examples of post actions to the content/action module view. {def $discardRedirectNode=fetch( 'content', 'node', hash( 'node_id', $main_node_id ) ) $publishRedirectNode=fetch( 'content', 'node', hash( 'node_id', $object.main_node_id ) )} <input type="hidden" name="RedirectURIAfterPublish" value="{$publishRedirectNode.url}" /> <input type="hidden" name="RedirectIfDiscarded" value="{$discardRedirectNode.url}" /> <input class="button" type="submit" name="DiscardButton" value="{'Discard'|i18n('design/base' <form method="post" action={"content/action/"|ezurl}> <input class="button forum-new-topic" type="submit" name="NewButton" value="{'New topic'|i18n( 'design/base' )}" /> <input type="hidden" name="ContentNodeID" value="{$node.node_id}" /> <input type="hidden" name="ContentObjectID" value="{$node.contentobject_id.}" /> <input class="button forum-keep-me-updated" type="submit" name="ActionAddToNotification" value="{'Keep me updated'|i18n( 'design/base' )}" /> <input type="hidden" name="NodeID" value="{$node.node_id}" /> <input type="hidden" name="ClassIdentifier" value="forum_topic" /> <input type="hidden" name="ContentLanguageCode" value="eng-GB" /> <input type="hidden" name="ContentObjectLanguageCode" value="eng-GB" /></form> <form method="post" action={'/content/action'|ezurl}> <label>{'Location:'|i18n('design/wiki/pagelayout' {section show=$node.object.can_edit} <form method="post" action={"content/action/"|ezurl}> <input type="hidden" name="ContentObjectID" value="{$node.object.id}" /><input class="button forum-edit-reply" type="submit" name="EditButton" value="{'Edit'|i18n('design/base' Cheers Brookins Consulting | eZ Partner | http://brookinsconsulting.com/ |