Friday 23 April 2004 9:00:33 am
PLEASE, READ :-) Currently, there is no way to tell the Ez to redirect to specific node/uri after collecting information (besides those specified in collect.ini, but they are design-time defined). The following form has an additional action parameter: RedirectToNodeID ($poll_node is fetched somewhere at the begining of the tpl):
<form method="post" action={"content/action"|ezurl}>
<input type="hidden" name="ContentNodeID" value="{$poll_node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$poll_node.object.id}" />
<input type="hidden" name="RedirectToNodeID" value="<some-node-id>" />
{attribute_view_gui attribute=$poll_node.object.data_map.option}
{section name=ContentAction loop=$poll_node.object.content_action_list show=$poll_node.object.content_action_list}
<input type="submit" name="{$ContentAction:item.action}" value="Vote" />
{/section} </form> Such an action param should override DisplayList[] setting from collect.ini Here are 2 scenarios when I realy *need* this functionality:
Scenario 1:
- full view of an article with a poll box - user votes and must return to the same article (node) again
Scenario 2:
- user is reading some article placed in the content area of the site ($module_result)
- there is a poll outside the content area - he votes - user must be returned to the same node, not to the result page of the vote The same applies to RedirectURI This functionality can be easily integrated into the current collectinformation action... Actualy, I already did it.. but am afraid will lose the path when new releases come through... regards and sorry fo the long posting...
|