Forums / Developer / Redirect user to the full of the node after publish

Redirect user to the full of the node after publish

Author Message

justin kazadi

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

Andreas Adelsberger

Friday 20 March 2009 4:14:25 am

Hi, you can use this extension.

http://projects.ez.no/redirect2

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

justin kazadi

Friday 20 March 2009 5:37:27 am

Hi,
thanks very much. i'm gonna try it.

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