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.

<select multiple> in combination with {exp:channel:entries dynamic_parameters="..."}

November 05, 2012 9:45am

Subscribe [1]
  • #1 / Nov 05, 2012 9:45am

    Komtur

    15 posts

    My HTML Code looks like this:

    ...
    <select class="material tags" name="search:material_tag" data-placeholder="Tags" tabindex="4" multiple>
     <option value="not IS_EMPTY">all</option>
    {exp:tag:cloud channel="material" most_popular="100"}
     <option value="{tag}">{tag}</option>
    {/exp:tag:cloud}
    </select>...

    So I got a multiple select here.
    You can ignore the exp:tag:cloud tag, since the problem also occures with an undynamic set of tags.

    The “dynamic_parameters” on the other hand gives me the search on the custom field that I need:

    {exp:channel:entries channel="material"
     dynamic_parameters="search:material_tag"
     orderby="date" sort="desc" limit="10"}
    ...code here…
    {/exp:channel:entries}

    But the search only passes me the last parameter of my input.
    I tried to use:

    name="search:material_tag[]"

    and

    dynamic_parameters="search:material_tag[]

    instead.

    Without any effect.

    Anyone any idea?

  • #2 / Nov 05, 2012 3:21pm

    Komtur

    15 posts

    I moved this question to the official support thread:
    http://ellislab.com/forums/viewthread/229205/

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

ExpressionEngine News!

#eecms, #events, #releases