All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Override Status in setup?

britchie 9 Oct 2014 04:38 question, complete

Hi Low,

Is it possible to override the selected status options in the managed set filters by using the 'force_set_params="yes" parameter in the {exp:low_reorder:entries} tag pair?

Reason: I want to set-up a duplicate private, client-only preview page where draft and open status entries are displayed but the live public page shows only the open entries.

Replies

  1. Low 9 Oct 2014 15:43

    force_set_params="yes" has the opposite effect. It will ignore any parameters on the Entries tag and just use the filters defined in the given set. If you want to override a Set's status, simply add the status="" parameter to the Entries tag.

  2. britchie 9 Oct 2014 17:24

    Thx. This is working on one page, but not on another where I'm using the {exp.low_reorder:entries} tag with the next/previous tags for pagination.

    Thoughts?

    Just to check: I have the next/previous tags outside the {exp.low_reorder:entries} tag. Should they be inside this?

  3. Low 9 Oct 2014 17:27

    Can you share your template code for the tags that work and the one that doesn't? You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.

    Also, what's the output of the Template Debugger for the tag that doesn't produce the right results?

    You can have the prev/next tags inside or outside of the Entries tag. Having them inside is slightly more performant, as you can use the entry_id parameter instead of the url_title parameter.

  4. britchie 17 Oct 2014 17:15

    Here's the code that's working in the showcase menu.
    ie: shows entries with status of 'draft'.

    (Set is configured with 'open' and 'draft' statuses)

    {exp:low_reorder:entries set="ro_showcase" status="draft"}

    {showcase_thumb}
    {showcase_project_title}
    {/showcase_thumb}

    {title} ({view_count_one})

    {/exp:low_reorder:entries}

    ==========================

    Here's the code that's not working ie: is not overriding status in sets.

    (Single entry page)

    Home<!-- /.btn -->
    {exp:low_reorder:next_entry set="ro_showcase" url_title="{segment_2}" loop="yes"}Next{/exp:low_reorder:next_entry}
    {exp:low_reorder:prev_entry set="ro_showcase" url_title="{segment_2}" loop="yes"}Prev{/exp:low_reorder:prev_entry}
    <!-- /.navigation -->
    {exp:low_reorder:entries set="ro_showcase" limit="1" dynamic="yes" track_views="one" status="draft"}


      {showcase_slides}

    • {/showcase_slides}

    {!----}

    <!-- /.portfolio-banner -->

    <!-- /.portfolio-bannercontainer -->

    <!-- more stuff in here -->

    {/exp:low_reorder:entries}

  5. Low 17 Oct 2014 19:21

    You'll have to set the status parameter to the prev/next tags as well. Does that help?

  6. britchie 17 Oct 2014 19:30

    Thx Low - I'll try that.