Jump to content

Bread Crumb Nav


Baja

Recommended Posts

I created a new page which seems to be working great except for the bread crumb nav. It is displaying text but not as a link plus Im not sure the proper way of adding the second page. For example:

 

You are here: Support > Second Page

 

This is the code that was in the knowlagebase but not sure if it is missing something or incorrect:

 

$breadcrumbnav=''.$_LANG['globalsystemname'].'';

 

Thanks,

 

Baja

Link to comment
Share on other sites

It's a custom page you are creating so you need to add your own link code and breadcrumb.

 

Matt

Matt what is the proper format for this and where do we do this at?

 

What is there is not producing a link, just text which inturn is not a nav and also needs the second or third link to classify it as bread crumb navagation:

 

$breadcrumbnav=''.$_LANG['globalsystemname'].'';

 

I know the globalsystemname is in the language files. Do I need to create something for example like this:

 

$MYbreadcrumbnav = ''.$_LANG['mynewpagename'].'';

 

And if so where do I put the code for

$MYbreadcrumbnav 

at?

 

Or can I just add the link code directly somehow?

Link to comment
Share on other sites

Would somthing like this work:

 

<?php 

require("dbconnect.php"); 
require("includes/functions.php"); 

$pagetitle = $_LANG['forumstitle'];
$pageicon = "images/support/clientarea.gif";
$mybreadcrumbnav=''.$_LANG['globalsystemname'].'';

require("init.php"); 

if ($_SESSION['loggedinstatus']=="true") {
# User is Logged In - put any code you like here
} 

# Define the template filename to be used without the .tpl extension
$templatefile = "forums"; 

/*
To assign variables in Smarty use the following syntax. 
$smarty->assign('variablename', $value);
This can then be used as {$variablename} in the template
*/ 
$smarty->assign('mybreadcrumbnav','[url="domain(dot)com/clients/index.php"]Support[/url]
>
[url="domain(dot)com/forums/index.php"]Forums[/url]');

include("display.php");

?> 

Link to comment
Share on other sites

  • 1 month later...

so far i have this set up but i cannot for the life of me figure out the code to make the "home" crumb a link also? aka the globalsitename

 

all the stock pages have it as a link but the way described here only makes it text and every time i try to make it a link i get some error.

 

J

Link to comment
Share on other sites

  • 2 weeks later...
so far i have this set up but i cannot for the life of me figure out the code to make the "home" crumb a link also? aka the globalsitename

 

all the stock pages have it as a link but the way described here only makes it text and every time i try to make it a link i get some error.

 

J

Here is an example so home and forum will be links. You will have to change things according to you needs.

$breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a> > <a href="forums.php">'.$_LANG['forumstitle'].'</a>';

Link to comment
Share on other sites

Here is an example so home and forum will be links. You will have to change things according to you needs.

$breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a> > <a href="forums.php">'.$_LANG['forumstitle'].'</a>';

 

 

 

YOU my friend are a gentleman.

 

thank you so much for that post i thought my site would just have to have that small item overlooked but now my obsessive compulsive and perfectionist tendencies have been quelled :)

 

no really thank you soooooo much.

 

J

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