Support Forums

Drop down menus

This is a discussion on Drop down menus within the Pre Sales Questions forums, part of the Pre-Sales & Testimonials category; Been exploring the live demo. I really like what I see. My site would have a handful of main categories ...


Go Back   68 Classifieds Forums > Pre-Sales & Testimonials > Pre Sales Questions

Reply
 
Thread Tools Display Modes
Old 01-27-2011, 05:55 PM   #1
Junior Member
 
Join Date: Jan 2011
Posts: 9
Rep Power: 0
Dragline is on a distinguished road
Default Drop down menus

Been exploring the live demo. I really like what I see. My site would have a handful of main categories and numerous sub categories and even sub sub categories. How hard would it be upon searching or placing an ad to have the drop down box only show the main categories, then after one is selected in another drop down menu its sub categories are shown, etc.. I would be willing to pay someone for the modification if need be. I just want to make sure it can be done.

Thanks
Dragline is offline   Reply With Quote
Old 01-28-2011, 02:22 PM   #2
Staff
 
Join Date: Mar 2006
Posts: 526
Rep Power: 31
Blair will become famous soon enough
Default

Version 5 includes a new templating feature that we'll call "68 tags". It's pretty darn cool (please excuse my immodesty!).

Here's a page in the documentation that explains how the category list is called from within a theme file:
Theme Tag - categories list | 68 Classifieds Documentation
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
Blair is offline   Reply With Quote
Old 01-28-2011, 06:51 PM   #3
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,083
Rep Power: 33
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by Blair
Version 5 includes a new templating feature that we'll call "68 tags". It's pretty darn cool (please excuse my immodesty!).

Here's a page in the documentation that explains how the category list is called from within a theme file:
Theme Tag - categories list | 68 Classifieds Documentation
Can you do whats on the homepage of my site Buy And Sell New Or Used Excavators, Loaders, Dozers For Free - constructionyard.com.au with that?

Thats what is stopping me from moving to v5
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 01-28-2011, 07:05 PM   #4
Staff
 
Join Date: Mar 2006
Posts: 526
Rep Power: 31
Blair will become famous soon enough
Default

The categories list theme tag is meant to offer an easy means of building a category tree.

I'm sorry, Nick, I don't see any categories on your homepage. Are you referring to your "Popular Links" section? I don't see why you couldn't use the theme tag to do something similar.
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
Blair is offline   Reply With Quote
Old 01-28-2011, 10:07 PM   #5
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,148
Rep Power: 63
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by bowers01
Can you do whats on the homepage of my site Buy And Sell New Or Used Excavators, Loaders, Dozers For Free - constructionyard.com.au with that?

Thats what is stopping me from moving to v5
@Blair I believe Nick is referring to the search, which once a parent category is selected, then activates a sub menu pulldown based on the parent category selection.

@Nick This ability isn't within the capability of php as php in of itself cannot inject (X)html into a rendered page. This is done with the javascript (AJAX). Bearing this mind, this could be done with any php script and javascript. It is a matter of the javascript capturing the event (e.g. selecting a category) and then triggering a method/function in another php script which returns data back to the javascript which in turn injects the code (returned data) into the page.

This is the difference in the technology of the programming language. php is a server side language. javascript is a client side language. The computer gets the javascript code and it runs on the clients computer, not much different then when you open a program that's on your hard drive. The client computer never sees or gets any of the php code, it stays on the server and is only run by the server.
__________________
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-29-2011, 03:10 AM   #6
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,083
Rep Power: 33
bowers01 is on a distinguished road
Default

thanks Mike, looks like i am staying on v4 for a bit longer
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 01-29-2011, 12:13 PM   #7
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,148
Rep Power: 63
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by bowers01
thanks Mike, looks like i am staying on v4 for a bit longer
Nick,

It seems that you are misunderstanding what I posted. What you are doing on your current site is being done by the javascript that you have linked to in the head of the layout file. That same javascript could be applied in v5 as well, but the php script (ajax.php) that the javascript calls after the category is selected would simply need to be changed to run the mySQL query the way that v5 does.

On the flip side, v5 is still a beta product, so I wouldn't recommend using it for a live production site. I would say that there shouldn't be anything stopping you from developing a BETA version of the site with v5.

As I know from the forum history, that you run a localhost development environment, you might consider developing a copy of your site on your localhost with v5.

I am actually working on something very similar to this in v5 myself for my upcoming v5 template offering. Although not exactly the same thing as I'm not creating a "Quick Search", I am listing the parent categories in a menu and want to use javascript to show the subcategories within the menu in accordion style upon clicking an icon beside the parent category.

You can PM me if you'd like a preview look.
__________________
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-29-2011, 07:55 PM   #8
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,083
Rep Power: 33
bowers01 is on a distinguished road
Default

Ah thank you Mike, never thought to actually do it without a module, and figured the javascript would need major changes to make it work.
Will have to have a play with it.

Cheers,
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 01-30-2011, 05:09 PM   #9
Junior Member
 
Join Date: Jan 2011
Posts: 9
Rep Power: 0
Dragline is on a distinguished road
Default

Quote:
Originally Posted by Mike-N-Tosh
@Blair I believe Nick is referring to the search, which once a parent category is selected, then activates a sub menu pulldown based on the parent category selection.
Thats exactly what I am wanting to do. I just don't want a drop down menu with parent categories along with sub categories and sub sub categories all in the same box. Thats how it is in the 68 classifieds demo.
Dragline is offline   Reply With Quote
Old 01-30-2011, 08:15 PM   #10
Staff
 
Join Date: Mar 2006
Posts: 526
Rep Power: 31
Blair will become famous soon enough
Default

Sorry - I should've extended my comment....

What I failed to include was that the module creates an html snippet but with some modification, could probably create a javascript snippet that can be used the way you describe.
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
Blair is offline   Reply With Quote
Reply

Tags
None

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
is it possible to change the categories on my main page to drop down menus? cottage_rentals Technical Support 3 12-31-2008 10:34 PM
How To: Vertical Menus (non JS)? Unregistered Pre Sales Questions 28 08-18-2008 12:18 PM


All times are GMT -4. The time now is 10:46 PM.


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