webfox/silverstripe-testimonials

A silverstripe testimonials module

v0.2.2 2017-01-15 20:22 UTC

README

A FAQ module for silverstripe that implements the backend on any pagetype via an extension but does not dictate the frontend!

How to use

Install through composer

composer require webfox/silverstripe-testimonials

Apply to any pagetype you want the "Faq Segments" tab to appear on

(can be applied to multiple page types)

Page:
  extensions:
    - TestimonialsExtension

Use on the frontend

<% if $testimonials.exists %>
    <% loop $testimonials %>
        <h2>Author: {$Title}</h2>
        <p>Company: {$Company}</p>
        <p>Date: {$Date}</p>
        <img src="{$Image.Url}" />
        <p>Testimonial:</p>
        {$Testimonial}
    <% end_loop %>
<% end_if %>