[support] Menu link to views with filter problems

marolijo - Pol Maresma marolijo at yahoo.es
Fri May 30 06:06:32 UTC 2008


Thank's! I'm goin to try it.
But can I use this function on menu edit?

Thank's 

-----Mensaje original-----
De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre
de Larry Garfield
Enviado el: divendres, 30 / maig / 2008 06:24
Para: support at drupal.org
Asunto: Re: [support] Menu link to views with filter problems

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
--
[ Drupal support list | http://lists.drupal.org/ ]

__________ Informacisn de NOD32, revisisn 3145 (20080529) __________

Este mensaje ha sido analizado con  NOD32 antivirus system
http://www.nod32.com





More information about the support mailing list