allmega/blog

Symfony based Content Management System

Installs: 54

Dependents: 6

Suggesters: 0

Security: 0

Type:symfony-bundle

v1.0 2022-01-27 18:47 UTC

This package is auto-updated.

Last update: 2022-01-27 18:53:23 UTC


README

Make sure Nodejs, Yarn, Symfony and Composer is installed globally, as explained in the installation chapters Symfony, Nodejs, Yarn, Composer of their documentations.

Create your project directory

Open a command console, enter your webroot directory and execute:

$ symfony new YOUR_PROJECT_NAME --full

Install all required dependencies

Open a command console, enter your project directory and execute:

$ composer require erusev/parsedown knplabs/knp-snappy-bundle knplabs/knp-paginator-bundle friendsofsymfony/ckeditor-bundle symfony/webpack-encore-bundle symfony/finder twig/markdown-extra twig/intl-extra knpuniversity/oauth2-client-bundle league/oauth2-facebook league/oauth2-google

Install CKEditor assets to public dir

Open a command console, enter your project directory and execute:

$ ./bin/console assets:install --symlink --relative

Applications that use Symfony Flex

Open a command console, enter your project directory and execute:

$ composer require allmega/blog

Applications that don't use Symfony Flex

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require allmega/blog

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

// config/bundles.php

return [
    // ...
    Allmega\BlogBundle\AllmegaBlogBundle::class => ['all' => true],
];

Register all bundles, that your need

Open a command console, enter your project directory and execute:

$ ./bin/console allmega:bundles register auth blog media [other packages...]

Install javascript libraries

Open a command console, enter your project directory and execute:

$ yarn add @fortawesome/fontawesome-free jquery @popperjs/core bootstrap flatpickr
$ yarn encore prod

Create database tables for CMS

Open a command console, enter your project directory and execute:

$ ./bin/console doctrine:schema:update --force

Load the data for registered bundles

Open a command console, enter your project directory and execute:

$ ./bin/console allmega:bundles load auth blog media [other pakages...]

Install wkhtmltopdf

See instructions to install wkhtmltopdf Open the .env file and adjust path to wkhtmltopdf binary, /usr/bin etc

Testing

Open the phpunit.xml.dist and add to php tag:

    <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" />

Open a command console, enter your project directory and execute the following command:

$ ./bin/phpunit

Further system information

System menupoints types shortnames (only for translating)

  • menupoints.type.category => category
  • menupoints.type.parent => parent
  • menupoints.type.route => route

System menupoints shortnames to route mapping

  • menupoints.manage
  • menupoints.infos
  • menupoints.create.main
  • menupoints.create.infos
  • menupoints.create.site
  • menupoints.create.auth
  • menupoints.contents.main
  • menupoints.contents.infos
  • menupoints.contents.site
  • menupoints.contents.auth
  • menupoints.department
  • menupoints.impressum => /impressum
  • menupoints.contact => /contact
  • menupoints.last_posts => /blog
  • menupoints.add.point => /admin/menu/add
  • menupoints.add.website => /admin/page/add
  • menupoints.add.post => /admin/post/add
  • menupoints.add.faq => /admin/faq/add
  • menupoints.add.mail => /admin/recipient/add
  • menupoints.add.mail_alias => /admin/emailalias/add
  • menupoints.edit.impressum => /impressum/edit
  • menupoints.edit.points => /admin/menu
  • menupoints.edit.websites => /admin/page
  • menupoints.edit.posts => /admin/post
  • menupoints.edit.comments => /admin/comment
  • menupoints.edit.faqs => /admin/faq
  • menupoints.edit.mails => /admin/recipient
  • menupoints.edit.mail_aliases => /admin/emailalias
  • menupoints.edit.mail_types => /admin/notificationtype