|
|
#1 |
|
Member
Join Date: Nov 2008
Posts: 63
Rep Power: 3 ![]() |
Hi Guys,
How do I trim the breadcrumbs to only show one (the first) entry? |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,721
Rep Power: 109 ![]() |
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 |
|
|
|
|
|
#3 |
|
Member
Join Date: Nov 2008
Posts: 63
Rep Power: 3 ![]() |
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. |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,296
Rep Power: 37 ![]() ![]() |
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 |
|
|
|
|
|
#5 |
|
Member
Join Date: Nov 2008
Posts: 63
Rep Power: 3 ![]() |
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? |
|
|
|
|
|
#6 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,721
Rep Power: 109 ![]() |
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;
}
__________________
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 |
|
|
|
|
|
#7 |
|
Member
Join Date: Nov 2008
Posts: 63
Rep Power: 3 ![]() |
Nah, didn't work, but thanks for trying.
Maybe there needs to be a minus entry somewhere? |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| breadcrumbs placement | dvancouver | v3.1 Modules & Modifications | 0 | 11-12-2007 03:52 PM |