Page 1 of 1
Remove "home" from {Breadcrumb}
Posted: Thu 23. Sep 2004, 11:28
by hprovily
Hello everybody,
First things first: Oliver, thanks for this great CMS!
How can I remove the "home" part in {BREADCRUMB} ?
{BREADCRUMB:0} is not working, I think it must be hard programmed somewhere.
Thanks in advance.
Greetings.
Posted: Sun 26. Sep 2004, 18:48
by Oliver Georgi
you know - it's a breadcrumb menu - if you want to start in deeper level you have to use another ID. Then home is not displayed.
{BREADCRUMB:0} is the same as {BREADCRUMB}
Oliver
Posted: Wed 28. Sep 2005, 02:11
by fbatista
Oliver Georgi wrote:you know - it's a breadcrumb menu - if you want to start in deeper level you have to use another ID. Then home is not displayed.
{BREADCRUMB:0} is the same as {BREADCRUMB}
Oliver
My version is 1.2.5-dev
The {BREADCRUMB:1} , {BREADCRUMB:2}, ... not work !?
What's the problem ?
Posted: Wed 28. Sep 2005, 15:43
by usta
is there an ID 1 resp. 2 in your db? maybe you'd like to have a look at:
http://peperkorn-online.de/replacement-tags.phtml
Posted: Wed 28. Sep 2005, 20:10
by fbatista
I know, usta.
I deceived myself.
Sorry.
Posted: Sat 17. Dec 2005, 15:58
by NTB
Ok, I am using 1.2.5-DEV and I still have the problem, that "Home" ist still showing in the breadcrumb Menu.
I have the following structure:
Home
+Sub1
+Sub2
When I enter an article in Sub1 it says: "Category: Sub1 [ID:1]". Therefore I suppose, my Sub1 has ID 1.
When i use {BREADCRUMB:1} the "Home" is still shown. Why???
It's driving me nuts right now.
Re: Remove "home" from {Breadcrumb}
Posted: Sun 18. Dec 2005, 20:29
by jon rain
Hello,
You can use the following RT :
{BREADCRUMB_LEVELS:0:0:0:} = {BREADCRUMB_LEVELS} without home
All levels till the active will be shown
{BREADCRUMB_LEVELS:1:1:0: |}
Only the first level (main below home) will be shown
· :1 start level for display
· :1 end level for display
· :0 hide breadcrumb if there is no level to show
· : | the delimiter between breadcrumb-levels
look at:
http://www.phpwcms.de/forum/viewtopic.php?t=9213
hprovily wrote:Hello everybody,
First things first: Oliver, thanks for this great CMS!
How can I remove the "home" part in {BREADCRUMB} ?
{BREADCRUMB:0} is not working, I think it must be hard programmed somewhere.
Thanks in advance.
Greetings.
Posted: Sun 18. Dec 2005, 22:49
by NTB
thnx but that doesnt answer my question
Posted: Mon 19. Dec 2005, 08:17
by pico
Hi
there are different ID's in the System
1. the 'Structure ID' - you see it when you are in ->Admin->Sitestructure and move the Mouse over the litte Sign before the Structurename
2. the Article ID's you see in the Article-Structure at the Sign before a Contentent-Part
for Breadcrum you need the Structure-ID's
Posted: Mon 19. Dec 2005, 11:44
by jon rain
Hello,
For using the ID, you have to read the stucture Id with a [PHP] [/PHP] - code and give it to the Breadcrumb menu, in other case it will only work with this given ID!
That's the case i use Breadcrumb_Levels.
NTB wrote:thnx but that doesnt answer my question
Posted: Mon 19. Dec 2005, 12:06
by NTB
ok got it. But the problem for me is, that it doesn't even work with the given ID.
When I put {BREADCRUMB:1} it still shows "Home". My first Sub does have ID 1.
Posted: Mon 19. Dec 2005, 12:56
by pepe
The deeper sense of a
breadcrumb is : to find
HOME
a
breadcrumb whithout home is no real
breadcrumb
Posted: Mon 19. Dec 2005, 13:58
by flip-flop
Hi NTB,
When I put {BREADCRUMB:1} it still shows "Home". My first Sub does have ID 1
are you absolutely sure that your Subfolder have the ID1? I can´t believe it.
there are different ID's in the System
1. the 'Structure ID' - you see it when you are in ->Admin->Sitestructure and move the Mouse over the litte Sign before the Structurename
2. the Article ID's you see in the Article-Structure at the Sign before a Contentent-Part
for Breadcrum you need the Structure-ID's
Gruß Knut
Posted: Tue 20. Dec 2005, 22:43
by jon rain
Hello NTB;
Use this code in Head or in Main and you will see the ID you need:
Code: Select all
[PHP]
$a=intval($GLOBALS['content']["cat_id"]);
print_r("ID: $a");
[/PHP]
Hope this will help you
NTB wrote:ok got it. But the problem for me is, that it doesn't even work with the given ID.
When I put {BREADCRUMB:1} it still shows "Home". My first Sub does have ID 1.
Posted: Tue 20. Dec 2005, 23:20
by jon rain
Hello,
Here an little description
You have cat-Id's for Example
0
__1
____3
____4
__2
____5
____6
The Tree to 4 is this: 0-1-4
The Tree to 5 is : 0-2-5
If you use the Id = 1, then it only works for cat-Id = 3 and for cat-Id = 4, not for the others, because there is no cat-Id = 1 in the tree!!
I have to repeat:
If you want to hide Home, so you have to use levels and not cat-Id's. But this is not possible with {BREADCRUMB:1}!
The 1 in this RT is the upper END-level of the tree!
For your Problem:
try to use {BREADCRUMB_LEVELS}, there are only some simple modifications in config.inc.php
ADD:
$phpwcms["allow_ext_init"] = 1;
$phpwcms["allow_ext_render"] = 1;
And copy downloaded php-file to:
.\phpwcms_template\inc_script\frontend_render
look at:
http://www.phpwcms.de/forum/viewtopic.php?t=9213
NTB wrote:ok got it. But the problem for me is, that it doesn't even work with the given ID.
When I put {BREADCRUMB:1} it still shows "Home". My first Sub does have ID 1.