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.

Status'es don't work

July 03, 2012 3:14pm

Subscribe [2]
  • #1 / Jul 03, 2012 3:14pm

    jensa

    109 posts

    Hi all,
    I’m sure I’ve had this working on other sites, but I have a problem on a site where statuses don’t work. Here’s what I do:

    1. I set up a new status (Admin -> Channel Administration > Statuses), open the default status group (Statuses) and add the status “draft”. I then set it up to only display for two custom groups I have set up. Ordinary “Members” are set to “no”.

    2. I change an entry to use this new Status

    3. I view the page and the entry does not show for any of these groups.

    If I then add status=“open|draft” to the channel entries tag for a template, the entry is shown to all users, not only those it is restricted to… What am I doing wrong here?

    J

  • #2 / Jul 03, 2012 3:33pm

    PhilBrienesse

    187 posts

    If I am reading this correctly. You are changing the restrict status to specific groups. This is not intended to change who can see this on the front end but who can access the status when creating an article in the backend

    If any of your Member Groups (besides the Super Admin group) grant access to the Control Panel you will see a table that allows you to specify whether or not each group can access a particular status. If a Member Group can access the status then it will appear as an option in the Publish page for users of that Member Group.

    This feature can be used to establish a workflow for multiple Member Groups. One group might submit entries that are placed in a “closed” or “draft” type status while another group can review the entry and assign it to be “open”.

    If I am understanding you correctly and you want someone who is logged in as a certain member group to see articles of a particular status you may want to try using the conditional

    {if member_group == "X"} add code here {/if}

    To get the results you are looking for

  • #3 / Jul 03, 2012 4:34pm

    jensa

    109 posts

    Bummer… I thought this applied to the frontend just as it automatically does for closed/open… Thanks Phil!

    J

  • #4 / Jul 04, 2012 3:28pm

    Dan Decker

    7338 posts

    Hi J,

    As you seem to understand now, statuses in the Control Panel and the front-end operate in different contexts.

    Think of the differences as administrative (CP) and presentational (front-end). In that regard, EE works differently based on that context.

    The conditional method would work well, and you can set your channel entries pair in an embed. Them using embed variables conditionally pass the statuses to the entries pair.

    Just a suggestion!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases