How can we get the object id?

How can we get the object id?

Thursday 29 April 2004 5:56:39 am - 1 reply

Author Message

Thiago Campos Viana

Tuesday 26 June 2007 1:08:47 pm

you do not need the object id, you need to use the view versionview of the module content, so, you have just to know the object id.

I've used this code in the content/edit template, and this worked well:

{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

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.