wdele Posted October 5, 2014 Share Posted October 5, 2014 Hi, I'm having a problem with my template. This is the code that's not working: <div id="tabs"> <ul class="nav nav-tabs" data-tabs="tabs"> <li id="tab1nav" class="active"><a href="#tab1" data-toggle="tab">{$LANG.information}</a></li> {if $modulechangepassword}<li id="tab2nav"><a href="#tab2" data-toggle="tab">{$LANG.serverchangepassword}</a></li>{/if} {if $downloads}<li id="tab3nav"><a href="#tab3" data-toggle="tab">{$LANG.downloadstitle}</a></li>{/if} <li id="tab4nav"><a href="#tab4" data-toggle="tab">{$LANG.clientareahostingaddons}</a></li> {if $packagesupgrade || $configoptionsupgrade || $showcancelbutton || $modulecustombuttons}<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.productmanagementactions}</a> {if $groupname eq 'Web Development'}<li id="tab5nav"><a href="#tab5" data-toggle="tab">CMS</a></li>{/if} <ul class="dropdown-menu"> {foreach from=$modulecustombuttons key=label item=command} <li><a href="clientarea.php?action=productdetails&id={$id}&modop=custom&a={$command}">{$label}</a></li> {/foreach} {if $packagesupgrade}<li><a href="upgrade.php?type=package&id={$id}">{$LANG.upgradedowngradepackage}</a></li>{/if} {if $configoptionsupgrade}<li><a href="upgrade.php?type=configoptions&id={$id}">{$LANG.upgradedowngradeconfigoptions}</a></li>{/if} {if $showcancelbutton}<li><a href="clientarea.php?action=cancel&id={$id}">{$LANG.clientareacancelrequestbutton}</a></li>{/if} {if $groupname eq 'Hosting'}<li><a href="http://{$domain}:2083" target="cpanel">cPanel (advanced)</a></li>{/if} </ul> </li>{/if} </ul> </div> Everything works, except 'Management Actions' refuses to open when $groupname eq 'Web Development' but it does when $groupname eq SomethingElse What's the problem? - - - Updated - - - Update: when I remove {if $groupname eq 'Web Development'}<li id="tab5nav"><a href="#tab5" data-toggle="tab">CMS</a></li>{/if} it works again... - - - Updated - - - Update: after moving {if $groupname eq 'Web Development'}<li id="tab5nav"><a href="#tab5" data-toggle="tab">CMS</a></li>{/if} to under the <ul> it works. Weird. 0 Quote Link to comment Share on other sites More sharing options...
mbit Posted October 5, 2014 Share Posted October 5, 2014 <li><li> not good <li><ul><li> good 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.