[Solved] Intercept filter variables

More
12 years 4 months ago #21174 by Myl
Hi,

I need to intercept a variable when I use filters in category view.
How can I do?

Another thing I need is to link this category page which it is already filtered.
Is this possible?

Another thankyou
Myl

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #21176 by yopyop001
Hi,

What do you mean by intercept filter?

If you want to display the value selected in the filter you can do :
Code:
$filter_value = JRequest::getVar('filter_id');
where filter_id is the id of your filter (you can get it by displaying code source or using firebug)

If you want to make a link to a category filtered :
you can do it by adding
Code:
&filter_id=filter_value
in the url

For example
Code:
index.php?option=com_flexicontent&view=category&cid=3&filter_xx=True&Itemid=16

Hope it will help you.

regards

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #21178 by Myl
Thankyou,

This is all I need.
I try it and works perfectly.

Thanks

Myl

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.297 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline