Show filter name in front-end category view

More
14 years 7 months ago #6916 by alcallejo
Hi,

I would like to make a change on the front-end default category view. The select buttons of the different filters (above the table with the category items) show "-All-" as the default option, without any further information about the filter name.
Is there any easy way to show the name of the filter (i.e. of the field) either as the default option (instead of "-All-") or as a simple text label before the select box?

Thank you very much.
Best regards,
Alfonso

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

More
14 years 7 months ago #6922 by yucca
I have the same request

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

More
14 years 7 months ago #6924 by yopyop001
Hi,

May be this post will help you.

www.flexicontent.org/forum/index ... =viewtopic

Regards

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

More
14 years 7 months ago #6925 by yucca
Thank you...
But not for displaying the label in the top of the select list.

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

More
14 years 7 months ago #6928 by alcallejo
Thank you very much!
I think this is enough. At least now the user knows what he is filtering.

Alfonso

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

More
14 years 7 months ago #6936 by yopyop001
Hi,

If you want to change the word --all--, you have to edit the flexicontent field plugin.

For example, if you use filter with a checkboximage field, you have to edit the file
plugins/flexicontent_fields/checkboximage.php

In the fonction onDisplayFilter()
you can change :
Code:
$options[] = JHTML::_('select.option', '', '-'.JText::_('All').'-');
By
Code:
$options[] = JHTML::_('select.option', '', '-'.$filter->label.'-');

But you will have to make the change on each Flexicontent update...

Rgds

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.405 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