Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Wednesday 08 June 2011 6:55:53 am - 2 replies
Modified on Thursday 09 June 2011 2:02:10 am by Torbjørn L.
André R.
Thursday 09 June 2011 6:57:02 am
This was fixed in 4.5 (and the two community builds so far), take a look there.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Torbjørn L.
Tuesday 14 June 2011 4:07:15 am
I rebuilt the select statement and made it into one foreach with three if checks and a break.
Like this:
{def $nextimg='false'}
{def $nextimg_obj=0}
{def $previmg='false'}
{def $previmg_obj='false'}
{foreach $node.parent.children as $thechild}
{if $thechild.class_identifier|eq('image')}
{*3*}
{if $nextimg|eq('true')}
{set $nextimg_obj=$thechild}
{set $nextimg='false'}
{break}
{/if}
{*2*}
{if $thechild.node_id|eq($node.node_id|int())}
{set $nextimg='true'}
{set $previmg_obj=$previmg}
{*1*}
{set $previmg=$thechild}
{/foreach}
But thanks for the suggestion
You must be logged in to post messages in this topic!