[TYPO3-german] leveluid als condition für COA-elemente verwenden?
orjo
orjo at backlab.at
Tue Jun 11 01:13:03 CEST 2013
lib.pageTeaser = COA
lib.pageTeaser {
wrap = <div class="pageTeaserGrid">|</div>
1 = CONTENT
1 {
table = pages
select {
pidInList = {leveluid:1}
pidInList.insertData = 1
recursive = 1;
# order by page tree position, you can set it to be title
# or any other page field
orderBy = sorting
# maximum items displayed
max = 200
}
# split into 3 column sections, use CSS to manipulate the looks
stdWrap.split {
token = ###SPLIT###
wrap = |*|<div class="pageTeaserRow"><section class="pageTeaserItem
first"><div class="pageTeaserItemPadding">|</div></section><div
class="colSpacer"></div>||<section class="pageTeaserItem middle"><div
class="pageTeaserItemPadding">|</div></section><div
class="colSpacer"></div>||<section class="pageTeaserItem last"><div
class="pageTeaserItemPadding">|</div></section></div>|*| |
}
# getting the image from page preferences Resources -> Files -> Media
renderObj = COA
renderObj {
wrap = |###SPLIT###
10 = COA
10 {
# image wrapping
20 = IMAGE
20 {
file = fileadmin/template/img/izk_dummy2.jpg
file.import = upload/media/
file.import.data = levelmedia: -1,slide
file.treatIdAsReference = 1
file.import.listNum = 0
file.import.override.field = media
file.maxW = 200
file.maxH = 200
altText.data = page:title
}
20.imageLinkWrap = 1
20.imageLinkWrap.enable = 1
20.imageLinkWrap.typolink.parameter.field = uid
20.wrap = <div class="pageTeaserImage">|</div>
# page title as text link under the image
30 = TEXT
30.field = title
30.typolink.parameter.field = uid
30.wrap = <div class="pageTeaserTitle">|</div>
# use any field from page preferences
#40 = TEXT
#40.field = title
#40.wrap = <p>Page author: |</p>
}
}
}
}
--
View this message in context: http://typo3.3.n7.nabble.com/leveluid-als-condition-fur-COA-elemente-verwenden-tp244740p244741.html
Sent from the TYPO3 German mailing list archive at Nabble.com.
More information about the TYPO3-german
mailing list