Giter Club home page Giter Club logo

neos-blog's Introduction

Neos Blog

Packagist Downloads Packagist semantic-release GitHub stars GitHub watchers

This Neos CMS plugin is for a simple blog functionality.

Features

  • Categories
  • Tags
  • Comments
  • Author page
  • Listing with pagination

Installation

Most of the time you have to make small adjustments to a package (e.g., the configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site package located under Packages/Sites/. To install it correctly go to your theme package (e.g.Packages/Sites/Foo.Bar) and run following command:

composer require breadlesscode/neos-blog --no-update

The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Your desired package is now installed correctly.

Sponsors

Examples

List latest posts

prototype(Vendor.Xy:RecentBlogPosts) < prototype(Breadlesscode.Blog:Component.PostList) {
    paginated = false
    itemsPerPage = 5
    collection = ${ q(site).find('[instanceof Breadlesscode.Blog:Document.Post]').sort('datePublished', 'DESC').get() }
}

Reference

Reference of some parts of the package.

FlowQuery-Oprations

filterByTags(<tags>)

You can filter a collection of nodes by tags. Example:

${ q(site).find('[instanceof Breadlesscode.Blog:Document.Post]').fliterByTags(q(node).property('tags')).get() }

filterByCategories(<categories>)

You can filter a collection of nodes by tags. Example:

${ q(site).find('[instanceof Breadlesscode.Blog:Document.Post]').filterByCategories(q(node).property('categories')).get() }

filterByAuthor(<user-identifier>)

You can filter a collection of nodes by the author. Example:

${ q(site).find('[instanceof Breadlesscode.Blog:Document.Post]').filterByAuthor(q(node).property('author')).get() }

Eel Helper

Blog.getUserByIdentifier(<user-identifier>)

For quering users, e.g. the author.

${ Blog.getUserByIdentifier(q(blogPost).property('author')) }

NodeTypes

All node types that this package provides.

Document

Content

Important Fusion-Prototypes

Configuration

Setting.yaml

Breadlesscode:
  Blog:
    comments:
      confirmation:
        # Confirmation message, if null confirmation message is disabled
        message: 'Breadlesscode.Blog:Form.BlogComment:confirmation.message'
      notification:
        # enable mail on new comment
        sendMail: false
        # email subject
        subject: 'New Comment!'
        # the notification mail template path
        template: 'resource://Breadlesscode.Blog/Private/Email/comment_notification.html'
        # which is the recipient of the notification email
        recipient:
          email: null
          name: null

SwiftMailer

Settings.yaml

Neos:
  SwiftMailer:
    transport:
      type: 'Swift_MailTransport'
      arguments: ~
      options: []

# Example settings for sending emails via SMTP / SSL:
#
# SwiftMailer:
#   transport:
#     type: 'Swift_SmtpTransport'
#     options:
#       host: 'smtp.example.com'
#       port: 465
#       username: '[email protected]'
#       password: '5js9j1lkjs8'
#       localDomain: 'example.com'

# Example settings for "sending" emails to an mbox file:
#
# SwiftMailer:
#   transport:
#     type: 'Neos\SwiftMailer\Transport\MboxTransport'
#     options:
#       mboxPathAndFilename: '%FLOW_PATH_DATA%/Persistent/sent-mail'

Contribution

We'd love you to contribute to neos-blog. We try to make it as easy as possible. We are using semantic-release to have more time to concentrate on important stuff instead of struggling in the dependency or release hell.

Therefore the first rule is to follow the eslint commit message guideline. It is really easy, when you always commit via yarn commit. Commitizen will guide you.

All PRs will be merged into the master branch. Travis and semantic release will check the commit messages and start building a new release when the analysis of the latest commits will trigger that.

If you have questions just ping us on twitter or github.

License

The MIT License (MIT). Please see License File for more information.

neos-blog's People

Contributors

markusguenther avatar semantic-release-bot avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.