Answers.Body: <p>From a quick look at the code, I think you can pass <code>enabledForSite: [true, false]</code> to get both the enabled and disabled entries. So in your case:</p>
  <pre><code>{% set items = craft.entries({
    section: 'works',
    enabledForSite: [true, false],
    status: [
      'live', 'pending', 'disabled', 'expired'
    ]
  }).all() %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-17T13:06:07.010Z
Answers.Text: Thank you for answering! However I tried this and it doesn't work. I still get the same results (enabled entries)
Answers.UserDisplayName: Panos Spiliotis
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-15T20:30:30.340Z
Answers.LastActivityDate: 2020-07-15T20:30:30.340Z
Answers.UserDisplayName: Marion Newlevant
Answers.Body: <p>With the help of Oli from Craft, it turns out the solution is simpler than I thought:</p>
  <pre><code>{% set items = craft
      .entries()
      .section('works')
      .anyStatus()
      .all() 
  %}
  
  </code></pre>
  <p>This returns all entries, enabled and disabled.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-24T17:29:05.903Z
Answers.LastActivityDate: 2020-07-24T17:29:05.903Z
Answers.UserDisplayName: Panos Spiliotis
Body: <p>A Craft (3.4 Pro) website has setup two sites, one for each language. There are entries in a section that are enabled and others that are disabled for each language.</p>
  <p>I want to get a list of <strong>all</strong> the entries, regardless of whether they are enabled or not.</p>
  <p>I know there is a <code>enabledForSite</code> parameter but this can be set to either <code>true</code> or <code>false</code> but not both.</p>
  <p>For example the query below returns only enabled entries.</p>
  <pre><code>{% set items = craft.entries({
    section: 'works',
    enabledForSite: true,
    status: [
      'live', 'pending', 'disabled', 'expired'
    ]
  }).all() %}
  </code></pre>
  <p>How can I get a list that contains both <code>enabled</code> <strong>and</strong> <code>disabled</code> entries?</p>
  
Tags: <craft3><craft-pro>
Title: Get entries that are enabled and disabled for the site
ThreadText: # Get entries that are enabled and disabled for the site
  
  (Asked by: username_0 on 2020-07-15)
  
  A Craft (3.4 Pro) website has setup two sites, one for each language. There are entries in a section that are enabled and others that are disabled for each language.
  
  I want to get a list of **all** the entries, regardless of whether they are enabled or not.
  
  I know there is a `enabledForSite` parameter but this can be set to either `true` or `false` but not both.
  
  For example the query below returns only enabled entries.
  
  ```
  {% set items = craft.entries({
    section: 'works',
    enabledForSite: true,
    status: [
      'live', 'pending', 'disabled', 'expired'
    ]
  }).all() %}
  
  ```
  
  How can I get a list that contains both `enabled` **and** `disabled` entries?
  
  **Tags:** craft3, craft-pro
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2020-07-24. Score: 4 | Accepted answer
  
  With the help of Oli from Craft, it turns out the solution is simpler than I thought:
  
  ```
  {% set items = craft
      .entries()
      .section('works')
      .anyStatus()
      .all() 
  %}
  
  ```
  
  This returns all entries, enabled and disabled.
  
  
  ---
  
  ### Answer by username_1 on 2020-07-15. Score: 0
  
  From a quick look at the code, I think you can pass `enabledForSite: [true, false]` to get both the enabled and disabled entries. So in your case:
  
  ```
  {% set items = craft.entries({
    section: 'works',
    enabledForSite: [true, false],
    status: [
      'live', 'pending', 'disabled', 'expired'
    ]
  }).all() %}
  
  ```
  
  > **Comments:**
  > **username_0**: Thank you for answering! However I tried this and it doesn't work. I still get the same results (enabled entries)  
  
  ---
  
  