ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Breadcrumbs within EE

November 06, 2013 4:05pm

Subscribe [2]
  • #1 / Nov 06, 2013 4:05pm

    txturbo

    1 posts

    We have a new site that’s about to be launched and have ran into a snag.

    The problem is that the breadcrumb navigation system does not seem to be working right.

    The navigation works as follows:

    home>products>productcatagory1>widget1

    home>products>productcatagory2>widget1

    So for example we have a product that can report to more than one product category. If I click through from home>products>productcatagory1>widget1

    The breadcrumb displays home>products>widget1

    The developer claims that it’s not possible to display breadcrumb properly because the widget (a channel in ee) can report to more that one page. 

    I find this hard to believe since EE’s basic structure revolves around the channel concept.

    Can anyone clarify this please?

     


  • #2 / Nov 06, 2013 4:31pm

    Jeremy S.

    353 posts

    Is this ONLY a breadcrumb issue? You can’t really have a page belong to two URLs, it belongs to the channel.

    If it’s only breadcrumbs, you can do this. If the category is triggered in the URL…
    ( site.com/channel_name)/category/category_name/widget1 ),
    you can just display the category name (and link back if you wish). For example, I have speakers on one site that belong to different and overlapping topics, so I can filter by category and have a speaker show in different categories, but the URL to their actual page will always be the same.

    To display the category in the breadcrumbs looks like:

    Professional  > <a href="http://{path=speakers/index}">Speakers</a> >  {categories limit="1"}{category_name}{/categories}  > {speaker_date format="%F %j%S, %Y"}

    The result is:  Professional > Speakers > Whatever Category > Date of the Talk

    More info here: http://ellislab.com/expressionengine/user-guide/modules/channel/categories.html

    and maybe useful for your templates: http://ellislab.com/expressionengine/user-guide/modules/channel/category_heading.html

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases