[SOLVED]breadcrumbs
[SOLVED]breadcrumbs
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.
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.
Re: breadcrumbs
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"
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
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: breadcrumbs
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
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
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
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
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: breadcrumbs
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
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.
Re: breadcrumbs
Hi,
Can you pm me some temporarily login info for your (test)website, so I can see it for myself?
Rolf
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
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: breadcrumbs
Hi Rolf,
test website is only local
but thanks for the kind offer 
Cheers,
esobeso
test website is only local


Cheers,
esobeso
Re: breadcrumbs
Hmmtest website is only local

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
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: breadcrumbs
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
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
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
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
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: breadcrumbs
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
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.


So maybe there is a workaround

Last edited by esobeso on Thu Nov 12, 2009 6:18 pm, edited 1 time in total.
Re: breadcrumbs
Which pages do you mean by this?It works if have all the pages with show in menu option activated
All child pages within the same parent?
Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: breadcrumbs
Hi Rolf,
Yes indeed all child pages within the same parent. However I only want the parent pages in the menu.
Cheers,
eosbeso
Yes indeed all child pages within the same parent. However I only want the parent pages in the menu.
Cheers,
eosbeso
Re: breadcrumbs
This should do the trick then:However I only want the parent pages in the menu.
Code: Select all
{menu number_of_levels='1'}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: breadcrumbs
Hey Rolf,
That is fantastic!!!!

Thanks a million I am more grateful for your help than I can put into words.
CMS Made Simple Rocks!!!
Cheers,
esobeso
That is fantastic!!!!



Thanks a million I am more grateful for your help than I can put into words.
CMS Made Simple Rocks!!!
Cheers,
esobeso