I have two taxonomy vocabularies setup, but there is no option to choose which one from the available ones is to be used to create the index page/block.

I am not sure if this is a feature request or a bug report.

PS. I know this is early 'beta' stage of the module and by no means do I intent to fill your module's bug queue. I just have some ideas and these issues might serve as a (possible) to-do list or something.

Comments

xano’s picture

Title: Option to choose vocabulary to create index from? » Add filters to layers
Category: support » feature

I already had plans for adding filters to entity types, but there just was no issue yet. I can assure you this issue will get fixed before the final.

klonos’s picture

thanx Xano, once this is implemented all my major issues with what this module is not able to do just yet will be solved. After that, I guess it'll be some minor things here and there.

good work, keep it up and let us know if we can help.

xano’s picture

Assigned: Unassigned » xano
Status: Active » Needs work
StatusFileSize
new5.48 KB

This is just a first stab at adding filters. They can be defined for every entity type in hook_index_entity_type_info(). Currently only boolean filters and (select) lists are supported, meaning you can either enable or disable a filter or choose values from a select list. Some notes:

- I will have to create a separate page for each filter, because they depend on a layer's entity type, which may change while a user is configuring an index. We cannot simply display the filters from the first page load. Of course AJAX support will be added later.
- The 'value' column in {index_filter} currently is varchar. This means there might be problems when matching it against an integer column when filtering.

xano’s picture

StatusFileSize
new8.72 KB
new1.24 KB

Follow-up, including a new icon.

xano’s picture

StatusFileSize
new17.65 KB

Follow-up.

xano’s picture

StatusFileSize
new18.72 KB

The UI sucks and needs to be redesigned.

xano’s picture

Only local images are allowed.

The filter buttons are on the right. We need a place to put the filters. I can't find anything suitable within the table. I've been thinking about some kind of overlay or to theme the layer selectors in a totally different way without using a table.

xano’s picture

StatusFileSize
new1.2 KB

Here's the filter icon in its disabled state.

dgastudio’s picture

Great job Xano, thank you very much.

Please, tell me, are u going to include this feature in the next dev build?

xano’s picture

I don't know about the next dev build (they're automatically generated every twelve hours, provided the code has been changed), but it will definitely get in before the release.

dgastudio’s picture

ok, so i'll wait to the release.

klonos’s picture

@Xano: is the 4th patch a cumulative one, or do we need to apply all the previous ones in order?

xano’s picture

It's the result of all previous patches and extra development.

dgastudio’s picture

can't apply this patches on build from 2010-Jan-17. can somybody upload already patched files?

thanks

xano’s picture

Code changes have been made since the patch was created, so the patch doesn't apply anymore. You can apply the chunks that fail manually if you know how.

klonos’s picture

@Xano: Can we please have this in the dev builds? Pretty please?

xano’s picture

It's done when it's done. This means you gotta sit back and wait patiently or give me a helping hand to fix the problem. Dev means not ready for production use ;-)

This is a hobby, which means I am not obliged to do anything and are free to enjoy my spare time by doing something else than coding. And I take that very literally, even though I want to see this project finished as much as you do.

I need to revamp the interface and underlying code before filters can get in. I expect this will take a couple of weeks. My intentions are to make whatever features already exists rock solid before adding new stuff. This has worked out pretty good so far, but it does delay new stuff a bit.

jrstmartin’s picture

Looking forward to filters!

xano’s picture

Adding the possibility for storing filter information is being moved to #735164: Conditions API. This issue will deal with the UI and some entity-specific filters.

colan’s picture

Subscribing.

jvieille’s picture

Subscribing

momper’s picture

sub

xano’s picture

Assigned: xano » Unassigned