Jump to content

how to customize $breadcrumbnav ?


suprahost

Recommended Posts

i noticed those > in the source, why did the WHMCS put those there? it breaks standards, you're meant to put $gt; so it doesnt render as markup on certain browsers. anyway, try changing it to » for a different type of arrow, → for a Right arrow, ← for a left arrow.

 

just chuck those in the HTML and they'll work.

Link to comment
Share on other sites

In your header template..

{php}
$breadcrumb = $this->get_template_vars('breadcrumbnav');
$breadcrumb = str_replace(' > ', '<img src=..... />', $breadcrumb);
$this->assign('breadcrumbnav', $breadcrumb');
{/php}

 

We've done something similar - but instead I've got about 30 lines that completely rebuild the breadcrumb (strip out items, reformat in to a list with <li> tags etc)

Link to comment
Share on other sites

  • 4 months later...

My breadcrumb link shows my WHMCS Home link as "Support" (ie. "You are here: Support > Domain Checker"). Is this a configurable field somewhere in WHMCS? Or will I have to change it using the method posted above? I can't seem to find it...

 

I would rather it say "Client Area" instead.

 

Thanks!

Link to comment
Share on other sites

  • 4 months later...

For those that want it converted to a ul list, then here is the code.

{php} 
/* customize breadcrumb output */
$breadcrumb = $this->get_template_vars('breadcrumbnav'); 
$breadcrumb = str_replace(' > ', '', $breadcrumb); 
$breadcrumb = str_replace('</a>', '</a></li>', $breadcrumb);
$breadcrumb = str_replace('<a href', '<li><a href', $breadcrumb); 
$this->assign('breadcrumbnav', $breadcrumb); 
{/php}

Link to comment
Share on other sites

  • 1 year later...
For those that want it converted to a ul list, then here is the code.

{php} 
/* customize breadcrumb output */
$breadcrumb = $this->get_template_vars('breadcrumbnav'); 
$breadcrumb = str_replace(' > ', '', $breadcrumb); 
$breadcrumb = str_replace('</a>', '</a></li>', $breadcrumb);
$breadcrumb = str_replace('<a href', '<li><a href', $breadcrumb); 
$this->assign('breadcrumbnav', $breadcrumb); 
{/php}

 

thank you for this...

Simply brilliant!

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