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
|