#46

Product support

Visit this product's website for support.

Categories

  • Utility

This plugin extends Rainlab Blog and Pages.

Blog
  • Replace default Markdown editor with WYSIWIG richtext editor, change it's toolbar buttons.
  • Allows to change post author
  • Allows to replace original featured images upload field with one featured image selectable from Media manager
  • Add custom fields to blog post form (string, switch, datetime).
Pages
  • Option to hide Content tab and field when using {variable} tabs and default Content tab is little bit confusing.
  • Add new fields to static Menu items
    • Notes (textarea)
    • Image (mediafinder)
    • Color (text)
System tools
  • PHP info overview
Twig extensions
  • New functions
    • getImageSizeAttributes() to automatically add width and height to img tag
    • Bypass |_ and |__ filters if Rainlab Translate plugin is not installed.

Why Small Plugins?

I would like to create free small plugins for all basic function I need on almost every web project.
And this is also my way of learning October and Laravel :)

These plugin(s) are required for the plugin:

Small Extensions

Set of small tools for Rainlab.Pages and Rainlab.Blog plugins .

Installation

GitHub clone into /plugins dir:

git clone https://github.com/jan-vince/smallextensions

OctoberCMS backend

Just look for 'Small Extensions' in search field in:

Settings > Updates&Plugins > Install plugins

Permissions

You can set permissions to restrict settings page of this plugin.

Rainlab.Blog Extension

OctoberCMS > Backend > Settings > Small Extensions > Blog

Depends on: Rainlab.Blog plugin!

Rainlab Blog is a great plugin, but none of my clients is happy with MarkDown syntax to edit posts.

Settings

  • WYSIWYG editor

    • Enable to switch between default MarkDown or OctoberCMS's Rich editor.
    • Allows you to add custom toolbar buttons.
  • Change post author

    • Adds post author field with administrators dropdown
  • Custom fields
    • Adds selected extra fields to blog post editing page on More tab (available fields: API code, string, switch, date&time and Media image)
    • Allow to replace original featured images upload field with one featured image selectable from Media manager

Rainlab.Pages Extension

OctoberCMS > Backend > Settings > Small Extensions > Static pages

Depends on: Rainlab.Pages plugin!

Settings

  • Hide Content field

    • Allow to hide default Content tab and field from Pages editing page.
    • Useful for those, who uses {variable} fields and are little bit confused with default secondary content tab.
    • As of version 1.2.17 of Rainlab.Pages plugin custom fields are placed in secondary tabs container by default - by allow Hide Content field, all custom fields will be moved to primary tabs container.
  • Enable Menu notes

    • If on, new tab Notes and a field Note is added to Menu items editing popup window.
    • text is then accessible from page/layout from {{item.viewBag.note}}.

Twig Extensions

New functions

  • getImageSizeAttributes(image)

    • Get image dimensions for use in <img> tag like: <img src="{{image.getPath}}" {{getImageSizeAttributes(image)}}>
    • Will output <img ... width="123" height="123">.
  • |_ (trans), |__ (choice)
    • If Rainlab Translate plugin is not present, bypass trans and choice functions

My special thanks goes to:
OctoberCMS team members and supporters for this great system.
Joel kyber for his photo I have used in the plugin banner.
Font Awesome for Universal access symbol.

Created by Jan Vince, freelance web designer from Czech Republic.

  • Found the plugin useful on 11 Nov, 2017

    The thing I love about October is the quality of work that developers bring to it. And Jan absolutely hits the mark with this. While I prefer the markdown editor for the blog, having the option to make it WYSIWYG for clients is invaluable. The PHP overview is a nice touch. It's a plugin that bleeds quality and care.

    Because of it, I'm going to install his other plugins, confidently knowing that he's made them both powerful and user-friendly.

  • author

    Replied on 11 Nov, 2017

    This is only a small plugin but thank you very much for your review :)

    Jan

  • Found the plugin useful on 26 Nov, 2016

    Great, simple and working plugin, thank you! :) It just wonder if I could manipulate editor's options (remove some styles, add another ones, etc.)

  • author

    Replied on 26 Nov, 2016

    Depends on what you need.

    If you need new paragraph formats, you are probably looking for this.

    If you just only need CSS classes for editor's content, look in OctoberCMS backend in Settings > Editor settings > Markup classes.

    And I will publish today an update to allow custom editor toolbar buttons.

    Hope this helps :)

    Have a nice day...

1.3.9

Fixed typo in translations

Nov 17, 2017

1.3.8

Twig function to be enabled by default in settings

Nov 17, 2017

1.3.7

Added trans and choice functions to bypass |_ and |__ twig filters if Rainlab Translate plugin is not installed.

Nov 17, 2017

1.3.6

Added new Twig functions section

Sep 13, 2017

1.3.5

Added server info tab with PHP info data

Sep 06, 2017

1.3.4

Changed field type colorpicker to text only. Small change in Settings UI. Fixed some typos.

Sep 06, 2017

1.3.3

Labels can be added to blog custom fields just right in the Settings

Jul 20, 2017

1.3.2

Fixed settings translation for EN

Jul 19, 2017

1.3.1

Added options for menu item image (imagefinder) and color (colorpicker)

Jul 19, 2017

1.3.0

Added extra blog image columns for title and description

Jul 14, 2017

1.2.5

Changed column type for repeater to 'text' instead of json (thanks CanThis)

Jun 30, 2017

1.2.4

Fixed typo in fields.yaml (thanks Jorge Noguera)

Jun 28, 2017

1.2.3

Check for singed in user in plugin's boot method

Jun 12, 2017

1.2.2

Check permission for authors list and set default value for logged in user

Jun 10, 2017

1.2.1

Disabled is_activated check for backend user as this is not needed

Jun 10, 2017

1.2.0

Added post author field with administrators dropdown

Jun 09, 2017

1.1.5

Editor toolbar buttons input field changed to textarea to support larger input (thanks kealsera)

Jun 07, 2017

1.1.4

Removed Rainlab Blog code dependency

Jun 03, 2017

1.1.3

!!! As of version 1.2.7 of Rainlab.Pages, custom fields are moved to secondary tabs area by default. If "Hide Content tab" setting of this plugin is set, custom fields will be moved back to primary tabs and secondary tabs container will be hidden.

May 15, 2017

1.1.2

Small change in plugin category name

May 15, 2017

1.1.1

All custom fields allowed while creating new blog post (previously allowed only on existing records)

Apr 16, 2017

1.1.0

Added option to replace Blog featured images with one featured image selectable from Media manager

Apr 16, 2017

1.0.11

Changed update class name to prevent installation exception

Apr 14, 2017

1.0.10

Added extra blog image column

Apr 14, 2017

1.0.9

Added option to hide content tab on Rainlab.Pages page

Apr 05, 2017

1.0.8

Changed menu order number

Apr 05, 2017

1.0.7

Added Custom fields for Blog posts (API code, string, switch and datetime)

Jan 19, 2017

1.0.6

Fixed typo in permissions code (thanks Christopher19815)

Jan 12, 2017

1.0.5

Field to set editor custom toolbar buttons

Nov 26, 2016

1.0.4

Detect Rainlab.Translate plugin and support translatable WYSIWYG editor

Oct 24, 2016

1.0.3

Added extra Notes tab to Static Menu items in Rainlab.Pages

Oct 14, 2016

1.0.2

Added Rainlab.Blog WYSIWYG editor extension.

Oct 12, 2016

1.0.1

First version of Small Extensions

Oct 12, 2016