DennisHermannsen Posted August 30, 2015 Share Posted August 30, 2015 Any way to remove the breadcrumbs on the custom pages? I need to create a page with nothing on it. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 30, 2015 Share Posted August 30, 2015 define variable in your custom page $ca->assign("notitle", "yes"); and modify /templates/your-template/includes/pageheader.tpl to look like {if $notitle==""} // Here is the original file content {/if} that's it 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted August 30, 2015 Author Share Posted August 30, 2015 Got it. Thank you! 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted August 31, 2015 Author Share Posted August 31, 2015 No, this didn't exactly work as planned.. I put $ca->assign("notitle", "yes"); in my .php file In my pageheader.tpl I have this: {if $notitle=="yes"} {else} <div class="header-lined"> <h1>{$title}{if $desc} <small>{$desc}</small>{/if}</h1> {if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if} </div> {/if} However, if notitle=yes, then NO code is shown on the custom page, even when I add code to the .tpl file. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 31, 2015 Share Posted August 31, 2015 try to add {$notitle} in the .tpl file of this custom page and see what will be shown? maybe it has a value 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted August 31, 2015 Author Share Posted August 31, 2015 It says 'yes' when doing that 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 31, 2015 Share Posted August 31, 2015 Ok, can you please change it as the following: {if $notitle!="yes"} <div class="header-lined"> <h1>{$title}{if $desc} <small>{$desc}</small>{/if}</h1> {if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if} </div> {/if} also make sure it is the same template 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted August 31, 2015 Author Share Posted August 31, 2015 Rofl, excuse me while I got kill a kitten. I'm doing this on a dev installation, and I wanted to get rid of the 'Dev License' notification when testing the design... Suddenly the notification was showing, but the first content div wasn't - because it was set to display: none Thanks for the help! 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.