A set of widgets for displaying single and multiple testimonials.
This package is auto-updated.
Last update: 2023-01-21 17:06:48 UTC
These are widgets you can use with the Silverstripe Testimonials module.
Go to the root of your Silverstripe project, and enter :
composer self-update && composer require rattfieldnz/silverstripe-testimonials-widgets
In your project's mysite/_config/config.yml file, insert the following:
TestimonialsHolderPage: no_of_testimonials_in_widget: 2 testimonial_words_summary_count: 50
The above should be self-explanatory :).
Run the following command to populate your Silverstripe project's database with this module's details:
php framework/cli-script.php dev/build flush=all
Go to a page you have created, e.g. your 'home' page. Make sure you have already configured it so it can display widgets.
When you go to edit your page, you should see two tabe on the left hand side - 'Main Content' and another tab for widgets. If you see the latter, you can proceed to the next step.
You should see all the available widgets in your SilverStripe project. The widgets we are looking for are 'Testimonial' and 'Testimonials'.
'Testimonial' displays a single randomly-selected testimonial that has been published.
'Testimonials' displays multiple randomly-selected testimonials which have been published.
Select either, or both, of these widgets and then save your page. You should now see the widget/s and its/their content on the page you just added them to.
If not, append ?flush=all and revisit your page's URL.
If the above does not work, remove the cache files with the command
sudo rm -rf /tmp/.
I have just recently started Silverstripe development, and am still learning the awesome ecosystem that it is. If you see anything I have missed, or constructive ideas to make this module better, please contact me and let me know. You can even fork this repo and play with the code yourself too :).