[TYPO3-english] Load plugin into subpart

Chris Müller timmi1 at gmx.li
Wed Nov 4 14:58:06 CET 2009


Hi Rob,

first, you can shorten this:

> [PIDupinRootline = 2,114]
> temp.mainTemplate = TEMPLATE
> temp.mainTemplate {
> template = FILE
> template.file = fileadmin/labfs/content.html
> }
> [ELSE]
> temp.mainTemplate = TEMPLATE
> temp.mainTemplate {
> template = FILE
> template.file = fileadmin/labfs/index.html
> }

to

temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template = FILE
template.file = fileadmin/labfs/index.html

[PIDupinRootline = 2,114]
   template.file = fileadmin/labfs/content.html
[END]

[PIDinRootline = 4]
   template.file = fileadmin/labfs/contact.html
[END]

... many ts-code ...

In my opinion you have to extend the php code of Cumulus tagcloud, 
because the extension is always used via the frontend plugin. In the 
frontend plugin you have to give the pid of the storage folder, where 
your tags are stored. If you want to use the extension via ts you have 
to give the pid back to the extension via ts.

I had some days ago the same problem and extended the php code 
(class.tx_t3mcumulustagcloud_pi1.php, about line 60):

-----
//get the values
$input_pid = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 
'inputPID', 'sDEF');
if ($input_pid == "") {
   $input_pid = $conf['input_pid'];
}

$input_width = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 
'inputWidth', 'sDEF');
if ($input_width == "") {
   $input_width = $conf['input_width'];
}
...
-----

where $conf['input_pid'], $conf['input_width'], ... are defined in ts:

-----
plugin.tx_t3mcumulustagcloud_pi1 {
   input_pid = 34
   input_width = 200
   ...
}
-----

Hope that helps for you,
Chris.


More information about the TYPO3-english mailing list