Share » Forums » Developer » ezImage Gallery skips content

ezImage Gallery skips content

ezImage Gallery skips 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.

Author Message

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}
{/if}
{*1*}
{set $previmg=$thechild}
{/if}
{/foreach} 

But thanks for the suggestion

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

36 542 Users on board!

Forums menu