[TYPO3] subpages with image
Stano Paška
stano.paska at gmail.com
Mon May 7 08:14:58 CEST 2007
Hi,
I need functionality similar to "Menu of subpages to these pages (with
abstract)", but not with abstract, but with small image from
dat_pages.
I tried something like this
temp.odkazy = HMENU
temp.odkazy {
special = directory
special.value = 15
1 = TMENU
1 {
noBlur = 1
NO {
linkWrap = <p>|</p>
stdWrap {
prepend = IMAGE
prepend {
file {
import.cObject = USER
import.cObject {
userFunc = tx_dam_pages->get_media_file
defaultFile = fileadmin/img/odkazy/ubytovanie.jpg
}
}
}
}
}
}
}
but it seems that it takes image not from subpages, but from actual
page ($uid = $GLOBALS["TSFE"]->id;).
Then I tried something like this
temp.odkazy = CONTENT
temp.odkazy {
table = pages
select {
pidInList = 15
orderBy = sorting
where = doktype=4
}
}
pages = COA
pages {
10 = IMAGE
10 {
file {
import.cObject = USER
import.cObject {
userFunc = tx_dam_pages->get_media_file
defaultFile = fileadmin/img/odkazy/ubytovanie.jpg
}
}
}
20 = TEXT
20.field = title
}
but in this solution titles of pages are not localized.
I know that I must someway combine that solutions, but this is beyond
my knowledge (for now).
Thanks for solutions.
Stano.
More information about the TYPO3-english
mailing list