Menus for query multiple Tagged items
Posted: 05 May 2008 10:00 AM   [ Ignore ]
Newbie
Avatar
Rank
Total Posts:  7
Joined  2008-04-28

Hello, I could use a little direction in trying to make the wonderful Tag module work in web sites menus.

I have 4 main menus, and three “filters”.  All these menus are based on tags entries…

Main Store Menu
1. Graphing
2. Scientific
3. Basic

Brand Filter Menu
1. All
2. Texas Instruments
3. HP

I currently have the main menus working and they pull tags based on the menu keyword.  (Example ../tag/Graphing/ pulls all entries with the “Graphing” Tag.) It works great.

My goal is to have the Filter menu add support for showing only entries that have tags based on the Main Store Menu, and based on the brand Filter.

(Example ../tag/Graphing,HP/) Which also works great if I type it in manually…

How would one go about creating the URL for the filter menus in the template? 

I can see this partially working by using the {segment} variable. 

Example for the “HP” menu, I could add this to my template

http://www.site.com/products/show/tag/{segment4},HP/

But this has some issues once the user chooses a filter.  They wouldn’t be able to switch filters or brands.  The segment variable would turn into a mess quickly.

Any direction here would be appreciated....

Profile
 
 
Posted: 06 May 2008 08:19 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18
proee - 05 May 2008 10:00 AM

Example for the “HP” menu, I could add this to my template

http://www.site.com/products/show/tag/{segment4},HP/

But this has some issues once the user chooses a filter.  They wouldn’t be able to switch filters or brands.  The segment variable would turn into a mess quickly.

Any direction here would be appreciated....

proee,

I’ve been sitting here thinking about this one for over 20 minutes… and the more and more I think about it… as well as workaround, I this just not working.
I’m assuming you sort of want it as a free-for-all where they can click all sorts of filters from all menus… rather than a “process”

The only way around this might be having a process:
User selects as many filters as they want, and can choose what they please, but once they click a Store, the link no longer contains any filters (no {segment_4} variable in URL) and starts it from the beginning again. wink

 Signature 
Profile
 
 
Posted: 06 May 2008 08:23 AM   [ Ignore ]   [ # 2 ]
Newbie
Avatar
Rank
Total Posts:  7
Joined  2008-04-28

That sounds like a good idea… I’ll just have the filter reset to “ALL” when they click on a new store item type.  If you come up with a brilliant idea around this let me know.  Thanks Pie Man!

Profile