-
-
Notifications
You must be signed in to change notification settings - Fork 10
Template overrides
Akeeba Engage generates HTML output which is compatible with the CSS framework Bootstrap used by default in Joomla 3. Furthermore, it has some minimal CSS for the page elements that don't have a suitable Bootstrap equivalent.
The HTML output can be overridden by means of Template Overrides. We recommend consulting the official Joomla! documentation on Template Overrides to get an overview of the process.
The following guide assumes that you are familiar with that basic Joomla concept.
All frontend view templates shipped with Akeeba Engage can be found in components/com_engage/tmpl/Comments
.
Do NOT edit these files directly. They will overwritten when you update or re-install the component.
Instead, create a new folder templates/YOUR_TEMPLATE/html/com_engage/Comments
where YOUR_TEMPLATE is the name of your site's template. Copy the files you want to customise in that folder and edit the files there.
Used when you are displaying comments in an HTML output page. That's what you most likely need to customize.
-
default.php
The main file used for comments display. This provides the outer structure of the comments area. -
default_list.php
The comments list. This is the inner structure of the discussion. -
default_form.php
New comment / reply form. -
default_login.php
Login area when the form cannot be displayed due to unsufficient user permissions.
Used when a comment manager is editing a comment.
-
form.php
The entire page displaying the comment editor.
Used when displaying the comments count summary before or after an article displayed in the Featured Articles or Category Blog page in Joomla. These are rendered with Joomla layouts. The source files are in plugins/content/engage/layouts/akeeba/engage/content
and their overrides need to placed in templates/YOUR_TEMPLATE/html/layouts/akeeba/engage/content
where YOUR_TEMPLATE is the name of your site's template.
There are two files:
-
category.php
is used when Joomla is displaying a category in the Category Blog layout. -
featured.php
is used when Joomla is displaying a category in the Featured Articles layout.
In both cases the layout file is used for each individual article displayed in Joomla's respective category page in the frontend. Please note that you can not display a comments summary in the List layout for categories. It should be fairly obvious why: it's a table listing article titles, there's no space (or even a provision in Joomla's code) to display additional information there.
Akeeba Engage uses a small but important amount of JavaScript to implement the Reply button and all comment management buttons such as edit, publish, unpublish etc. Make sure to keep the class names and IDs with an akengage
or engage
prefix. They are expected in the component's JavaScript.
As a side note, our JavaScript is plain vanilla; it does not use jQuery or any other JavaScript library. This minimises the dependencies you need to load on the page.
Akeeba Engage and its documentation are Copyright © 2020-2023 Nicholas K. Dionysopoulos / Akeeba Ltd.
Akeeba Engage is Open Source Software, distributed under the GNU General Public License, version 3 of the license, or (at your option) any later version.
The Akeeba Engage Wiki content is provided under the GNU Free Documentation License, version 1.3 of the license, or (at your option) any later version.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found on the GNU site.