gergo85 / oc-news

This is the simple news and newsletter plugin for October CMS and Winter CMS.
http://octobercms.com/plugin/indikator-news
MIT License
42 stars 29 forks source link
octobercms octobercms-plugin wintercms wintercms-plugin

News & Newsletter plugin

Plugin can be used for publishing news simply on the website. In contrary of blog, writing comments is not possible, but visitors can subscribe on a newsletter system. During publishing news posts are available not just on the website but you can send them via email to subscribed users.

Plugin is same like put together a blog and a newsletter plugin. The main difference is that it is simpler and contains only the most necessary functions. So this makes easier uploading new contents and inform visitors.

Main features

Statistics and graphs

Advanced SEO support

You can enable this feature on the Settings > CMS > News & Newsletter page. If you use it, you should replace the title and meta description tags with the following lines:

<title>{% if post.seo_title %}{{ post.seo_title }}{% elseif this.page.meta_title %}{{ this.page.meta_title }}{% else %}{{ this.page.title }}{% endif %}</title>
<meta name="description" content="{% if post.seo_desc %}{{ post.seo_desc }}{% elseif this.page.meta_description %}{{ this.page.meta_description }}{% else %}{{ this.page.description }}{% endif %}">
{% if post.seo_image %}<meta property="og:image" content="{{ post.seo_image|media }}">{% endif %}

Additional SEO Configuration

Additionally, the following has been introduced for better SEO

Along side the snippet above, you can add the following code the head of your theme files.

 <link rel="canonical" href="https://github.com/gergo85/oc-news/blob/master/{{ this.page.meta_canonical }}">
 <link rel="image_src" href="https://github.com/gergo85/oc-news/blob/master/{{ this.page.meta_image_src|media }}">
 <meta name="keywords" content="{{ this.page.meta_keywords }}"> 

You should include the meta_image_src only you don't use the post seo image to avoid confusion.

Automatic statistics

You just add the "Post content" front-end component to the page, where the post appears. If you are logged in as administrator, the counter will not grow. It works any cases, when the visitors open the post details.

Preview feature

You just add the "Post content" front-end component to the current page. If you modify a news, the "Preview" link appears along the left of the delete icon. If you are logged in as administrator, you can read the hidden and draft news too.

Quick navigation

If you modify any content, one or two arrows appear along the right of the delete icon. There are the navigation links. You can simply go to the previous or next content.

Available widgets

You can use the following widgets on the back-end Dashboard:

Available components

Use the Components > News panel in CMS menu. At this moment there are the following components:

HTML template variables

For post

For category

For user (Backend User) All attributes and methods available in Backend\Models\User are accesible via {{ post.user }}. Examples:

Checkout the Backend\Models\User interface and attributes for all possibilities.

Mail template variables

You can customize the layout of emails in the Settings > Mail > Mail templates page.

Useful extensions

Supported plugins

Available languages

Requirements

Installation

  1. Go to the Settings > Updates & Plugins page in the Backend.
  2. Click on the Install plugins button.
  3. Type the News & Newsletter text in the search field.

Add back-end widgets

  1. Go to the Dashboard page in the Backend.
  2. Click on the Manage widgets > Add widget button.
  3. Select the any News widgets from the list.

Credits