TemplatesFaq module
Faq templates
Default templates the Faq module renders, the controller that renders each one and what it receives. A file at the same path in your site repository replaces the platform's.
Templates view
faq/pages/show.html
Pages\Show
Show a single record
| Variable | Type | Description |
|---|---|---|
$page |
Page |
Single Page record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/faq/pages/show.html in your site repository.
faq/questions/index.html
Questions\Index
Retrieve a list of records and assign them to the template.
| Variable | Type | Description |
|---|---|---|
$questions |
Collection<Question> |
Collection of Questions |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/faq/questions/index.html in your site repository.
faq/questions/show.html
Questions\Show
Show a single record
| Variable | Type | Description |
|---|---|---|
$question |
Question |
Single Question record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/faq/questions/show.html in your site repository.