Filter jump menu bu content type

mf - June 11, 2009 - 08:30
Project:Jump
Version:6.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi, this is a great module, but is is possible to pass through an argument at the end of the destination url to be utilised by Views2?

I have 2 content types which use the same taxonomy vocabulary, and am using Jump to display the list of taxonomy terms.

I'd like to have a couple of radio buttons next to the Jump menu that would append either (e.g.) "?type=contentType1" or "?type=contentType2" to the end of the url submitted by the Jump menu. This would be used by a view I have set up to display the results.

I'd have thought it's possible to do this by fiddling with the module code, or even by inputting some additional foreach statments to a php block. But I'm new to php and don't have the skills to do this yet.

Is what I'm thinking possible?

Many thanks
Matt

#1

marcp - June 12, 2009 - 04:03

If you really want to have the radio buttons affect the URL that's getting jumped to you're going to need some custom code.

Why not just have 2 jump menus? One for contentType1 and one for contentType2?

You can use the jump_quickly() function to put the two jump menus in the same block if you want...

#2

mf - June 12, 2009 - 13:11

Thanks for your reply marcp.

I'm not up to writing the custom code, but have gone with a second drop down which kind of does what I want, if a little clumsily.

Cheers
Matt

 
 

Drupal is a registered trademark of Dries Buytaert.