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.

Problem with Dynamic Parameters

June 22, 2010 11:25am

Subscribe [4]
  • #1 / Jun 22, 2010 11:25am

    soulstrut

    5 posts

    I have a drop down used to filter entries on a weblog’s homepage using dynamic parameters.  Currently, the homepage shows the latest 30 entries, but you can use the dropdowns to filter entries like location and restaurant.

    Problem is, when somebody filters the entries, the homepage shows those filtered results to everyone (it should revert to the latest 30 entries).

    I thought it was a cache issue but I turned off and cleared all caching.

    Does anybody have ideas?

    You can see what I mean here:

    http://www.soulstrut.com/index.php/City_Guide/

  • #2 / Jun 22, 2010 4:38pm

    Ingmar

    29245 posts

    I have a drop down used to filter entries on a weblog’s homepage using dynamic parameters.

    Can you show us a little more, some code, perhaps?

    I thought it was a cache issue but I turned off and cleared all caching.

    Are you sure you have disabled all caches? Template caching, query caching… ?

    Also, what version and build of EE are you using?

  • #3 / Jun 28, 2010 10:55am

    soulstrut

    5 posts

    I have a drop down used to filter entries on a weblog’s homepage using dynamic parameters.

    Can you show us a little more, some code, perhaps?

    I thought it was a cache issue but I turned off and cleared all caching.

    Are you sure you have disabled all caches? Template caching, query caching… ?

    Also, what version and build of EE are you using?

    Here is the code:

    <form method="post" action="{path="city_guide"}">
    
    <select name="search:file_under">
    <option value="#">Choose Establishment</option>
    <option value="Bar">Bar</option>
    <option value="Flea Market">Flea Markets</option>
    <option value="Music Equipment">Music Equipment</option>
    <option value="Random Awesomeness">Random Awesomeness</option>
    <option value="Record Store">Record Stores</option>
    <option value="Restaurant">Restaurants</option>
    <option value="Thrift Store">Thrift Stores</option>
    </select>
    
    <select name="category">
         <option value="#">Choose Location</option>
    {exp:textnest fill="  "}
    {exp:weblog:categories weblog="City_Guide" style="nested"  show_empty="no"}
    <option value='{category_id}'>{category_name}</option>
    {/exp:weblog:categories}     
    {/exp:textnest}
                  </select>
    
    <input type="submit" value="Go!" />
    
    </form>
    
    {exp:weblog:entries weblog="City_Guide" dynamic_parameters="search:file_under|category" limit="30" disable="trackbacks"}
    
    {if no_results}
    There are no spots like this currently in the database.
    {/if}
    
    Result code here
    
    {/exp:weblog:entries}

    I have the query caching turned on and template caching turned off.

    Thanks.

  • #4 / Jun 28, 2010 7:29pm

    Brandon Jones

    5500 posts

    Hi soulstrut,

    Which version and build of EE are you running?

    I’m definitely seeing what you’re talking about. But since there’s no POST data being sent when the results repopulate the same way (instead of reverting to default) there’s got to be some server-side caching mechanism still in play here.

  • #5 / Jun 28, 2010 9:46pm

    soulstrut

    5 posts

    I’m using 1.6.8.  Thanks.

  • #6 / Jun 29, 2010 2:11am

    John Henry Donovan

    12339 posts

    soulstrut,

    I have the query caching turned on and template caching turned off.

    Can you turn off query caching for now.

    Clear your cache via the control panel and then manually clear your cache by deleting every folder in /system/cache/ except for index.html

    See if that clean-out has made a difference

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

ExpressionEngine News!

#eecms, #events, #releases