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.
Admin view
faq/backend/pages/add.html
Pages\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$page |
Page |
Single (empty) Page record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/faq/backend/pages/add.html in your site repository.
faq/backend/pages/edit.html
Pages\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$page |
Page |
Retrieved Page record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/faq/backend/pages/edit.html in your site repository.
faq/backend/pages/manage.html
Pages\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$pages |
Collection<Page> |
Collection of Pages |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/faq/backend/pages/manage.html in your site repository.
faq/backend/question-comments/add.html
QuestionComments\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$questionComment |
QuestionComment |
Single (empty) QuestionComment record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/faq/backend/question-comments/add.html in your site repository.
faq/backend/question-comments/edit.html
QuestionComments\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$questionComment |
QuestionComment |
Retrieved QuestionComment record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/faq/backend/question-comments/edit.html in your site repository.
faq/backend/question-comments/manage.html
QuestionComments\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$questionComments |
Collection<QuestionComment> |
Collection of QuestionComments |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/faq/backend/question-comments/manage.html in your site repository.
faq/backend/questions/add.html
Questions\Add
Add a new record. Assigns an empty record to the template.
| Variable | Type | Description |
|---|---|---|
$question |
Question |
Single (empty) Question record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/faq/backend/questions/add.html in your site repository.
faq/backend/questions/edit.html
Questions\Edit
Retrieve a single record and display the edit page for the record
| Variable | Type | Description |
|---|---|---|
$question |
Question |
Retrieved Question record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/faq/backend/questions/edit.html in your site repository.
faq/backend/questions/manage.html
Questions\Manage
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$questions |
Collection<Question> |
Collection of Questions |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Customise this admin screen: create templates/faq/backend/questions/manage.html in your site repository.