[TYPO3-english] Change Menu-Item-Image (from Page Settings) on RollOver
Bastian Holzem
typo3 at workid.de
Thu Mar 31 18:26:55 CEST 2016
Hello,
I show the 1. Picture (from the Page Settings) infront of the Menu Entry.
I wanted now change the Picture to the 2. Picture from the Page Settings on RollOver.
I did this already for the active state (CUR) and it works but RO does not work.
Thanks for your help
my Code:
2 = TMENU
2 {
expAll = 1
NO {
wrapItemAndSub = <div class="item subnav-carousel-item active"><div class="col-xs-12 col-sm-4 col-md-3">|</div></div> |*| <div class="item subnav-carousel-item"><div class="col-xs-12 col-sm-4 col-md-3">|</div></div>
stdWrap.cObject = COA
stdWrap.cObject {
#IMG
10 = FILES
10 {
references {
table = pages
uid.data = field:uid
fieldName = media
}
begin = 0
maxItems = 1
renderObj = IMAGE
renderObj {
file.import.data = file:current:publicUrl
altText.data = file:current:title
titleText.data = file:current:alternative
params = class="img-responsive img-subnav active"
}
}
#Title
20 = TEXT
20.field = title
20.wrap = <span class="title">|</span>
#Subtitle
30 = TEXT
30.field = subtitle
30.wrap = <span class="subtitle">(|)</span>
}
}
CUR = 1
CUR {
wrapItemAndSub = <div class="item subnav-carousel-item active"><div class="col-xs-12 col-sm-4 col-md-3">|</div></div> |*| <div class="item subnav-carousel-item"><div class="col-xs-12 col-sm-4 col-md-3">|</div></div>
stdWrap.cObject = COA
stdWrap.cObject {
#IMG
10 = FILES
10 {
references {
table = pages
uid.data = field:uid
fieldName = media
}
begin = 1
maxItems = 1
renderObj = IMAGE
renderObj {
file.import.data = file:current:publicUrl
altText.data = file:current:title
titleText.data = file:current:alternative
params = class="img-responsive img-subnav active"
}
}
#Title
20 = TEXT
20.field = title
20.wrap = <span class="title active">|</span>
#Subtitle
30 = TEXT
30.field = subtitle
30.wrap = <span class="subtitle active">(|)</span>
}
}
}
More information about the TYPO3-english
mailing list