We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [status]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
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?
7
votes
2answers
1k 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 ...
7
votes
3answers
744 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 ...
6
votes
3answers
1k 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 ...
5
votes
1answer
348 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 ...
3
votes
2answers
459 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?
3
votes
2answers
233 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 ...
3
votes
1answer
55 views

Test for entry status

I want to test for the existence of disabled entries for the logged in author in a section. So far I have this: {% set profileEntryQuery = craft.entries() .section('profileEntry') .status(...
3
votes
1answer
859 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 }} ...
3
votes
1answer
109 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?
2
votes
2answers
340 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....
2
votes
1answer
421 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 ...
2
votes
1answer
114 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? ...
2
votes
1answer
98 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
239 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
1answer
124 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?
2
votes
1answer
139 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
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
1
vote
2answers
450 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
1answer
399 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
42 views

Display notification if no entries exist for status criteria and logged in user

I'm aiming to display disabled entries for a logged in user and a message if no entries with this criteria exist. I've tried two different ways without success. Version 1 gets all entries - live and ...
1
vote
2answers
147 views

How can I set an entires status via ajax from a front-end form?

I am trying to set an entires status to disabled from a front-end form. Here is the click event listener I am using: $(document).on('click', '.delete', function (event) { let $this = $(event....
1
vote
1answer
189 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
275 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');...
1
vote
1answer
166 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="...
1
vote
1answer
37 views

Commerce 1: Different default order status based on product types

I want to assign different default order status based on product types. Is this possible? What I need to achieve is to send different email notifications based on product types. Can this be ...
1
vote
1answer
56 views

live and pending entries together not working

Craft 3.0.37 I have the following code which I expect to output all entries (live and pending) but it doesn't <ul> {% for entry in craft.entries.section('podcast').status('live','pending')....
1
vote
1answer
180 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
174 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....
1
vote
0answers
63 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
1answer
98 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 ...
0
votes
0answers
13 views

Show asset field value when asset is disabled for the site

I have an asset field type called organisation which points to another entry. That entry can be disabled for the current site, but I want to display it regardless. In Craft 2 the below code worked, ...