Share » Forums » Developer » How to start (filtering)?

How to start (filtering)?

How to start (filtering)?

Monday 21 July 2008 2:53:28 am - 1 reply

Author Message

André R.

Monday 21 July 2008 5:43:54 am

One important part is to use the view cache system, so in some way you need to pass these filters as user parameters aka "mysite/myfolder/newsfolder/(filter1)/filtervalue/(filter2)/filtervalue".

- What is the action/metod to use?

two methods to transform the post into user parameters:
1. javascript
2. (havn't tested this but seems possible) use the DestinationURL action in content/action
should work with something like this(notice the name):

<fieldset>
        <legend>by Date</legend>
        <label for="my_filter_form_day" class="hide">Dia</label>
       <select name="(day)" id="my_filter_form_day" title="{'Day'|i18n( 'design/.../node/view/full' )|wash()}">
               <option value="">Any</option>
               ...
      </select>

- How to fetch options selection attribute?

{def $option_array    = $node.data_map.<selection_attribute>.content}
{foreach $node.data_map.<selection_attribute>.class_content.options as $option}
    {if $option_array|contains( $option.identifier )}{$option.name|wash(xhtml)}{/if}
{/foreach}

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu