Skip to content
/ oc-news Public
forked from gergo85/oc-news

This is the simple news and newsletter plugin for OctoberCMS.

License

Notifications You must be signed in to change notification settings

insamo/oc-news

 
 

Repository files navigation

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

  • Managing posts
  • Managing categories
  • Managing subscribers
  • Support the GDPR
  • Export & Import data
  • Statistics and graphs
  • Send newsletter
  • Detailed mail logs
  • Front-end forms
  • Back-end widgets
  • Available extensions
  • Innovative solutions
  • Regular updates

Statistics and graphs

  • Graph - Posts in this year
  • Graph - Posts in last year
  • List - TOP 20 view posts
  • List - TOP 10 longest posts
  • List - TOP 10 shortest posts
  • Graph - Mail events
  • Graph - Mail summary

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.

Available widgets

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

  • Post statistics
  • Subscriber statistics
  • List of TOP posts
  • List of new posts

Available components

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

  • Display posts
  • Post content
  • List categories
  • Subscriber form
  • Unsubscribe form

HTML template variables

For post

  • {{ posts }} - List of posts in array
  • {{ posts.render|raw }} - Build-in pagination
  • {{ post.title }} - Title of post
  • {{ post.slug }} - Slug of post
  • {{ post.image|media }} - Full url of post image
  • {{ post.introductory|raw }} - Summary of post
  • {{ post.content|raw }} - Content of post
  • {{ post.published_at }} - Published date of post
  • {{ post.category }} - ID of category (0: no category selected)
  • {{ post.tags }} - List of tags in array
  • {{ post.status }} - Status of post (1: published, 2: hide, 3: draft)
  • {{ post.featured }} - Is post featured? (1: yes, 2: no)
  • {{ post.next() }} - First post after current post
  • {{ post.prev() }} - Last post before current post

For category

  • {{ categories }} - List of categories in array
  • {{ category.name }} - Name of category
  • {{ category.slug }} - Slug of category
  • {{ category.image|media }} - Full url of category image
  • {{ category.content|raw }} - Content of category
  • {{ category.status }} - Status of post (1: published, 2: hide)
  • {{ category.hidden }} - Is category hidden? (1: yes, 2: no)

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

  • {{ post.user.first_name }} - Post author first name (attribute)
  • {{ post.user.email }} - Post author email (attribute)
  • {{ post.user.getFullNameAttribute }} - Post author full name (method)
  • {{ post.user.getAvatarThumb }} - Public path to author avatar (method)

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

Mail template variables

  • {{ name }} - Name of subscriber
  • {{ email }} - E-mail of subscriber
  • {{ title }} - Title of post
  • {{ slug }} - Slug of post
  • {{ introductory }} - Introductory of post
  • {{ summary }} - Alias of introductory
  • {{ plaintext }} - Introductory without HTML elements
  • {{ content }} - Content of post
  • {{ image }} - Relative path of post image

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

Useful extensions

Supported plugins

Available languages

  • en - English
  • de - Deutsch
  • ru - Pу́сский
  • hu - Magyar
  • pl - Polski
  • pt - Português

Requirements

  • OctoberCMS build 420 or newer version.
  • AJAX Framework is needed for the subscription form to work.

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

About

This is the simple news and newsletter plugin for OctoberCMS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 67.7%
  • HTML 31.9%
  • CSS 0.4%