Remove "home" from {Breadcrumb}

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
hprovily
Posts: 2
Joined: Thu 23. Sep 2004, 10:38

Remove "home" from {Breadcrumb}

Post 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.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
fbatista
Posts: 36
Joined: Tue 2. Nov 2004, 21:53
Location: Portugal
Contact:

Post 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 ?
Fernando Batista
_______________________________________
Department of Mechanical Engineering (DEM)
School of Technology and Management (ESTG)
Polytechnic Institute of Leiria (IPL)
HOME: http://fernandobatista.net
usta
Posts: 146
Joined: Thu 18. Aug 2005, 19:17

Post 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
fbatista
Posts: 36
Joined: Tue 2. Nov 2004, 21:53
Location: Portugal
Contact:

Post by fbatista »

usta wrote: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
I know, usta.

I deceived myself.
Sorry.
Fernando Batista
_______________________________________
Department of Mechanical Engineering (DEM)
School of Technology and Management (ESTG)
Polytechnic Institute of Leiria (IPL)
HOME: http://fernandobatista.net
NTB
Posts: 11
Joined: Sat 17. Dec 2005, 15:54

Post 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.
jon rain
Posts: 39
Joined: Wed 23. Nov 2005, 17:04
Location: wels, austria

Re: Remove "home" from {Breadcrumb}

Post 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.
NTB
Posts: 11
Joined: Sat 17. Dec 2005, 15:54

Post by NTB »

thnx but that doesnt answer my question
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
jon rain
Posts: 39
Joined: Wed 23. Nov 2005, 17:04
Location: wels, austria

Post 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
NTB
Posts: 11
Joined: Sat 17. Dec 2005, 15:54

Post 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.
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

The deeper sense of a breadcrumb is : to find HOME :idea:

a breadcrumb whithout home is no real breadcrumb :wink:
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
jon rain
Posts: 39
Joined: Wed 23. Nov 2005, 17:04
Location: wels, austria

Post 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.
jon rain
Posts: 39
Joined: Wed 23. Nov 2005, 17:04
Location: wels, austria

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