webfox/silverstripe-faq

This package is abandoned and no longer maintained. No replacement package was suggested.

A silverstripe faq module

Installs: 298

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 1

Open Issues: 0

Type:silverstripe-module

v2.0.1 2016-11-21 00:27 UTC

This package is auto-updated.

Last update: 2022-10-14 02:51:28 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-faq

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

(can be applied to multiple page types)

Page:
  extensions:
    - FrequentlyAskedQuestionsExtension

Use on the frontend

<% if $Faqs.exists %>
    <% loop $Faqs %>
        <h2>Q. {$Title}</h2>
        <strong>A.</strong> {$Answer}
    <% end_loop %>
<% end_if %>