[TYPO3-english] Comments extension

Benoit Montereau bmontereau at gmail.com
Fri May 27 00:27:50 CEST 2011


Hi Menno,
I'm also trying to make working together comments with another one (jk_poll)
unfortunately with no success.
So I would appreciate if you get any usefule feedback/tips regarding your
question. Please let me know.
Cheers,
BM

On Wed, May 25, 2011 at 4:35 PM, Menno Schreuder <menno at redmatters.com>wrote:

> Hi all,
>
> I'm having problems getting the 'Comments' extension to show comments based
> on a record-uid. The documentation states this is possible. We use an
> extension that shows residential property (a house or building) based on a
> 'resid'.
> Maybe I just do not understand how it is supposed to work, but I keep
> having problems to show a comment on the right page.
>
> When I write a comment on a detailpage of a building, it shows on all
> detailviews, ignoring the resid-value. When I check the field-values of a
> comment in the database, the external_ref value has a default value 'pages_'
> followed by the ID of the detailpage.
>
> Basically it comes down to this:
>
>  *   Extension can be installed succesfully. No problems here.
>  *   I can add the plugin to a page (ie detailview for houses) but it will
> show all comments on all detailpages, ignoring the resid.
>  *   The plugin has to be set to 'pages' to show the plugin in the front,
> otherwise it will not show at all (can't be empty and it can't be something
> else – exception described in next line).
>  *   The extension uses the table 'houses' (just that, no prefix/suffix).
> Setting the plugin's value for Triggering prefix to 'tx_extname_pi1' and
> prefixToTableMap.tx_extname_pi1 = houses will result in an error "NO entry
> in the $TCA-array for the table "houses". This means that the function
> enableFields() is called with an invalid table name as argument."
>  *   For every new record (=comment) in the database, values for fields
> 'external_ref' and 'external_prefix' will always be 'pages_25' and 'pages',
> despite of the TS-settings.
>
> My config:
> Setup
> plugin.tx_comments_pi1.showUidMap.tx_extname_pi1 = resid
> plugin.tx_comments_pi1.prefixToTableMap.tx_extname_pi1 = houses (or this is
> disabled)
>
> Constants
> plugin.tx_comments_pi1.externalPrefix = resid
>
> URL on a detailpage –
> http://domain.net/index.php?id=25&tx_extname_pi1[resid]=106
>
> I hope it makes any sense to anyone. If not or if some information is
> missing, please let me know.
>
> Kind regards,
>
> Menno-Paul Schreuder
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list