21306 Posts in 5736 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1691 Views |
-
Custom Breadcrumbs Delimiter

21 April 2009 at 8:53am
I have searched the forum and found that adding SiteTree::breadcrumbs_delimiter = " | "; to _config.php should do the trick. However adding this line produces this error "Parse error: syntax error, unexpected '=' ".
In SiteTree the breadcrumbs_delimiter is a public static variable so does this mean that I can't just set it in my Page.ss file? Is that what static means when declaring a property in a class? I am still new to OOP so some of this doesn't make sense to me yet.
-
Re: Custom Breadcrumbs Delimiter

21 April 2009 at 6:15pm
Looks like you are missing a $ before the variable name
SiteTree::$breadcrumbs_delimiter = "|";
-
Re: Custom Breadcrumbs Delimiter

22 April 2009 at 3:56am
Ah, yes. I guess I missed a very obvious detail. Thanks for the help.
-
Re: Custom Breadcrumbs Delimiter

12 June 2011 at 5:39pm
Hi,
First of all thanks for your contribution, I would like to know is it possible to use Breadcrumbs Delimiter like this
SiteTree::$breadcrumbs_delimiter = "<li>";Thanks.
Bunheng -
Re: Custom Breadcrumbs Delimiter

12 June 2011 at 6:43pm
No, you can't use li's. The delimiter is simply put between the links. If you want to use list items copy the Breadcrumbs function from SiteTree.php to your Page class and alter the HTML inside that function. One day that will be spilt out to a separate include template!
-
Re: Custom Breadcrumbs Delimiter

6 July 2011 at 2:36am
Hi Willr,
thanks for important advice, I copied the function into page and customise it.
Thanks.
Bunheng
| 1691 Views | ||
|
Page:
1
|
Go to Top |


