piedweb/faq-bundle

This package is abandoned and no longer maintained. The author suggests using the pushword/core package instead.

Faq Bundle for PiedWebCMS

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2018-11-19 20:04 UTC

This package is auto-updated.

Last update: 2022-02-24 23:59:26 UTC


README

theme devoluix bootstrap 4

Faq Bundle

Simple faq to your app (no user entry). Question can be associated to Page, see usage.

Initially dev to be use with PiedWeb CMS.

Installation

Via Packagist :

# Get the Bundle
composer require piedweb/faq-bundle

# Install the admin
# Edit your config/package/sonata_admin.yaml
# Add :
sonata_admin:
    ...
        ...
            ...
                items:
                    ...
                    - piedweb.admin.faq

Usage

As it...

... to have a page with a faq.

/!\ Not ready yet, controller not finished (not started in fact)

# Load form in ajax
<div data-sky="{{ path('piedweb_cms_faq') }}"></div>

# Render form in Controller
{{ render(controller('PiedWeb\\FaqBundle\\Controller\\FaqController::show')) }}

Or you can...

... add it to each page of your website by extending your Page Entity with PiedWeb\FaqBundle\Entity\PageFaqTrait, adding in the constructor $this->__construct_faq();

And adding this in your template:

{% include '@PiedWebFaq/faq/_faq.html.twig' %}

TODO

  • test
  • controller

Contributors

Check coding standard before to commit :

php-cs-fixer fix src --rules=@Symfony --verbose
php-cs-fixer fix src --rules='{"array_syntax": {"syntax": "short"}}' --verbose

License

MIT (see the LICENSE file for details)