Switch Routing
-
Hello,
Great Plugin so far! I just run into a problem while trying to set up switch routing. For our company we have pages like this broadcasted for different countries with the same language. Simply for changes to be instantly broadcasted and not having the need to be applied to any more pages. In this specific case I want the logo carousel to output only logos that have the value of the country. This is working fine but I got problems with the switch itself.
Long story short: When trying to setup switch routing the code always outputs the default condition. Is there something I have overlooked?
Here’s my code:
[loop type=portfolio category=referenzen gallery=carousel] [switch route] [when de/company/profile] [if field=customer_logo-homepage value=de] <li>[field thumbnail]</li> [/if] [/when] [when at/company/profile] [if field=customer_logo-homepage value=at] <li>[field thumbnail]</li> [/if] [/when] [when chde/company/profile] [if field=customer_logo-homepage value=chde] <li>[field thumbnail]</li> [/if] [/when] [when default] [if field=customer_logo-homepage value=global] <li>[field thumbnail]</li> [/if] [/when] [/switch] [/loop]
Thanks in advance,
AlexThe page I need help with: [log in to see the link]
- The topic ‘Switch Routing’ is closed to new replies.