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.

Completely tearing my hair out over dynamic_parameters and not rendering channel filtered entries.

December 07, 2012 9:48am

Subscribe [4]
  • #1 / Dec 07, 2012 9:48am

    Jez Timms

    3 posts

    Hi all,

    2nd EE site and things are going well - big site using cartthrob and structure. Very happy with EE and it’s power/flexibility. But I am stuck on this after quite a few hours and different approaches.

    Can anyone help please?

    I have a channel called ‘domestic_courses’ and a template group for that just using ‘index’.

    Code for that template:

    <form method="post" acti >
    <select name="search:course_month" id="search:course_month">
        <option value="January">January</option>
        
    </select>
    
    <select name="limit" id="limit">
            <option value="10">10</option>
            <option value="20">20</option>
            <option value="30">30</option>
            <option value="40">40</option>
        </select> 
    
    <input type="submit" value="Go!" />
    </form> 
    
    
    {exp:channel:entries channel="domestic_courses" dynamic_parameters="search:course_month|limit"}
    <ul class="date-list">
    <li><a href="http://{page_url}"><em>{course_date format="%F %d %Y"}</em> | {title} | {course_month}</a></li>
    </ul>
    
    {/exp:channel:entries}

    All checks have been done, making sure the custom fields are all searchable for that channel etc. I have tried a route of having a ‘results’ page and posting to that.

    Debugging is on and I can see the post values are correct.

    But NOTHING is rendering for the channel entries after the form is submitted. I have tried the same on a different ‘news’ channel and tweaked the code appropriately. It seems that dynamic parameter searching is just not working for some reason.

    I have removed the index.php as per the docs - even tried changing the .htaccess to use a + instead of the *

    RewriteRule ^(.+)$ /index.php/$1 [L]

    Nothing at all is working?? And there was me thinking this part would be a simple 5 min set up..


    TIA

    PS. Seems the code entry is being cut off on the full form tag I am trying to post

  • #2 / Dec 09, 2012 3:32pm

    MadWebDesigns

    147 posts

    Hi Jez,

    Check to make sure you don’t have page caching enabled for this template.

    Cheers,

    Mike

  • #3 / Dec 09, 2012 3:53pm

    Gareth Davies

    491 posts

    I take it this is not on a structure ‘page’?

    Otherwise my first guess would definitely be related to removing the index.php - have you tried with index.php intact?

    Also, not sure if it makes any difference but at least to debug I would likely try a revised name for the search field without a colon - maybe search_course_month

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

ExpressionEngine News!

#eecms, #events, #releases