I have a exp weblog entries tag and it pulls the entries by category. That’s fine and dandy. The hard part is that it is also pulling a weblog entry from a category that is subbed one level deep.
Something along these lines
Cat1 segment_1
Cat2 segment_2
Cat3 segment_2
The only thing is, the exp weblog entries only links to the 2nd segment at the most and not the third.
I would love add add the actual code here but I just can’t due to the spam filter.
So here we go
exp weblog entries category = x
if page uri != && url_title==‘hard coded url_title here’
li if url_title==segment_1 && segment_2 ==” class=” current ” /if < a href=”/hard coded url_title/” >Name < / a > < / li >
if:else
< li if url_title==segment_2 class= “current” /if >< a href= “/hard coded url_title /” >{ title } < / a >
{/exp:weblog:entries}
If you guys can help me figure out how to get the third segment (segment3) to a) show in the same navi but also be linked to the correct entry. The specific entry I need it linked to is 3 categories deep.
Most pages are site/segment1/segment2
I need this code above so that a link can be clicked on and taken to: site/segment1/segment2/segment3