You are not logged in.
Hi, I’m trying to display breadcrumbs in one line, but nothing works on this site
As you see, last link is always below (probably length is the problem), but no other div interrupt with breadcrumbs… I don’t know what is happening :D
is there a reason txp:breadcrumb doesn’t have a break attribute?
separator isn’t it? Or have I missed something?
nm…. maybe I am misunderstanding – how would I get something like this:
<ul class="breadcrumb"> <li><a href="/">site</a></li> <li><a href="/section/">section</a></li> <li><a href="/section/cat/">cat</a></li> <li>article</li> </ul>
<txp:breadcrumb label="Navigation" separator="li" link="1" wraptag="ul" /> I got this:
<ul> <a class="noline" href="http://localhost:8888/txp/">Navigation</a>li <a class="noline" href="http://localhost:8888/txp/articles/">articles</a> </ul>
how would I get something like this <snip>
With difficulty, at the moment. I see what you mean.
Should I open an issue ticket for this, post a new thread?
I suppose its not really an issue, just a preference – you can still achieve similar output using the existing tag attributes.
I just hi-jacked Szorstki’s thread – sorry :)
but no other div interrupt with breadcrumbs…
Yes, it does:
.menu ul has a relative position, i.e. it still takes up the space it originally had and makes the breadcrumb a breakcrumb. Position it absolutely instead and put the relative position on the surrounding
div.menu. Then adjust the
top values accordingly.
Last edited by uli (2012-07-04 13:06:30)
Couldn’t this menu be hand coded?
<txp:if_individual_article> <ul class="breadcrumb"> <li><a href="/">site</a></li> <li><a href="/<txp:section />/"><txp:section /></a></li> <li><a href="/<txp:section />/<txp:category />/"><txp:category /></a></li> <li><txp:page_title /></li> </ul> </txp:if_individual_article>
colak – yes of course, there are many ways to achieve this layout using the tag… but as we txp’ers seem to be standardising the system at the moment, I just thought I’d mention that this tag did not include a break attribute, whereas most other tags do.
tye and uli – thanks a lot :) I’m happy now, even with my topic being hi-jacked :P
Last edited by Szorstki (2012-07-05 17:42:56)