Are you sure that {entry_id} is being parsed? you should have it between your {exp:channel:entries..} tag.
Ha, here we have it. I haven´t used any {exp:channel:entries..}. I just put the breadcrumbs-Tag in the template and assumed it to work. 😉
I´m still a bit clueless what to do. Shall I wrap {exp:taxonomy:breadcrumbs… with the entries-Tag?
Cheers awa
I´m still a bit clueless what to do. Shall I wrap {exp:taxonomy:breadcrumbs… with the entries-Tag?
Yeah, you need to tell taxonomy what node you are on, and passing the entry_id of the current node is how that’s done.
I should update the docs to be a bit clearer, maybe I should just have it auto-detect if you don’t supply a {entry_id} I guess…
I should update the docs to be a bit clearer, maybe I should just have it auto-detect if you don’t supply a {entry_id} I guess…
Don´t worry, this is verion 0.35 - so it´s clear, that not everything is perfect. 😊 I like taxonomy, and appreciate your quick help!
Thanks for you hint regarding the channnel entries tag. It works now, but I have another issue: Works fine on the single entry pages. This is my code (the entry_id stuff befor the taxonomy tag is just for “debugging” purposes)
Breadcrumb: {exp:channel:entries}entry_id={entry_id} {exp:taxonomy:breadcrumbs tree_id="2" entry_id="{entry_id}" delimiter=">>"}{/exp:channel:entries}
When I use this code on category pages it worn´t work, instead it will loop through all entries and give me 10 lines of breadcrumbs 😉 Clearly, this is how the channel-entries tag is supposed to work. For every single entry I get a breadcrumb like Main >> Cat1 >> Subcat11 >> Subcat111 > Single Entry1 Main >> Cat1 >> Subcat11 >> Subcat112 > Single Entry2
But when I´m on the Category-Page for SubCat 111, I want Main >> Cat1 >> Subcat11 >> Subcat111
And when I´m on the Category-Page for SubCat 11, I want Main >> Cat1 >> Subcat11
Since entry_ids are only associated with SE-pages, how do I limit the channel entries output for non-SE-pages? Im mean, thoose pages, that have a folder-icon in front of them in the edit nodes scrren of taxonomy. I´ve seen this in your video.
Thanks awa
On a category view, you would normally hardcode the breadcrumb path up to the last segment, (as your template will be different from your ‘page’ template.) you’d probably also use the category heading tag to output the last portion of the crumb.
Taxonomy isn’t intended to be an all encompassing solution for all breadcrumbs/navigations, its intended for portions of your site which are driven by traditional static pages. You’d still use regular EE template markup for dynamic sections of your site.
you might also find this useful, some example code of how to mix a taxonomy navigation, with a category navigation:
{exp:taxonomy:nav tree_id="7" depth="2"}
<a href="http://{node_url}">{node_title}</a>
{if "{node_entry_id}" =="25"}
{exp:channel:categories channel="news" style="linear"}
<li><a href="http://{path=news_and_events/news/}">{category_name}</a></li>
{/exp:channel:categories}
{/if}
{/exp:taxonomy:nav}
The {if "{node_entry_id}” ==”25”} just checks we’re on a specific node that we want to output our categories on, in this example we’re using style=”linear” because we don’t want to go down another level.
I just wanted to say how great I think this module is and how much easier it has made life with the current project I am working on.
It is much easier for clients to understand the logic/navigation of their site when using this module for the majority of navigational control. There are still some features I would like to see added in future releases - but generally the current release provides most of what I need.
Mass Kudos to Iain.
I just wanted to say how great I think this module is and how much easier it has made life with the current project I am working on. It is much easier for clients to understand the logic/navigation of their site when using this module for the majority of navigational control. There are still some features I would like to see added in future releases - but generally the current release provides most of what I need. Mass Kudos to Iain.
Thank you, very nice to hear such things from time to time 😊
Feel free to post your feature requests here. I’ll do my best to add features as I start deploying it more and more.
cheers.
I’ve just started using this module on a current project I’m working on. I have to say it’s a great add-on and have to give iain a big thanks for making this open and available for the EE community.
One question I have though, is there are way to add a class to the active link from within the module?
Feel free to post your feature requests here. I’ll do my best to add features as I start deploying it more and more.
It would be quite nice to be able to drag and drop nodes onto to each other to alter their hierarchy - rather than using the arrows on the left. It would also be nice to expand and retract parent nodes, thus hiding their children, as when you are working with many nodes it can get complicated.
Cheers
I am having issues with {root_node_lft} as this value appears to change when new nodes are added. So I have a page where I am calling all the children of a certain node - but whenever a new node is created the node in question gets it node_lft value changed and thus errors are thrown as it can’t find any children! Anyway of having it so these values can be fixed?
I’ve added a new parameter for the nav if you can grab a fresh copy from GitHub,
Your opening nav tag can look like this:
{exp:taxonomy:nav tree_id="1" depth="5" entry_id="{entry_id}" display_root="yes" root_node_entry_id="45"}
The new parameter being root_node_entry_id, simply pass the entry id of the entry you’d like the nav to start from. (This assumes that an entry is only used once in the tree though.)
Its nearly 1am here, so if there’s any bugs caused by this I won’t be able to look at it till the morning,
Iain.
Version 0.4 is up, some changes to the UI for access to editing entries, viewing taxonomy urls and editing node properties.
I’ll need to do some testing for IE I think, I see IE8 is ok with the UI changes I’ve just done.
Hopefully I will be working on some of the feature requests in the coming week…
Out of interest, has anyone deployed in a production site? Just curious
I’ve done 2 sites so far 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.