Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

PiedWeb/FaqBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Releases

No releases published

Packages

No packages published