[solved] Filter listit extended content by any field

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

[solved] Filter listit extended content by any field

Post by Torpedine »

Is it possible to filter the ListIt Extended content in a page by any field?
I.e. If I have a "cauntry" filed among others, is it possible to have a page listing all the records that have country="italy"?

AND

Why, when using the "filter" template, categories are not available?
Last edited by Torpedine on Mon Mar 10, 2014 1:24 pm, edited 1 time in total.
Stikki

Re: Filter listit extended content by any field and not file

Post by Stikki »

Yes it is, use search action.

Here is some advanced example how Listit Extended could filter stuff: http://www.protouch.fi/

Due different mechanic how category field work there is bug:

http://dev.cmsmadesimple.org/bug/view/9480
zaidcrowe
Forum Members
Forum Members
Posts: 109
Joined: Wed Jun 10, 2009 3:43 pm

Re: Filter listit extended content by any field and not file

Post by zaidcrowe »

I think it is - have you looked at the module help? Check out the search parameter.

I don;t have direct experience (yet) with the filter templates, but if an item is missing anything, you can use the smarty plugin "ListItLoader" (see the module help for the ListIt2 module itself) to grab everything/anything for a particular item:

{ListIt2Loader item='item' identifier='alias' instance='ListIt2Instance' value='myalias' assign='tmp'}
zaidcrowe
Forum Members
Forum Members
Posts: 109
Joined: Wed Jun 10, 2009 3:43 pm

Re: Filter listit extended content by any field and not file

Post by zaidcrowe »

@Stikki - very sweet looking site dude!
Stikki

Re: Filter listit extended content by any field and not file

Post by Stikki »

Thanks, Design ain't mine or anything, but technical solution is.
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Filter listit extended content by any field and not file

Post by Torpedine »

Thing is, I cannot see in the module help how to obtain something that suits my needs, and I cannot see it from the frontend

How can I have a page that shows only the records that satisfy a condition on a field?

As I said before, for example, all the records that have the field "field" equals to "somecontent?"

To be more precise, something analogue to category filtering per page.

Thanks in advance
Stikki

Re: Filter listit extended content by any field and not file

Post by Stikki »

I think i answered your question?

Use search action.
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Filter listit extended content by any field and not file

Post by Torpedine »

It's not clear. I can use search action to DO a search. What I need is to display only some kind of content on a page.

"search" - displays the search form.
Stikki

Re: Filter listit extended content by any field and not file

Post by Stikki »

{ListIt2<instance> search_<field_alias_to_search>='value_of_field'}
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Filter listit extended content by any field and not file

Post by Torpedine »

Thanks! the documentation on the module help is not clear on this...
Post Reply

Return to “Modules/Add-Ons”