[TYPO3-UG Dutch] Load plugin into subpart
Rob
rob at eigenwijze.nl
Wed Nov 4 12:37:05 CET 2009
Hi 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 at eigenwijze.nl
More information about the TYPO3-UG-Dutch
mailing list