[support] Menu link to views with filter problems

Larry Garfield larry at garfieldtech.com
Fri May 30 04:24:11 UTC 2008


It sounds like you're adding the link manually.  Remember that when creating a 
link, *always* use l() or url() (depending if you want the link active or 
not).  If you write an <a> tag yourself, you're doing it wrong.

l() takes the path, query, and fragment as three separate parameters in order 
to build the URL properly with aliasing and proper escaping.  I suspect 
you're passing in l('my title', 'productes/?filter0=2'), which is wrong as 
Drupal will interpret that whole thing as just the path.  See:

http://api.drupal.org/api/function/l/5
http://api.drupal.org/api/function/l/6

for the right syntax.  (The signature changed in Drupal 6, so use the correct 
version for your site.)

On Thursday 29 May 2008, marolijo - Pol Maresma wrote:
> Hello I'm usin an argument to taxonomy filter the content of a view, (for
> example http://gne.polnetwork.biz/productes/2 )
>
> But now I need to add a select list exposed filter, and need to create menu
> entries for specific filter settings
> ( http://gne.polnetwork.biz/productes/?filter0=2 for example)
>
> To put productes/2 on menu link works well, but if I put
> productes/?filter0=2
> the system puts this on the browser url productes/%3Ffilter0%3D2
>
> How can I arrange this?
>
> Thank's for all!
>
> Pol Maresma
> msn: marolijo


-- 
Larry Garfield			AIM: LOLG42
larry at garfieldtech.com		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson


More information about the support mailing list