/ Published in: TYPO3
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
# ==============================================================================
# Main menu (first level) - Left side navigation
# ==============================================================================
# first level, e.g. tabs
lib.mainnavi.entryLevel = 1
lib.mainnavi {
1 {
wrap = <ul>|</ul>
NO {
allStdWrap.insertData = 1
ATagTitle.field = description // subtitle // title
10.field = subtitle // title
# Get the unix timestamp from newUntil w/o time and add 23:59:59
15 {
today {
cObject = TEXT
cObject {
data = field:newUntil
wrap = |+86399
}
prioriCalc = intval
}
}
20 {
new.cObject {
value = new
wrap = class="|"
if {
value.data = date: U
isLessThan.data = register:today
negate = 1
}
}
}
30 {
firstnew.cObject.value = firstnew
}
40 {
lastnew.cObject.value = lastnew
}
}
allWrap = <li {register:firstnew}> |*| <li {register:new}> |*| <li {register:lastnew}>|</li>
}
ACT {
ATagParams = class="active"
}
ACTIFSUB {
wrapItemAndSub = <li> | </li>
allWrap = <strong> | </strong>
linkWrap = |
ATagBeforeWrap = 0
ATagParams = class="active"
}
}
2 < .1
3 < .1
4 < .1
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                