Share » Forums » Setup & design » Is nested switch case possible

Is nested switch case possible

Is nested switch case possible

Tuesday 29 March 2005 12:25:08 pm - 1 reply

Modified on Tuesday 29 March 2005 1:13:30 pm by James Ward

Author Message

Ɓukasz Serwatka

Tuesday 29 March 2005 10:07:41 pm

Hi James,

During development it`s good to have debug enabled. Shows all errors,lines numbers, etc.

In site.ini.append.php

[DebugSettings]
DebugOutput=enabled

In your code is parse error:

{switch match=$module_result.section_id}
  {case match=5}
    {switch match=$module_result.node_id}
      {case match=66}
        {* do nothing *}
      {/case}
      {case}
        {include uri="design:gutter/staff.tpl"}
      {/case} <-- here was ( instead of { ;-)
    {/switch}
    {include uri="design:gutter/newsletter.tpl"}
  {/case}
  {case}
    {* do nothing *}
  {/case}
{/switch}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

36 542 Users on board!

Forums menu