[TYPO3] Netcreators: comments, a bit bug

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Feb 25 12:56:05 CET 2008


Hi!

Custos Ostii wrote:
> The great comments extension from netcreators missed (i think so) this line
> '###TEXT_ENTER_CODE###' => $this->pi_getLL('pi1_template.enter_code')
> just after
>  '###SITE_REL_PATH###' => t3lib_extMgm::siteRelPath('comments'),
> at line 688 in "pi1/class.tx_comments_pi1.php" 

It does not. This line exists there. Here is the code:

=================
$code = $this->cObj->substituteMarkerArray($template, array(
		'###SR_FREECAP_IMAGE###' => '<img src="' . t3lib_extMgm::siteRelPath('captcha') . 'captcha/captcha.php" alt="" />',
		'###SR_FREECAP_CANT_READ###' => '',
		'###REQUIRED_CAPTCHA###' => $this->cObj->getSubpart($this->templateCode, '###REQUIRED_FIELD###'),
		'###ERROR_CAPTCHA###' => $this->form_wrapError('captcha'),
		'###SITE_REL_PATH###' => t3lib_extMgm::siteRelPath('comments'),
		'###TEXT_ENTER_CODE###' => $this->pi_getLL('pi1_template.enter_code'),
	));
return str_replace('<br /><br />', '<br />', $code);
=================

> Ahh, and one question:
> How can i enable comments for entries in cal extension?

You need to know two things about cal:
- table name where cal records are stored (something like tx_cal_something)
- paramater prefix that cal uses in its URLs (will look something like "tx_cal_pi1")

Next you add to your TS template:

prefixToTableMap.tx_cal_pi1 = tx_cal_something

Next you specify tx_cal_pi1 as triggering prefix in configuration. That's all.

You can also ask cal developers to add this one line into their TS. This way cal and comments will automatically integrate. Or they can provide information to me and I will add it to comments extension.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-english mailing list