Extension Key: ed_newscomments
Copyright 2004, Mirko Balluff, <balluff@miba-edv.de>
This document is published under the Open Content License
available from http://www.opencontent.org/opl.shtml
The content of this document is related to TYPO3
- a GNU/GPL CMS/Framework available from www.typo3.com
With the extension “News Comments” your frontend users can add comments to news items displayed on your site. The users are also able to delete their own comments. The comments can be viewed by any visitor, but they must be logged in to add or delete comments.
You can define the layout in an HTML-template and / or CSS.
Here you can see the extension in action:
Image 1 - The extension in action
To achive this you should follow a few simple steps. First install the extension in the extension manager (not described here). After this (and eventually switching to page-mode) go to the page where you've inserted the tt_news-extension for the single display (if you show single news items on other pages repeat these steps there if you want to display the comments there either).
Image 2 - Inserting the plugin
Klick on Icon (1) to isert a new content element. On the following page select (2) to insert an plugin. In the textbox (3) you can optionally set an header which will be displayed over the plugin. Now you can select “News Comments” in se selectbox (5). Now save your changes.
On the following page you can select (5) the page where the records are saved. Optionally you can set this parameter in an constant. If you set the value here the constant is not used. Save your changes and close the page. Now the result should look like (6).
Now go to a page where your template reside or create an extension template for the page you've just edited. Switch to template-mode and open the constant editor. Here you can edit thew constants to fit your needs.
Image 3 Changing constants in the constant editor
First select the NewsComments extension (1). Then you can edit template, images and so on. The only values you must edit are the “Storage Pid” if you've not set it in the content element and most important the value for “Clear Cache PID's”. Here you must enter any pid of the pages where you've inserted the plugin. The cache for the pages referenced is cleared every time you add or delete comments.


