Support Forums

GoTo or Search Result Question

This is a discussion on GoTo or Search Result Question within the Templates, HTML, CSS, and Design Help forums, part of the General category; v4.1.10 Developer I have a question I couldn't find an answer to on here. My site is a Pet Classifieds ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 01-24-2011, 05:19 PM   #1
Scotty
 
Join Date: Apr 2010
Posts: 29
Rep Power: 6
pickyourownpet.com is on a distinguished road
Default GoTo or Search Result Question

v4.1.10 Developer

I have a question I couldn't find an answer to on here. My site is a Pet Classifieds Website. I have 2 Parent Categories (Pets, Businesses).

Under Pets, you have Dogs, Cats...etc.

If you go here, you will be in the "Dogs" Category. There are a lot of Dogs, so browsing may take a while for someone who just wants to quickly get to the specific dog they are looking for.

Now, how could I make a Drop-Down Box at the top of the Category Page that will display only those Sub-Categories (Affenpinscher, Afghan Hound...etc), and when clicked on, will take you to that category?

I hope this makes sense. Thanks in Advance!

-Scott Channell

Last edited by pickyourownpet.com; 01-24-2011 at 05:26 PM.
pickyourownpet.com is offline   Reply With Quote
Old 01-24-2011, 05:42 PM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Use the smarty plugin: function.categories_parent.php
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
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 01-24-2011, 05:45 PM   #3
Scotty
 
Join Date: Apr 2010
Posts: 29
Rep Power: 6
pickyourownpet.com is on a distinguished road
Default

Hi Mike,

Thanks for the quick reply. I know very little when it comes to smarty and php... I am learning as I am going along. I will mess with it, but is there a way you may provide a couple lines of code so that I could take it and try and run with it?

Thank You!
pickyourownpet.com is offline   Reply With Quote
Old 01-24-2011, 05:55 PM   #4
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Read the instructions at the top. It tells you exactly how to use it. Put the code it gives you in the template at the top where you want it.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
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 01-24-2011, 06:00 PM   #5
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

To be honest, I see exactly what you are saying which is why I would have done my category/extra fields differently. Off the top of my head, I would have grouped dogs such as Terriers and then made an extra field dog type or terrier type as a drop down list with options of, Airedale Terrier, American Hairless, ..., Wire Terrier.

Most times a few hours of planning (thinking things through especially from an end users point of view), will help immensely in the final result, user interface, user experience and avoids tons of frustration. Just saying.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
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 01-24-2011, 06:09 PM   #6
Scotty
 
Join Date: Apr 2010
Posts: 29
Rep Power: 6
pickyourownpet.com is on a distinguished road
Default

You are right with the planning part (something I could have done a lot more of), however, that plugin is not what I am looking for.

When I am in "Dogs", and it is displaying all 300+ breeds, I want a dropdown box at the top with all the breeds in it as well (I know it sounds a bit redundant, but I think it would be a great help). With the dropdown box, people could simply select the breed without scrolling all the way down to say, Yorkshire Terriers, as an example.

I looked at the other plugins, and I am not sure if function.categories_js.ph would work like I want it. I put in the code, but that does nothing...

Any ideas?
pickyourownpet.com is offline   Reply With Quote
Old 01-24-2011, 08:53 PM   #7
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Actually, there is a plugin that does what you need, however it is included in the later versions of 68C v4.2.x. You would need to upgrade your 68 version to get that. The plugin is function.categories.php and simply returns an array of the subcategories based on the id number of the parent category id that you put in the call. Then all you would need to do is put it into a select/option form field to do what you are looking for.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
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 01-25-2011, 12:02 AM   #8
Scotty
 
Join Date: Apr 2010
Posts: 29
Rep Power: 6
pickyourownpet.com is on a distinguished road
Default

Ah, well I need to upgrade. Thank you for the information Mike. I shall upgrade.
pickyourownpet.com is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting an empty search result phpretard Technical Support 5 11-12-2010 12:18 PM
search result count business Templates, HTML, CSS, and Design Help 7 12-15-2009 05:49 AM


All times are GMT -4. The time now is 08:37 PM.


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