Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 05:46:00 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155555
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Templates, Menus & Design
(Moderator:
Argos
)
breadcrumb help
Pages: [
1
]
Go Down
Author
Topic: breadcrumb help (Read 2529 times)
bgg
Offline
Posts: 101
breadcrumb help
«
on:
October 05, 2007, 02:36:14 PM »
This is the default Breadcrumbs (all):
show_menu2(0, SM2_ROOT, SM2_CURR, SM2_CRUMB, '<span class="[class]"> > [a][menu_title]</a>', '</span>', '', '', '<b>You are here:</b> <span class="[class]">[a][menu_title]</a>');
You are here: Home
But when we browse a page other then homepage and iyts sub pages, the HOME button with link to homepage goes off.
how can I always have the HOME link in the breadcrumb?
Logged
kweitzel
Forum administrator
Offline
Posts: 6977
Re: breadcrumb help
«
Reply #1 on:
October 06, 2007, 06:57:33 AM »
that lies within the "limitations" ... since all root level pages have the same root status, they will be shown first. You would need to manually make this happen. Some construct like:
Code:
<?php
if (
ROOT_PARENT
<=
1
) {
show_menu2
(
0
,
SM2_ROOT
,
SM2_CURR
,
SM2_CRUMB
,
'<span class="[class]"> > [a][menu_title]</a>'
,
'</span>'
,
''
,
''
,
'<b>You are here:</b> <span class="[class]">[a][menu_title]</a>'
);
} else {
show_menu2
(
0
,
SM2_ROOT
,
SM2_CURR
,
SM2_CRUMB
,
'<span class="[class]"> > [a][menu_title]</a>'
,
'</span>'
,
''
,
''
,
'<b>You are here:</b><span class="[class]"><a href="http://localhost/wb">HOMEPAGE</a> > </span> <span class="[class]">[a][menu_title]</a>'
);
}
?>
ATTN: untested, no warranty that it will work.
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
bgg
Offline
Posts: 101
Re: breadcrumb help
«
Reply #2 on:
September 09, 2008, 02:08:37 PM »
My Homepage ID is 4 !
I have two menus: Menu is# 1, and Menu ID#4.
How do I display 'Home >' displayed in case of all the pages belongs to the 2 menus?
Code:
<?php
if (
ROOT_PARENT
==
4
) {
show_menu2
(
0
,
SM2_ROOT
,
SM2_CURR
,
SM2_CRUMB
,
'<span class="[class]"> > [a][menu_title]</a>'
,
'</span>'
,
''
,
''
,
'<b>You are here:</b> <span class="[class]">[a][menu_title]</a>'
);
} else if {
show_menu2
(
0
,
SM2_ROOT
,
SM2_CURR
,
SM2_CRUMB
,
'<span class="[class]"> > [a][menu_title]</a>'
,
'</span>'
,
''
,
''
,
'<b>You are here:</b> <span class="[class]"><a href="/">Home</a> ></span> <span class="[class]">[a][menu_title]</a>'
);
} else {
show_menu2
(
4
,
SM2_ROOT
,
SM2_CURR
,
SM2_CRUMB
,
'<span class="[class]"> > [a][menu_title]</a>'
,
'</span>'
,
''
,
''
,
'<b>You are here:</b> <span class="[class]"><a href="/">Home</a> ></span> <span class="[class]">[a][menu_title]</a>'
);
}
?>
Thanks!
Logged
bgg
Offline
Posts: 101
Re: breadcrumb help
«
Reply #3 on:
September 09, 2008, 02:23:55 PM »
Sorry, I forgot to mention:
My 'home'-page is under a hidden menu, meaning it does not come with the Menu(1).
Logged
bgg
Offline
Posts: 101
SOLVED
«
Reply #4 on:
September 10, 2008, 09:33:13 AM »
correct code or breadcrumb with HOME is below
Code:
<?php
if (
PAGE_ID
==
4
) {
show_menu2
(
0
,
SM2_ROOT
,
SM2_CURR
,
SM2_CRUMB
,
'<span class="[class]"> > [a][menu_title]</a>'
,
'</span>'
,
''
,
''
,
'<b>You are here:</b> <span class="[class]">[a][menu_title]</a>'
);
}
else {
show_menu2
(
0
,
SM2_ROOT
,
SM2_CURR
,
SM2_CRUMB
,
'<span class="[class]"> > [a][menu_title]</a>'
,
'</span>'
,
''
,
''
,
'<b>You are here:</b> <span class="[class]"><a href="/">Home</a> ></span> <span class="[class]">[a][menu_title]</a>'
);
}
?>
Logged
LonelyWolf
Offline
Posts: 33
Re: breadcrumb help
«
Reply #5 on:
June 27, 2011, 10:51:49 AM »
Just my 2 cents, a little better for home link:
[original code posted by bgg, over this post]
Code:
if (PAGE_ID == 4) {
show_menu2(0, SM2_ROOT, SM2_CURR, SM2_CRUMB, '<span class="[class]"> > [a][menu_title]</a>', '</span>', '', '', '<b>You are here:</b> <span class="[class]">[a][menu_title]</a>');
}
else {
show_menu2(0, SM2_ROOT, SM2_CURR, SM2_CRUMB, '<span class="[class]"> > [a][menu_title]</a>', '</span>', '', '', '<b>You are here:</b> <span class="[class]"><a href="'.WB_URL.'">Home</a> ></span> <span class="[class]">[a][menu_title]</a>');
}
Logged
Test my work here:
http://mysite.altervista.org
deekodesk
Offline
Posts: 9
Re: breadcrumb help
«
Reply #6 on:
June 27, 2011, 12:49:46 PM »
My developer has done it as i wanted but i have a query..do we need to have rewrite Rule on in .htaccess files...and what other feilds we can include in URLs like date, Keywords, Author name, product name etc...
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...