ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

filter chanels with uri along multiple dimensions

May 03, 2012 10:15am

Subscribe [2]
  • #1 / May 03, 2012 10:15am

    daniel.kaminski

    4 posts

    Hello,

    as a very sporadic user of EE I wonder how I can achieve the following in a template:

    - in a template some channel entries, e.g. portfolio items, are displayed.
    - the template shows 25 entries per page and utilizes a pagination to allow for navigation to further entries.
    - visitors should be able to filter the total set of entries along multiple dimensions, which are constituted by custom fields (e.g. media_type, year, client, service etc.).
    - ideal the filters applied should be reflected in the uri or an query string, so that people can bookmark and forward query results.

    An example use case would be:

    Show me all entries with:
    - (media_type == ‘print’ OR media_type == ‘web’)
    - AND year == 2011
    - AND (service == “design” OR service == “information architecture”)

    I know in CodeIgniter one can generate key value pairs form an uri, is it possible to use something like that in expressionengine templates?

    Any hints would be appreciated.

    Thanks,
    Daniel

  • #2 / May 04, 2012 11:47am

    Shane Eckert

    7174 posts

    Hello daniel.kaminski,

    Thank you for posting your question here on the ExpressionEngine forums.

    ExpressionEngine makes conditionals a bit less code intensive that I think you are use to with CI.

    Check out this documentation on using Conditional Global Variables. I think it will explain and answer your questions above.

    If you need anything else, please let me know!

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases