WBCE CMS – Way Better Content Editing.
You are not logged in.
Hi
I have problem with breadcrumb displaing (WBCE1.4)
In the template I use following code for beradcrumb:
<p class="breadcrumb">
<a href="<?php echo WB_URL; ?>">
<i class="icon-home" aria-hidden="true"></i></a> /
<?php show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_CRUMB, '<span class="[class]"> / [a][menu_title]</a></span>', '', '', '', '<span class="[class]">[a][menu_title]</a></span>');?>
</p>
As a result the following html code is created:
<p class="breadcrumb">
<a href="http://localhost:3000/mysite">
<i class="icon-home" aria-hidden="true"></i></a> /
<span class="menu-expand menu-parent menu-first">
<a href="http://localhost:3000/mysite/pl/page.php" target="_top" title="Page">Page</a>
</span>
<span class="menu-current"> /
<a href="http://localhost:3000/mysite/pl/page/subpage.php" target="_top" title="Subpage">Subpage</a>
</span>
</span>
</p>
At the end of breadcrumb additional </span> closing tag is added and HTML validator shows error.
Can you help me to find what what is wrong with the breadcrumb code?
Best Regards
Gawi
Offline
Not sure if this is the reason, but in your SM2 call the last parameter is missing, try it this way:
show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_CRUMB, '<span class="[class]"> / [a][menu_title]</a></span>', '', '', '', '<span class="[class]">[a][menu_title]</a></span>',false);
... nein in Europa verwenden wir beim Programmieren nicht € statt $ ...
Offline
Thank you for answer. Unfortunately it did not helped. Still additional </span> is added at the and.
Regards Gawi
Offline
Hi gawi,
i have checked bernds code and there are no too many span elements, so the span element must be in your template.
Offline
ok. Thank you. I will for fault.
Regards
Gawi
Offline
Can you display the whole code from the index.php of your template?
Offline
I found my error.
I use breadcrumb code in two places in my template. When I corrected code in both places according to you suggestion everything it is ok.
<?php show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_CRUMB, '<span class="[class]"> / [a][menu_title]</a></span>', '', '', '', '<span class="[class]">[a][menu_title]</a></span>',false);?>
Thank you for help.
Best Regards
Gawi
Offline
Pages: 1