Jump to content
webgonet

link less breadcrumb

Recommended Posts

Hi! there,

 

first, for the moderator: if I posted in the wrong area, please move the post to wherever it should be posted. My apologies are forthwith.

 

now. bellow is the code available on all pagename.php files on the root of whmcs.

===========

<?php
 
 define("CLIENTAREA",true);
 define("FORCESSL",true); // Uncomment to force the page to use https://
  require("init.php");
  $ca = new WHMCS_ClientArea();
  $ca->setPageTitle("Custom Page");
 $ca->addToBreadCrumb('index.php' , 'Home');
 
$ca->addToBreadCrumb('no-link-here' , 'Custom Text');
 
$ca->addToBreadCrumb('custompage.php','Custom Page'); 
 $ca->initPage();

============

 

I would like to set add a "non-linked" item to breadcrumbs. something as the item outlined in red above. any help would be greatly appreciated. thank you!

 

regards ...

 

Share this post


Link to post
Share on other sites

It will likely still show as a link, but what about using a "#" for the link url?

Share this post


Link to post
Share on other sites
17 hours ago, webgonet said:

I would like to set add a "non-linked" item to breadcrumbs. something as the item outlined in red above. any help would be greatly appreciated. thank you!

you could edit /templates/six (or custom)/includes/breadcrumb.tpl as it's the template that's adding the links...

<ol class="breadcrumb">
    {foreach $breadcrumb as $item}
        <li{if $item@last} class="active"{/if}>
            {if !$item@last}<a href="{$item.link}">{/if}
            {$item.label}
            {if !$item@last}</a>{/if}
        </li>
    {/foreach}
</ol>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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