Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [status]

The tag has no usage guidance.

1
vote
0answers
23 views

Viewing expired entries and live one with the same template

Working with Craft 2, I have a channel for events that each entry has an expiration date. Live entries should show the upcoming event info and expired entries should show archive info. I have ...
0
votes
0answers
46 views

Craft Commerce Plugin - How to refresh/reload/redirect page in onStatusChange

I need some help in a craft backend plugin. I use this plugin in a commerce order page. I'm using it to handle onStatusChange (commerce_orderHistories). In this event, i'm testing a custom variable ...
1
vote
1answer
69 views

Get all entries for a structure section including disabled

I am building a plugin and in that plugin I am trying to grab all entries including disabled ones. My structure is a single entry as the parent and then it will have multiple levels of children. ...
1
vote
1answer
76 views

How to save Order Status Message in Craft Commerce using frontend form

It's easy enough update the order status from the frontend using: <input type="hidden" name="action" value="commerce/orders/updateStatus"> <input type="hidden" name="orderId" value="{{ order....
2
votes
1answer
66 views

How can I use the Courier plugin to notify a user when an entry is enabled?

Moderation scenario: Registered user publishes an entry using a front-end form that sets the entry to disabled. Moderator receives email re new entry and changes status from disabled to enabled in ...
2
votes
1answer
122 views

In Craft 3, (how) can I disable a category on a per site basis?

In the CP, is it possible to disable Category X for site A, and not for Site B? And if so, how?
2
votes
2answers
255 views

If page is enabled, show div

I'd like to show a 'Jobs' link in my navigation only if the Jobs page is enabled. Is there a way for craft to detect if the page is enabled, and show a div?
1
vote
1answer
267 views

Set status 'pending' on Guest Entry form

I'm using P&T's Guest Entries plugin along with my front end entry forms. All working fine except I want front end entries submitted with status 'pending'. Thought this would be pretty ...
1
vote
1answer
295 views

Change entry status on front end

I'm going wrong here somewhere, but I have a (edit) entry form and I'd like a 'disable' field to change status. The edit form works fine but status changes are ignored. Here's my field: <input ...
1
vote
1answer
168 views

Displaying disabled posts only to post author

I have a simple photo gallery where logged in users can upload photos. I've set the default status for all pictures to disabled, is it possible to show disabled pictures only to user who just ...
1
vote
1answer
224 views

Listen to onSetStatus event

I wanted to listen to the onSetStatus event of the SetStatusElementAction and used the same code like in the EntryElementType class: $setStatusAction = craft()->elements->getAction('SetStatus');...
2
votes
1answer
125 views

How to get specific single with status live

How can I get a specific single (careers) with status live in twig?
1
vote
2answers
378 views

No live preview available when entry status is set to disabled?

I have a few entries which are set to disabled. It seems that the live preview is not working then. It only works when the entry status is enabled. This seems more like a bug than a feature, right? ...
1
vote
2answers
1k views

Set status in a plugin

I was wondering if it's possible to modify the status of an Entry within a plugin? I've tried setting the status property but I get a readonly error. $entry->status = $status
2
votes
2answers
248 views

Entry next sibling return a deactivated entry

I got an entry template from a structured section. With prev / next nav links at entry bottom. But the next sibling is deactivated. So the page return is 404 not found ! {% set prev = entry....
5
votes
1answer
303 views

System Status flag in template context

does anyone know if there is a flag, accessible at template level, that indicates whether the "System Status" lightswitch in Settings -> General menu is on or off? (I'm thinking something similar to ...
7
votes
3answers
619 views

Change default status of entry publication (Lightswitch 'Status')

When I write an article and save it, I want to verify my text. I don't want publish my article immediately. If I'm tired, I sometimes forget to disable the Lightswitch 'Status'. So, how can I disable ...
7
votes
1answer
1k views

System Status Off Custom Text

I'd like a more personalized version of the offline page when the System Status is set to: Off. Is there a way to customize the page and/or change the text?
3
votes
2answers
209 views

Changing status via entries list in one locale also (unexpectedly) changes status in other locale(s)

I'm not certain if this is expected behavior but if so the user experience is confusing/unexpected: When viewing a list of entries in the control panel, swapping between locales shows the expected ...
7
votes
2answers
990 views

Editorial workflow / custom status

Currently my editors do not know when new content submitted by a user without publishing permissions is ready to be reviewed. The status of "disabled" could refer to an in-progress draft or a ...
2
votes
1answer
104 views

How can I only get the entries that are related to an active category

In the product overviews and search results on my website are also products listed which are related to passive categories. Is there a way to get only entries which are related to active categories? ...
1
vote
1answer
157 views

Can't access Pending user's profile info

I have public user registration enabled with the "Verify email addresses" setting checked. User registration form includes these "action" and "redirect" hidden fields: <input type="hidden" name="...
3
votes
1answer
611 views

How to display an entry on frontend with status disabled if admin is logged in?

Something like this? {% if craft.session.isLoggedIn %} {% set slug = craft.request.lastSegment %} {% set entry = craft.entries.slug(slug).status(null).first %} {% endif %} {{ entry.title }} ...
2
votes
1answer
104 views

How can I disable a category

The green bubble (status is enabled) next to the category items in the category overview suggests that you can disabled/enable the category. Is that possible? And if so, how?
0
votes
1answer
94 views

What is the difference between elements.enabled and elements_i18n.enabled?

It appears, toggling the status button on an entry affects only the elements.enabled value. What affects the elements_i18n.enabled value? When and how would we choose to update the enabled column in ...
3
votes
1answer
93 views

How can I change status of all the entries in a channel to closed?

I've looked through all the tables, and I can not find a column for status. I'd like to close all entries in channelId X. Is there a way to bulk edit entries via DB?
6
votes
3answers
937 views

How do I find live and pending entries when using an array?

I have this in my listings template, but the 'pending' parameter does not seem to work. {% set urlCat = craft.request.getSegment(3) %} {% set category = craft.categories.slug( urlCat ) %} {% set ...