Answers.Body: <p>I had this issue and solved it by ensuring that the locale checked against in the <code>matchEntry()</code> function in <code>MyNewsChannel.php</code> matched the locale of my site.</p>
  
  <p>The <a href="https://github.com/pixelandtonic/AppleNews/blob/master/applenewschannels/MyNewsChannel.php" rel="nofollow noreferrer">example channel class</a> provided in the plugin repo checks for a site locale set to <code>en</code> on line 27:</p>
  
  <p><code>if ($entry-&gt;locale != 'en') {
  return false;
  }</code></p>
  
  <p>My site locale was set to <code>en_us</code>; correcting it in my channel class solved this for me. Maybe this is also the case for you or someone else who has landed here with a similar issue!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-20T20:03:44.537Z
Answers.LastActivityDate: 2017-11-20T20:03:44.537Z
Answers.UserDisplayName: whoisgina
Body: <p>I installed the plugin for Apple News (<a href="https://github.com/pixelandtonic/AppleNews" rel="nofollow noreferrer">https://github.com/pixelandtonic/AppleNews</a>) but did not understand the configuration instructions. </p>
  
  <p>I created a file at <code>craft/config/applenews.php</code> with the following:</p>
  
  <pre><code>&lt;?php
  
  return [
  'channels' =&gt; [
      [
          'class'     =&gt; 'applenewschannels.MyNewsChannel',
          'channelId' =&gt; 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
          'apiKeyId'  =&gt; 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
          'apiSecret' =&gt; 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
      ],
    ],
  ];
  </code></pre>
  
  <p>I created a <code>craft/applenewschannels</code> folder and added <code>MyNewsChannel.php</code> and <code>MyNewsArticle.php</code> but the “Apple News Channels” pane has not appeared on the edit entry page. What am I missing?</p>
  
Tags: <plugin-applenews>
Title: Configuring Apple News
ThreadText: # Configuring Apple News
  
  (Asked by: username_0 on 2017-03-29)
  
  I installed the plugin for Apple News (<https://github.com/pixelandtonic/AppleNews>) but did not understand the configuration instructions.
  
  I created a file at `craft/config/applenews.php` with the following:
  
  ```
  <?php
  
  return [
  'channels' => [
      [
          'class'     => 'applenewschannels.MyNewsChannel',
          'channelId' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
          'apiKeyId'  => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
          'apiSecret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
      ],
    ],
  ];
  
  ```
  
  I created a `craft/applenewschannels` folder and added `MyNewsChannel.php` and `MyNewsArticle.php` but the “Apple News Channels” pane has not appeared on the edit entry page. What am I missing?
  
  **Tags:** plugin-applenews
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-20. Score: 2
  
  I had this issue and solved it by ensuring that the locale checked against in the `matchEntry()` function in `MyNewsChannel.php` matched the locale of my site.
  
  The [example channel class](https://github.com/pixelandtonic/AppleNews/blob/master/applenewschannels/MyNewsChannel.php) provided in the plugin repo checks for a site locale set to `en` on line 27:
  
  `if ($entry->locale != 'en') {
  return false;
  }`
  
  My site locale was set to `en_us`; correcting it in my channel class solved this for me. Maybe this is also the case for you or someone else who has landed here with a similar issue!
  
  
  ---
  
  