Forums / Setup & design / no url_alias for the frontpage?
James Ward
Thursday 02 October 2003 10:16:16 pm
When using url_alias for the breadcrumbs on my site, all folders and articles work correctly except for my frontpage. The name appears in the path but there is no link.
Here is my breadcrumb code (from an old demo design I think): {section name=Path loop=$module_result.path} {section show=$Path:item.url_alias} <a class="path" href={$Path:item.url_alias|ezroot}>{$Path:item.text|wash}</a> {section-else} {$Path:item.text|wash} {/section} {delimiter} <span class="slash">/</span> {/delimiter} {/section}
I checked to make sure there was a siteurl in my site.ini and there is.
It hits the section-else for the frontpage and the current page. I know I could use a switch case to check for the frontpage item and hard code the url but I assume there is a better way that will allow for a change of the frontpage folder name.
Any suggestions?
working at www.wardnet.com blogging at www.jamesward.ca
Aya Brea
Monday 01 December 2003 3:20:22 am
Change the ezroot operator to ezurl operator, it will work!