Forums / Setup & design / Create new object and redirect

Create new object and redirect

Author Message

Heiner Wurbs

Thursday 21 June 2007 7:40:49 am

Hi all !

I have a problem, because I want to display after content creation the newly created object in full view and not the line view of the newly created object with the full view of the parent object !

Have someone an idea?

I know this 2 possibilities, which doesn't suite:

<input type="hidden" name="RedirectURIAfterPublish" value={ezhttp('LastAccessesURI','session')} />
or 
<input type="hidden" name="RedirectURIAfterPublish" value={ezhttp('LastAccessedModifyingURI','session')} />

Thanks for your help !
Heiner

Kristof Coomans

Monday 25 June 2007 4:57:02 am

Hello Heiner

Take a look at this forum topic: http://ez.no/community/forum/developer/node_number_at_first_publishing

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Heiner Wurbs

Tuesday 26 June 2007 4:24:14 am

thank you kristof for help, nice solution, should be part of eZ !

Thiago Campos Viana

Tuesday 26 June 2007 1:04:22 pm

I've used this code in the template of the content/edit:

{if eq($object.status, '0')}
<input type="hidden" name="RedirectURIAfterPublish" value={concat( "content/versionview/", $object.id,"/", $object.current_version )} />
{else}
<input type="hidden" name="RedirectURIAfterPublish" value={concat( "content/view/full/", $object.main_node_id )} />
{/if}

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br