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.

dynamic_parameters="search:year" no go?

September 16, 2014 12:24pm

Subscribe [1]
  • #1 / Sep 16, 2014 12:24pm

    maxbato

    42 posts

    Can somebody test this or let me know if this isn’t supported? I thought “all” parameters could be set dynamically?

    {exp:low_yearly_archives channel="news" category="14" start_month="1" status="not closed" sort="desc"}
    {if year_count == 1}
    <form method="post" action="/news_press/archive">
    <input type="hidden" name="csrf_token" value="{csrf_token}" />
    <div class="input-group margin-bottom-20">
    <select name="search:year" class="form-control">{/if}
        <option value="{year}">{year}</option>
    {if year_count == total_years}
    </select> <span class="input-group-btn"> 
    <button class="btn-u btn-u-blue" type="submit">Go!</button>
    </span>
    </div>
    </form>{/if}
    {/exp:low_yearly_archives}
    
    {exp:channel:entries channel="news" orderby="date" sort="desc" category="14" limit="100" dynamic_parameters="search:year"}

    I really would like to use a select drop-down for my archives by year but am having some difficulty.

    Thanks in advance.

    Max

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

ExpressionEngine News!

#eecms, #events, #releases