Friday 20 March 2009 3:39:25 am
Hi,
i want to redirect the user to the full of the node that he had created. so i have add in the edit.tpl this code:
<input type="hidden" name="RedirectURIAfterPublish" value="content/view/full/{* put the node_id of the newly created node *}" />
my problem is how to get the lastest created node in this system ? so i can have same things like this :
<input type="hidden" name="RedirectURIAfterPublish" value="content/view/full/{inc($lastnode.node_id)}" />
where $lastnode
is the latest created node
any idea!
The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.
Albert Einstein
|