[TYPO3-english] TypoScrip, FAL and slide
Christian Tauscher
christian.tauscher at media-distillery.de
Mon Sep 2 10:20:53 CEST 2013
Hallo dear TS-Experts!
I want to bild a menu in a select-box, a kind of JSMENU to switch areas
of the website.
Each option sould contain a image and the pagetitle.
As an Example:
Please choose your favorite
Picture1 Area1
Picture2 Area2
Picture3 Area3
Picture4 Area4
The Picture is stored on the appropriate root-page, is finaliy rendered
as inlie-style.
Root
|- Area 1
|- Page 1/1
|- Page 1/2
|- Area 2
|- Page 2/1
|- Page 2/2
|- Area 3
|- Seite 3/1
|- Seite 3/2
So far, so good.
Following the script.
The Image is rendered Correct only if you are on Level0.
Deeper on the site, the Image is not rendered due to a missing slide
option wich I can't implement...
lib.metaMenu = HMENU
lib.metaMenu.entryLevel = 0
lib.metaMenu.1 = TMENU
lib.metaMenu.1 {
expAll = 1
wrap = <form><select>|</select></form>
NO {
doNotShowLink = 1
allWrap.cObject = COA
allWrap.cObject {
10 = TEXT
10.value (
<option value="index.php?id={field:uid}"
style="background-image:url('
)
10.insertData = 1
# the Image
20 = FILES
20 {
references {
table = pages
uid.data = page:uid
fieldName = media
listNum = 0
}
renderObj = TEXT
renderObj {
field = media
stdWrap.wrap = fileadmin/templates/|
}
}
25 = TEXT
25.value = {field:title}
25.insertData = 1
25.wrap = ');">|</option>
}
}
}
Who can help me with the slide?
I have tried the following:
20 = IMG_RESOURCE
20.file.import.data = levelmedia:-1, slide
20.file.listNum = 0
20.file.treatIdAsReference = 1
this slides perfecly, bute the Image is always taken from the current
page tree.
I hope you may help me with this problem,
thank you very much,
Christian.
More information about the TYPO3-english
mailing list