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 persistence problem

August 23, 2012 4:19am

Subscribe [2]
  • #1 / Aug 23, 2012 4:19am

    neilkb

    4 posts

    Hi

    I am trying to display a list of entries sorted ASC or DESC using the

    exp:channel:entries
    tag and including the
    dynamic_parameters="sort"

    attribute. On the first page of results the sort works fine but when I move through the pagination pages the list returns the default sort order. Is there a native way to maintain persistence of the dynamic_parameters through pagination?

    Thanks

  • #2 / Aug 23, 2012 1:15pm

    Shane Eckert

    7174 posts

    Hello neilkb,

    Thank you for posting your question here on the ExpressionEngine forums.

    Can I see your entire channel entries tag?

    Do you have dynamic=“no” in there?

    Thank you,

  • #3 / Aug 24, 2012 3:53am

    neilkb

    4 posts

    This is the full entries tag code:

    {exp:channel:entries channel="events" status="Publication" category="{embed:categoryID}" orderby="date" dynamic="yes" dynamic_parameters="sort" limit="10" paginate="bottom"}

    Setting the ‘dynamic’ parameter to ‘yes’ or ‘no’ makes no difference.

    The code above is in an embed called from this code:

    {exp:query sql="SELECT cat_id FROM exp_categories WHERE cat_url_title = '{segment_3}'" disable="category_fields|member_data"}
       {embed="/FEincludes/.ITW-publistcontent" categoryID="{cat_id}"}   
    {/exp:query}

    Thanks

  • #4 / Aug 27, 2012 11:24am

    Lisa Wess

    20502 posts

    Hi, neilkb,

    As you can see in the documentation on dynamic_parameters:

    Note: If you have pagination links on your page they will not retain the page layout options created dynamically using this feature.

    So you won’t be able to retain that dynamic sorting while using pagination - not while using dynamic parameters.

  • #5 / Aug 29, 2012 9:11am

    neilkb

    4 posts

    OK, thanks for confirming that Lisa, I guess we’ll have to come up with another solution

  • #6 / Aug 29, 2012 10:42am

    Lisa Wess

    20502 posts

    No worries, neilkb - sorry that it wasn’t better news.

    If anything else comes up, please do let us know in a new thread.

    Thank you.

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

ExpressionEngine News!

#eecms, #events, #releases