Jump to content

Help with breadcrum and page title hide on custom pages


superman15

Recommended Posts

Right i have created the following files

 

WHMCS_DIR/test.php

WHMCS_DIR/template/demo/test.tpl

 

I wanted to remove the breadcrum and the page title from the top of the page on this custom page. So i found "pageheader.tpl" in "WHMCS_DIR/templates/demo/includes/pageheader.tpl" and found the following code

 

<div class="header-lined">
   <h1>{$title}{if $desc} <small>{$desc}</small>{/if}</h1>
   {if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if}
</div>

 

and i changed it to the following

 

{if $filename!='test'}
<div class="header-lined">
   <h1>{$title}{if $desc} <small>{$desc}</small>{/if}</h1>
   {if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if}
</div>
{/if}

 

This has removed what i need from the page, but the issue is it only removes what i want it too from test.php i would like to be able to use the instance above on more than one page. I was wondering if there was some code i was missing to make this work over multiple pages.

 

Any help would be greatly apprechiated

 

Many thanks

Link to comment
Share on other sites

{if $filename!='test' && $filename!='test2'}

<div class="header-lined">

<h1>{$title}{if $desc} <small>{$desc}</small>{/if}</h1>

{if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if}

</div>

{/if}

 

- - - Updated - - -

 

I worked it out :-) here is how i did it

{if $filename!='test' && $filename!='test2'}
<div class="header-lined">
   <h1>{$title}{if $desc} <small>{$desc}</small>{/if}</h1>
   {if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if}
</div>
{/if}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated