Support Forums

Old 02-05-2009, 01:48 PM   #1
Member
 
Join Date: Nov 2008
Posts: 63
Rep Power: 3
DGiscombe is on a distinguished road
Default Triming the breadcrumbs

Hi Guys,

How do I trim the breadcrumbs to only show one (the first) entry?
DGiscombe is offline   Reply With Quote
Old 02-05-2009, 01:53 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,721
Rep Power: 109
Eric Barnes is a jewel in the rough
Default

I think we will need some more information. Let's say your breadcrumb looks like this:
Categories -> Autos -> Sedans

What would you want it to display? Sedans?
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is online now   Reply With Quote
Old 02-05-2009, 02:19 PM   #3
Member
 
Join Date: Nov 2008
Posts: 63
Rep Power: 3
DGiscombe is on a distinguished road
Default

Sorry, I mean the second one along.

I've deleted: <a href="category.php" class="breadcrumb">{$smarty.const.LANG_BROWSE_CATE GORIES}</a>

So now I have whatever follows. In your example I'd like to trim it to Autos.
DGiscombe is offline   Reply With Quote
Old 02-05-2009, 02:25 PM   #4
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,296
Rep Power: 37
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

Why would you want to do this?

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 02-05-2009, 02:48 PM   #5
Member
 
Join Date: Nov 2008
Posts: 63
Rep Power: 3
DGiscombe is on a distinguished road
Default

Bit of a long story...

But basically I'm trying to find a way to display which main category (country) the user is viewing in the top right corner of the site (pointless to me, but means the world to my client). My first idea was to put {categoryname} there, but that displayed country + category, soo, I was thinking of putting the first entry of the breadcrumb up there, which would be country name only.

Another idea I had was to create some kind of cookie after the main category (country) is clicked and have that name constantly displayed until another main category is clicked.

I'm totally a non-scripter noob coming from web-design background, but I pick up on things quite quickly if you guys can help?
DGiscombe is offline   Reply With Quote
Old 02-05-2009, 04:25 PM   #6
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,721
Rep Power: 109
Eric Barnes is a jewel in the rough
Default

That is pulled from includes/classes/kernel/Categories.php
function breadcrumb()

It basically loops through the categories to get them. So you would probably want to change the if to something like this:
Code:
if ($row['parent_id'] ==0) 
        {
            $path = $path;
        }
This is totally untested and I make no claims it works.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is online now   Reply With Quote
Old 02-12-2009, 02:12 PM   #7
Member
 
Join Date: Nov 2008
Posts: 63
Rep Power: 3
DGiscombe is on a distinguished road
Default

Nah, didn't work, but thanks for trying.

Maybe there needs to be a minus entry somewhere?
DGiscombe is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
breadcrumbs placement dvancouver v3.1 Modules & Modifications 0 11-12-2007 03:52 PM


All times are GMT -4. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0