Comment function

1. Inclusion

The comment function module is a module that can be configured and included in each web page by adding an XML tag:
APF template
<core:importdesign namespace="modules::comments::pres::templates" template="comment" categorykey="{CAT_KEY}" />
The value "{CAT_KEY}" must be changed to something useful.


2. Configuration

2.1. Application configuration

The module uses a database table to save the comments. For this reason, a database configuration must be defined in the module's configuration. The name of the configuration file is
Code
/config/modules/comments/{CONTEXT}/{ENVIRONMENT}_comments.ini
and the content looks as follows:
APF configuration
[Default] Database.ConnectionKey = "..."
Details on the configuration can be taken from the Configuration chapter.


2.3. CAPTCHA module

To protect the comment form from spam posts, the form was added the CAPTCHA taglib (for forms). This APF module needs further configuration in order to dynamically display the captcha module. So please take the steps necessary from the linked module desciption page.


2.2. CSS adaption

In order to adapt the design of the module fitting your page layout, several classes are included in the HTML markup. For a start, you can use the stylesheet, that is delivered together with the module's code:
APF template
/modules/comments/pres/css/comments.css
Including the module into your page, your stylesheet should contain the content of the example file. This can be achieved by adding the whole stylesheet to your page header or by defining the relevant classes within your existing stylesheets.


3. Note

A detailed description on the function of this module can be found in the tutorials section under Comment function.

Comments

Do you want to add a comment to the article above, or do you want to post additional hints? So please click here. Comments already posted can be found below.
« 1   »
Entries/Page: | 5 | 10 | 15 | 20 |
1
vagra_sale 01.12.2016, 09:39:12
vagra sale may also be used for purposes other than those listed here.
2
with 24.09.2016, 19:20:42
problem with erection dosage , viagra side effects for women Utilizador Senha Memorizar Perdeu a senha?