|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Load plugin into subpartHi all,
Few weeks ago i started with typo3 and now i have a question and i hope some of you can help me. Im trying to load plugin.tx_t3mcumulustagcloud into the subpart TAGS without getting it twice on my page. Atm with this code i have the plugin showing in TAGS on the front-end but i have it twice because i also load styles.content.get in the subpart CONTENT. I only want the plugin to be loaded in TAGS and skipped in CONTENT and still keep the plugin in de normal content area. [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 } [END] [PIDinRootline = 4] temp.mainTemplate = TEMPLATE temp.mainTemplate { template = FILE template.file = fileadmin/labfs/contact.html } [END] [PIDinRootline = 120] temp.mainTemplate = TEMPLATE temp.mainTemplate { template = FILE template.file = fileadmin/labfs/overzicht.html } [END] tt_content.text > tt_content.text = COA tt_content.text { 10 = TEXT 10 { field = header wrap = | } 20 = TEXT 20 { field = bodytext wrap = | } } tt_content.image.20 > tt_content.image.20 = COA tt_content.image.20 { 10 = TEXT 10 { field = header wrap = | } 20 = TEXT 20 { field = bodytext wrap = | } temp.images < styles.content.get temp.images { renderObj = COA renderObj { 30 = IMAGE 30 { file.import = uploads/pics/ file.import.field = image file.import.listNum = 0 file.width = 100 file.height = 80 stdWrap.wrap = <div class="image"> | </div> imageLinkWrap=1 imageLinkWrap { width=800m height=600m JSwindow=1 JSwindow { newWindow=0 expand=0,0 } enable{ field=image_zoom ifEmpty.field=image_link } typolink { parameter { field=image_link target=page extTarget=_blank } } } } 40 = IMAGE 40 { file.import = uploads/pics/ file.import.field = image file.import.listNum = 1 file.width = 100 file.height = 80 stdWrap.wrap = <div class="image"> | </div> imageLinkWrap=1 imageLinkWrap=1 imageLinkWrap { width=800m height=600m JSwindow=1 JSwindow { newWindow=0 expand=0,0 } enable{ field=image_zoom ifEmpty.field=image_link } typolink { parameter { field=image_link target=page extTarget=_blank } } } } 50 = IMAGE 50 { file.import = uploads/pics/ file.import.field = image file.import.listNum = 2 file.width = 100 file.height = 80 stdWrap.wrap = <div class="image"> | </div> imageLinkWrap=1 imageLinkWrap { width=800m height=600m JSwindow=1 JSwindow { newWindow=0 expand=0,0 } enable{ field=image_zoom ifEmpty.field=image_link } typolink { parameter { field=image_link target=page extTarget=_blank } } } } } } } temp.tagcloud = COA temp.tagcloud { 10 < styles.content.get 10.renderObj = < plugin.tx_t3mcumulustagcloud_pi1 } page = PAGE page.typeNum = 0 page.stylesheet = fileadmin/labfs/css/style.css page.10 < temp.mainTemplate page.10.workOnSubpart = BODY_CONTENT page.10 { marks.MERK = IMAGE marks.MERK.file = fileadmin/labfs/shared/{$myImage.Merk} marks.MERK.file.width = 179 marks.MERK.file.height = 33 marks.TITLE = TEXT marks.TITLE.field = title marks.TITLE.wrap = <h1>|</h1> marks.PRINTLINK = TEXT marks.PRINTLINK { value = [•] print deze pagina postUserFunc = tx_make_printlink postUserFunc.include_post_vars = 1 postUserFunc.target = _blank" rel="nofollow,noindex } subparts.LEFT < styles.content.getLeft subparts.CONTENT < styles.content.get subparts.IMAGE < tt_content.image.20.temp.images subparts.TAGS < temp.tagcloud subparts.CONTACTINFO < styles.content.get subparts.CONTACTINFO { table = tt_content renderObj = COA renderObj { 10 = TEXT 10 { field = header wrap = <h1> | </h1> } 20 = TEXT 20 { field = bodytext wrap = <div class="formtxt">|</div> } } } } Hope you guys can help. Thanks! Regards, Rob van Loon rob@... _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: Load plugin into subpartHi 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. _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: Load plugin into subpartNO condition INSIDE brackets...
so it must be temp.mainTemplate = TEMPLATE temp.mainTemplate { template = FILE template.file = fileadmin/labfs/index.html } [PIDupinRootline = 2,114] temp.mainTemplate.template.file = fileadmin/labfs/content.html [END] [PIDinRootline = 4] temp.mainTemplate.template.file = fileadmin/labfs/contact.html [END] _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: Load plugin into subpartYou're right... but let him thinking a bit ;-)
Ralf-René Schröder schrieb: > NO condition INSIDE brackets... > > so it must be > > temp.mainTemplate = TEMPLATE > temp.mainTemplate { > template = FILE > template.file = fileadmin/labfs/index.html > } > [PIDupinRootline = 2,114] > temp.mainTemplate.template.file = fileadmin/labfs/content.html > [END] > [PIDinRootline = 4] > temp.mainTemplate.template.file = fileadmin/labfs/contact.html > [END] TYPO3-english mailing list TYPO3-english@... http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: Load plugin into subpartThanks Cris! I finnaly got it working, and i also changed my mistake with
the brackets :-). But when i load the plugin on a page and give it a other pid so that i have unique tags for a page the plugin doesn't load in my subpart TAGS. "Chris Müller" <timmi1@...> schreef in bericht news:mailman.1.1257343113.19551.typo3-english@...... > 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. _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english |
| Free embeddable forum powered by Nabble | Forum Help |