Jump to content

Customizing Path navigation


cek3

Recommended Posts

Hello community!

 

I'm trying to edit the path navigation (e.g..: You are here: Support > Login > Supporttickets)

but got a problem now.

I couldn't find a template where I could change and customize it.

There is only <p>-tag around it, making editing very hard.

Can anyone tell me how to change it?

 

 

 

Kind regards,

cek3

Link to comment
Share on other sites

I’m not too sure what it is you want, but the breadcrumb element is in the header.tpl. Look for the smarty variables:

{$LANG.globalyouarehere}: {$breadcrumbnav}

 

 

The actual breadcrumb link is populated and set in the parent php file for each page.

 

So, if your page template is mypage.tpl the parent file is mypage.php in the root folder.

 

You edit that php page (mypage.php) to set the relevant values that apply to that page:

 

 

$breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>';
$breadcrumbnav .= ' > <a href="mypage.php">This is the Breadcrumb Text</a>'; 

 

 

You could change the href= to whatever path you want.

 

 

Trevor

Link to comment
Share on other sites

Thank you all!

What I was looking for was in header.tpl :)

 

Now I'm trying to change the layout of the supporttickets.php, but while there is no .tpl file for it and the php is protected by ioncube, i cannot figure out how to change it.

 

Hope you understand and dcan help me :)

 

best wishes,

cek3

Link to comment
Share on other sites

Admin template files are in the /admin/templates/theme folder.

 

You might want to check the docs as they list the relevant file templates:

 

Client Area files http://docs.whmcs.com/Client_Area_Template_Files

 

Admin Area Files http://docs.whmcs.com/Admin_Area_Template_Files

 

An easy way to find the relevant files is to simply look at the URL and see what is being called.

 

So, looking at a Support ticket in our system, the URL shows:

 

/whmcs/admin/supporttickets.php?action=viewticket&id=19262

 

And its easy to see that 'viewticket' is the template we are looking for.

 

Trevor

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