[SOLVED] Hide the dropdown menu if no multi-option is set

[SOLVED] Hide the dropdown menu if no multi-option is set

Monday 20 July 2009 9:21:39 am - 2 replies

Modified on Tuesday 21 July 2009 12:26:05 am by Christophe Bourcier

Author Message

Jean-Luc Nguyen

Monday 20 July 2009 9:24:58 am

Hello,

1.
Try to activate debug in the frontend and check List of used templates.
The default additional options should use its own datatype template.

2.
Instead of

{if $node.data_map.additional_options.has_content}

Try

{if $node.data_map.additional_options|count}

Hope this will help.

http://www.acidre.com

Christophe Bourcier

Monday 20 July 2009 9:38:36 am

Thank you for your quick reply.

The debug mode told me to look at extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezmultioption.tpl

I added {if $multioptions.name} before <label>{$multioptions.name}:</label> and {/if} after <select> and it worked.

Thanks again.

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.