This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » conditional with switch?
expandshrink

conditional with switch?

conditional with switch?

Monday 19 May 2003 5:16:13 pm - 1 reply

hi!
how can i make a conditional for a list. if a picture is available ez3 should put out another code than without a picture.
maybe:
{default content_object=$node.object
content_version=$node.contentobject_version_object}

{switch name=sw match=$content_version.data_map.bild}
{case match != ""}
code with image
{/case}
{case match = ""}
code without image
{/case}
{/switch}
{/default}

thanks!

Monday 19 May 2003 5:20:08 pm

Speaking of the top of my head here...

you could try:

{section show=is_set($content_version.data_map.bild}
show image
{section-else}
dont show image
{/section}

or something to that effect with the show command.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from