Hallo zusammen,
ich habe folgendes Problem.
Ich hatte bis jetzt ein Menü gebaut, dass mir die Seitennamen anzeigt. Auch mit Untermenü usw.
Nun hätte ich gerne neben den Seitennamen auch ein Icon. Das bekomme ich leider nicht so hin.
Ich habe schon unter den Seiteneigenschaften -> Ressourcen - > Media ein Bild hochgeladen.
Ich hatte auch per typoscript versucht dies anzusprechen.
Aber ohne Erfolg. Evtl. hatte ich es auch an der falschen Stelle.
Anbei mein Script ohne diesen Media Teil, der ja sowieso nicht funtioniert hat.
lib.hauptnavigation = HMENU
lib.hauptnavigation.special = directory
lib.hauptnavigation.special.value = 1
lib.hauptnavigation {
1 = TMENU
1 {
expAll = 1
NO {
allWrap = <li>|</li>
doNotLinkIt = 1
stdWrap.cObject = CASE
stdWrap.cObject {
key.field = doktype
default = TEXT
default {
typolink.parameter.field = uid
field = title
stdWrap.htmlSpecialChars = 1
}
3 = TEXT
3 {
field = title
typolink.parameter.field = url
typolink.extTarget.field = target
}
4 = TEXT
4 {
field = title
typolink.parameter.field = shortcut
}
}
}
ACT = 1
ACT.wrapItemAndSub = <li class="active">|</li>
IFSUB = 1
IFSUB.wrapItemAndSub = <li class="dropdown">|</li>
IFSUB.ATagParams = class="dropdown-toogle" data-toogle="dropdown"
ACTIFSUB = 1
ACTIFSUB.wrapItemAndSub = <li class="dropdown active">|</li>
ACTIFSUB.ATagParams = class="dropdown-toogle" data-toogle="dropdown"
}
2 < .1
2 {
IFSUB = 1
IFSUB.wrapItemAndSub = <li class="dropdown-submenu">|</li>
IFSUB.ATagParams = class="dropdown-toogle" data-toogle="dropdown"
ACTIFSUB = 1
ACTIFSUB.wrapItemAndSub = <li class="dropdown-submenu active">|</li>
wrap = <ul class="dropdown-menu">|</ul>
}
3 < .2
3 {
IFSUB = 1
IFSUB.wrapItemAndSub = <li class="dropdown-submenu">|</li>
IFSUB.ATagParams = class="dropdown-toogle" data-toogle="dropdown"
ACTIFSUB = 1
ACTIFSUB.wrapItemAndSub = <li class="dropdown-submenu active">|</li>
wrap = <ul class="dropdown-menu2">|</ul>
}
}
Ich hoffe Ihr könnt mir helfen. Bin am verzweifeln![:( :(]()
Vielen Dank schonmal.
Liebe Grüße
stella21
ich habe folgendes Problem.
Ich hatte bis jetzt ein Menü gebaut, dass mir die Seitennamen anzeigt. Auch mit Untermenü usw.
Nun hätte ich gerne neben den Seitennamen auch ein Icon. Das bekomme ich leider nicht so hin.
Ich habe schon unter den Seiteneigenschaften -> Ressourcen - > Media ein Bild hochgeladen.
Ich hatte auch per typoscript versucht dies anzusprechen.
1 = TEXT
1.field = media
1.listNum = 0
1.wrap = <img src="fileadmin/user_upload/|" />
Aber ohne Erfolg. Evtl. hatte ich es auch an der falschen Stelle.
Anbei mein Script ohne diesen Media Teil, der ja sowieso nicht funtioniert hat.
lib.hauptnavigation = HMENU
lib.hauptnavigation.special = directory
lib.hauptnavigation.special.value = 1
lib.hauptnavigation {
1 = TMENU
1 {
expAll = 1
NO {
allWrap = <li>|</li>
doNotLinkIt = 1
stdWrap.cObject = CASE
stdWrap.cObject {
key.field = doktype
default = TEXT
default {
typolink.parameter.field = uid
field = title
stdWrap.htmlSpecialChars = 1
}
3 = TEXT
3 {
field = title
typolink.parameter.field = url
typolink.extTarget.field = target
}
4 = TEXT
4 {
field = title
typolink.parameter.field = shortcut
}
}
}
ACT = 1
ACT.wrapItemAndSub = <li class="active">|</li>
IFSUB = 1
IFSUB.wrapItemAndSub = <li class="dropdown">|</li>
IFSUB.ATagParams = class="dropdown-toogle" data-toogle="dropdown"
ACTIFSUB = 1
ACTIFSUB.wrapItemAndSub = <li class="dropdown active">|</li>
ACTIFSUB.ATagParams = class="dropdown-toogle" data-toogle="dropdown"
}
2 < .1
2 {
IFSUB = 1
IFSUB.wrapItemAndSub = <li class="dropdown-submenu">|</li>
IFSUB.ATagParams = class="dropdown-toogle" data-toogle="dropdown"
ACTIFSUB = 1
ACTIFSUB.wrapItemAndSub = <li class="dropdown-submenu active">|</li>
wrap = <ul class="dropdown-menu">|</ul>
}
3 < .2
3 {
IFSUB = 1
IFSUB.wrapItemAndSub = <li class="dropdown-submenu">|</li>
IFSUB.ATagParams = class="dropdown-toogle" data-toogle="dropdown"
ACTIFSUB = 1
ACTIFSUB.wrapItemAndSub = <li class="dropdown-submenu active">|</li>
wrap = <ul class="dropdown-menu2">|</ul>
}
}
Ich hoffe Ihr könnt mir helfen. Bin am verzweifeln

Vielen Dank schonmal.
Liebe Grüße
stella21