Jump to content

link less breadcrumb


webgonet

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 ...

 

Link to comment
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>
Link to comment
Share on other sites

  • 1 month later...

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