truncate Breadcrumbs?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
admsh
Forum Members
Forum Members
Posts: 93
Joined: Tue Aug 19, 2008 6:30 pm
Location: NY

truncate Breadcrumbs?

Post by admsh »

i was wondering if anyone knows of a way to truncate the Breadcrumbs tag? simply adding

Code: Select all

|truncate:100
doesn't seem to work. a shame there's no way to "collapse" the path as you would with the menu. my problem is the site i'm working on has many sub-levels, and i don't want breadcrumbs to break to two lines...
any ideas?
robbedoes
Forum Members
Forum Members
Posts: 75
Joined: Wed Aug 20, 2008 2:08 pm
Location: Nijmegen, the Netherlands

Re: truncate Breadcrumbs?

Post by robbedoes »

Maybe you can create a menu template and do a reverse from the current item back to the top.
And use this instead of the basic breadcrumbs.
admsh
Forum Members
Forum Members
Posts: 93
Joined: Tue Aug 19, 2008 6:30 pm
Location: NY

Re: truncate Breadcrumbs?

Post by admsh »

that's a great idea! didn't think of that. this way i can truncate each level separately instead of the whole line. much better...
but how do i show the path to the current page using the menu module? without showing other items of the same level? i don't think ti's possible...

i hope the breadcrumbs tag will get more options in the future.
Last edited by admsh on Sat Dec 13, 2008 5:46 pm, edited 1 time in total.
Post Reply

Return to “Developers Discussion”