Page 1 of 2

[SOLVED]breadcrumbs

Posted: Mon Nov 09, 2009 8:50 pm
by esobeso
CMS Version 1.6.6, Current PHP Version (phpversion): 5.2.6, Apache/2.2.3 (Red Hat), MySQL 5.0.84

I have a silly problem where my breadcrumbs work fine when there is 1. page with subpage 1.1 but when I add another subpage 1.1.1 the breadcrumbs are incorrect.

1. Page
1.1 Page with subpage
1.1.1 Page with second-subpage

If current page is 1.1 the breadcrumbs are home>> Page >> Page with subpage, my problem is that when I am on page 1.1.1 the breadcrumbs are the same as in the previous example, even though the parent pages are correctly assigned. What I expect in the breadcrumbs is home>> Page >> Page with subpage >> Page with second-subpage.

This is what is in my template: {breadcrumbs starttext='Site navigation' root='home' delimiter='»'}

Any help would be most appreciated.

Re: breadcrumbs

Posted: Mon Nov 09, 2009 8:56 pm
by Rolf
Welcome Esobeso

root='home' must be the alias of the homepage. (page 1)
Did you change this by any chance?

Regards, Rolf



ps.
1. All pages in question are active?
2. All pages have content type "Content", not "Internal link"

Re: breadcrumbs

Posted: Mon Nov 09, 2009 9:11 pm
by esobeso
Hi Rolf,


Thanks for your reply the alias of the home page is set to home  :)

1. All pages in question are active? Yes
2. All pages have content type "Content", not "Internal link" Yes

Cheers,
esobeso

Re: breadcrumbs

Posted: Tue Nov 10, 2009 7:01 am
by Rolf
Hi esobeso,

Lets try something else.
First clear the cache in Site Admin >> Global Settings >> Tab Advanced Setup
You never know if this might help in any way...  ;)

Second put the {get_template_vars} tag in the pages in question and see if everything is like you would expected in these positions:

Root:
position = 00001
friendly_position = 1

First child:
position = 00001.00001
friendly_position = 1.1

Second child:
position = 00001.00001.00001
friendly_position = 1.1.1

Regards, Rolf

Re: breadcrumbs

Posted: Tue Nov 10, 2009 6:36 pm
by esobeso
Hi Rolf,

I am now trying this on my test system and I am getting the same problem, here is the output from {get_template_vars} tag:

position = 00004
friendly_position = 4

position = 00004.00001
friendly_position = 4.1

position = 00004.00001.00001
friendly_position = 4.1.1

Thanks for your continued advice.

All the best,

esobeso

Re: breadcrumbs

Posted: Tue Nov 10, 2009 7:18 pm
by Rolf
Hi,

Can you pm me some temporarily login info for your (test)website, so I can see it for myself?

Rolf

Re: breadcrumbs

Posted: Tue Nov 10, 2009 7:32 pm
by esobeso
Hi Rolf,

test website is only local  :( but thanks for the kind offer ;D

Cheers,

esobeso

Re: breadcrumbs

Posted: Wed Nov 11, 2009 3:08 pm
by Rolf
test website is only local
Hmm  :-\

Perhaps any errors in the php_log or with debug on in config.php  ???

®

Re: breadcrumbs

Posted: Wed Nov 11, 2009 7:14 pm
by esobeso
Hi Rolf,

I enabled a php error log:

cat php_errors.log
[11-Nov-2009 20:09:06] PHP Notice:  Undefined offset:  1 in /var/www/lib/smarty/Smarty_Compiler.class.php on line 449
[11-Nov-2009 20:09:06] PHP Notice:  Undefined offset:  1 in /var/www/lib/smarty/Smarty_Compiler.class.php on line 449
[11-Nov-2009 20:09:53] PHP Notice:  Undefined offset:  1 in /var/www/lib/smarty/Smarty_Compiler.class.php on line 449
[11-Nov-2009 20:09:54] PHP Notice:  Undefined offset:  1 in /var/www/lib/smarty/Smarty_Compiler.class.php on line 449
[11-Nov-2009 20:09:58] PHP Notice:  Undefined offset:  1 in /var/www/lib/smarty/Smarty_Compiler.class.php on line 449
[11-Nov-2009 20:09:58] PHP Notice:  Undefined offset:  1 in /var/www/lib/smarty/Smarty_Compiler.class.php on line 449
[11-Nov-2009 20:10:02] PHP Notice:  Undefined offset:  1 in /var/www/lib/smarty/Smarty_Compiler.class.php on line 449
[11-Nov-2009 20:10:02] PHP Notice:  Undefined offset:  1 in /var/www/lib/smarty/Smarty_Compiler.class.php on line 449

Regards,
esobeso

Re: breadcrumbs

Posted: Thu Nov 12, 2009 10:56 am
by Rolf
Ahh, now we are getting somewhere...

Did you cleared the cache yet?
Are you shure all the files are on the server? Did a checksum?

Rolf

Re: breadcrumbs

Posted: Thu Nov 12, 2009 5:17 pm
by esobeso
Hi Rolf,

I have now cleared the cache several times, but sadly to no avail. The checksums are OK.

Cheers,
esoebso

UPDATE: It works if have all the pages with show in menu option activated. :) However I really DO NOT want this.  :-[

So maybe there is a workaround ???

Re: breadcrumbs

Posted: Thu Nov 12, 2009 8:05 pm
by Rolf
It works if have all the pages with show in menu option activated
Which pages do you mean by this?
All child pages within the same parent?

Rolf

Re: breadcrumbs

Posted: Thu Nov 12, 2009 8:19 pm
by esobeso
Hi Rolf,

Yes indeed all child pages within the same parent. However I only want the parent pages in the menu.

Cheers,
eosbeso

Re: breadcrumbs

Posted: Thu Nov 12, 2009 8:24 pm
by Rolf
However I only want the parent pages in the menu.
This should do the trick then:

Code: Select all

{menu number_of_levels='1'}
Grtz. Rolf

Re: breadcrumbs

Posted: Thu Nov 12, 2009 8:29 pm
by esobeso
Hey Rolf,

That is fantastic!!!!  :D ;D :)

Thanks a million I am more grateful for your help than I can put into words.

CMS Made Simple Rocks!!!

Cheers,

esobeso