Skip to content

ohmediaorg/testimonial-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Update composer.json by adding this to the repositories array:

{
    "type": "vcs",
    "url": "https://github.com/ohmediaorg/testimonial-bundle"
}

Then run composer require ohmediaorg/testimonial-bundle:dev-main.

Import the routes in config/routes.yaml:

oh_media_testimonial:
    resource: '@OHMediaTestimonialBundle/config/routes.yaml'

Run php bin/console make:migration then run the subsequent migration.

Frontend

Create templates/bundles/OHMediaTestimonialBundle/testimonial.html.twig and templates/bundles/OHMediaTestimonialBundle/testimonials.html.twig, which are expected for rendering the WYSIWYG Twig functions {{ testimonial(id) }} and {{ testimonials() }}.

The Testimonial entity has required fields author and quote, and optional fields affiliation and image. The image is an OHMedia\FileBundle\Entity\File and should be rendered with the image_tag Twig function.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published