Filter by category without the module

More
12 years 3 months ago #42150 by jrodgar
I was searching the functionality of adding a sub/category filter, but I see that it is on the module. Any plans to integrate this functionality on the component filters?

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
12 years 3 months ago #42180 by jrodgar
Nevermind, I saw the categories core field

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
12 years 3 months ago #42181 by jrodgar
Ok, the problem is that it seems I´m not able to get two differents category fields filtering (for example, suppose that I have two classifications, Colors and Number of wheels. I would like to have an articles pages where I can filter by both)

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
12 years 3 months ago #42182 by micker
not possible ... need a specific field
with depth option to display only specific level

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 3 months ago #42189 by jrodgar
Mmmm

What if I can use a simpler way?:

I have:
- Main Category Articles
- Secondary categories, different colors

I want to show Articles with the option to filter by colors but colors is not a subcategory from Article.


What about a field type called "secondary categories" for this? that only work as filter

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
12 years 3 months ago #42191 by ggppdk
Hello

it is best to use a
select,
multiselect
radio,
radioimage,
checkbox
checkboximage

when you want to achieve such filtering,

i mean avoid creating categories when you can use the above

about the categories filter, this will list subcategories of current category, and it has less filtering options than the category selector of the filtering module

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
12 years 3 months ago #42194 by jrodgar
I see... but sometimes you want to show both orders. Suppose a webpage of cars, organized by country and by brand. You could want a item menu entry to show all the cars from brand X. And another one to show all cars from country Y. In this case, both brand and country works as category and a secondary field.

It´s interesting. Thinking about it maybe I can try to create a select sql field where the values are categories. Mmmm

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
12 years 3 months ago #42238 by jrodgar
Ok, I have made something good enough for my needs. Pending more tests, but the main idea seems to work

I have made a select field

The value (hidden):

select fcir.catid as value, c.title as text
from #__flexicontent_cats_item_relations as fcir
left join #__categories as c on fcir.catid = c.id
left join #__categories as cp on c.parent_id = cp.id
where cp.alias = 'countries'
and fcir.itemid = {item->id}


The selector

select fcir.catid as value, c.title as text
from #__categories as c
left join #__flexicontent_cats_item_relations as fcir on fcir.catid = c.id
left join #__categories as cp on c.parent_id = cp.id
where cp.alias = 'countries'


What do you think?

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
12 years 3 months ago #42284 by ggppdk
Hello

custom SQL query for select field is there for such needs, if it achieves the desired result for you then i see no problem in using this

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
12 years 3 months ago #42350 by jrodgar
Regarding this, I would like to know:

If I´m using {field->id} on the select, I have the problem that I have to save two times. One to save the field in question and the second one to save the related value (for example, in case I change the category) Is there a way to avoid this?

I was looking at this 8http://www.flexicontent.org/documentation/faq/71-fields-usages-tips-joomla-plugin-/253-creating-relation-between-fields.html), but I´m not sure it can be used for this.

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

Moderators: vistamediajoomlacornerggppdk
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
Save