Page 3 of 3«123
uCoz Community » uCoz Modules » File Catalog, Site Catalog, Publisher, Ad Board, Online Games » Filters (Creation and use...)
Filters
Sunny
Posts: 9296
Reputation: 456
Message # 1 | 2:00 PM
Filters are an additional option which can be enabled and adjusted according to user’s needs. Consider filter values (as many as you will specify) as a sort of additional sorting. E.g. if you have catalog sections and categories, you will be able to sort entry value not only by them but by other parameters as well.
Example:
When adding an entry to the music file catalog you can specify the values: section "POP", category "English singers"; and by means of filters you can set the value of, for example, download cost "$2". A drop-down filter menu "download cost" will appear in the catalog, and it will contain the necessary price categories "$2", "$5" etc. By means of this menu your site visitors will be able to view all available files with the download cost, for example, "$2".
This is just an example, you can set any filter with any words (values), the main point is that it will sort (filter) entries.

How do I create a filter.
Let's take File Catalog as an example.
Where to find: Control Panel -> File Catalog -> Customize filters.
You can see the link "filter is inactive". Click it and you'll get to the "Activating filter" tab.
You can see the fields. Let's fill them in the following way:
Name of filter: Cost
List of filter values:
$2
$5
$10
(each value in a new line, max 100 values up to 40 characters each)
Multiple value selection: you can either put a check mark or not.
Click "Save".
You’ll get to the page with the list of values where you can see a new created filter. You can edit it anytime by means of the "wrench" icon

Now go to Control Panel -> File Catalog -> Module settings. Find "Fields of a new entry form" and you will see that a new field with the filter name has been added. Activate this filed and save. And then you will be able to see that a drop-down field with the filter name and the specified values appeared on the page for adding new entries. Now you can also select the price category when adding new files.
Then go to Control Panel -> Customize Design. Let’s put the filter on the section main page of the File Catalog. So we need "Page with section contents".
You can see that a new code appeared on the list under the template – it's $FILTER1_MENU$. All you need is to paste this code into any place you want.
If you have more than one filter the second code will be $FILTER2_MENU$.
You can create 2 filters only.


I'm not active on the forum anymore. Please contact other forum staff.
osmanys
Posts: 56
Reputation: 1
Message # 31 | 2:44 PM
Sunny, it is possible to create different filters depending on the category ID?
Ken_D
Posts: 51
Reputation: 0
Message # 32 | 5:53 PM
why there is only 3 filters available, why don't you let us create more filters? sad sad sad sad
Sunny
Posts: 9296
Reputation: 456
Message # 33 | 1:59 PM
osmanys, it is only possible to create 2-3 filters per module in total.

Ken_D, I'm unable to tell why but if you describe what you want to implement in more detail, perhaps I'll be able to suggest a solution.

I'm not active on the forum anymore. Please contact other forum staff.
Ed05
Posts: 556
Reputation: 7
Message # 34 | 3:13 PM
I hope that you will create more filters in module load, i have only two of them and i need at least one more. dry
!
Post edited by Ed05 - Wednesday, 2016-02-24, 3:13 PM
uCoz Community » uCoz Modules » File Catalog, Site Catalog, Publisher, Ad Board, Online Games » Filters (Creation and use...)
Page 3 of 3«123
Search: