[SOLVED]breadcrumbs

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
esobeso
Forum Members
Forum Members
Posts: 17
Joined: Mon Nov 09, 2009 8:17 pm

[SOLVED]breadcrumbs

Post 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.
Last edited by esobeso on Thu Nov 12, 2009 8:30 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: breadcrumbs

Post 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"
Last edited by Rolf on Mon Nov 09, 2009 9:08 pm, edited 1 time in total.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
esobeso
Forum Members
Forum Members
Posts: 17
Joined: Mon Nov 09, 2009 8:17 pm

Re: breadcrumbs

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: breadcrumbs

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
esobeso
Forum Members
Forum Members
Posts: 17
Joined: Mon Nov 09, 2009 8:17 pm

Re: breadcrumbs

Post 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
Last edited by esobeso on Tue Nov 10, 2009 6:40 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: breadcrumbs

Post by Rolf »

Hi,

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

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
esobeso
Forum Members
Forum Members
Posts: 17
Joined: Mon Nov 09, 2009 8:17 pm

Re: breadcrumbs

Post by esobeso »

Hi Rolf,

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

Cheers,

esobeso
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: breadcrumbs

Post by Rolf »

test website is only local
Hmm  :-\

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

®
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
esobeso
Forum Members
Forum Members
Posts: 17
Joined: Mon Nov 09, 2009 8:17 pm

Re: breadcrumbs

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: breadcrumbs

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
esobeso
Forum Members
Forum Members
Posts: 17
Joined: Mon Nov 09, 2009 8:17 pm

Re: breadcrumbs

Post 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 ???
Last edited by esobeso on Thu Nov 12, 2009 6:18 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: breadcrumbs

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
esobeso
Forum Members
Forum Members
Posts: 17
Joined: Mon Nov 09, 2009 8:17 pm

Re: breadcrumbs

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: breadcrumbs

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
esobeso
Forum Members
Forum Members
Posts: 17
Joined: Mon Nov 09, 2009 8:17 pm

Re: breadcrumbs

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

Return to “CMSMS Core”