Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] Section index and option split within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi I have problems with section index default # "Section index (pagecontent w/Index checked - liststyle)" 3.wrap = <...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi
I have problems with section index default # "Section index (pagecontent w/Index checked - liststyle)" 3.wrap = <ul class="csc-menu csc-menu-3">|</ul> 3.renderObj.noBlur = 1 3.renderObj.wrap = <li class="csc-section">|</li> I would like to reset that This doesn't work: tt_content.menu.20.3 { wrap =<div class="csc-menu csc-menu-3">|</div> renderObj.wrap = | 1.NO.wrapItemAndSub=| 1.NO.linkWrap= <span class="csc-section">| | </span> |*| <span class="csc-section">| | </span> |*|<span class="csc-section lastItem">|</span> 1.NO.ATagParams = class="sectionLink" } 1.NO has no effect - apparently because of subsection of a page If I set tt_content.menu.20.3 { wrap =<div class="csc-menu csc-menu-3">|</div> renderObj.wrap = <span class="csc-section">| | </span> |*| <span class="csc-section">| | </span> |*|<span class="csc-section lastItem">|</span> } option split for renderObj.wrap doesn't work I don't figure how I could in this case option split for links _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi,
On 5/12/07, Tapio Markula <tapio.markula (AT) atwebteam (DOT) com> wrote: > Hi > > I have problems with section index > > default > > > # "Section index (pagecontent w/Index checked - liststyle)" > 3.wrap = <ul class="csc-menu csc-menu-3">|</ul> > 3.renderObj.noBlur = 1 > 3.renderObj.wrap = <li class="csc-section">|</li> > > I would like to reset that > This doesn't work: > > tt_content.menu.20.3 { > wrap =<div class="csc-menu csc-menu-3">|</div> > renderObj.wrap = | > 1.NO.wrapItemAndSub=| > 1.NO.linkWrap= <span class="csc-section">| | </span> |*| > <span class="csc-section">| | </span> |*|<span > class="csc-section lastItem">|</span> > 1.NO.ATagParams = class="sectionLink" > } > > 1.NO has no effect - apparently because of subsection of a page > > If I set > tt_content.menu.20.3 { > > wrap =<div class="csc-menu csc-menu-3">|</div> > renderObj.wrap = <span class="csc-section">| | </span> > |*| <span class="csc-section">| | </span> |*|<span > class="csc-section lastItem">|</span> > } > > option split for renderObj.wrap doesn't work > > I don't figure how I could in this case option split for links It CAN'T work. The object you're working on is NOT a menu cObject. Your entire "1.NO.whatever..." constructs make no sense in the context you're using them. According to the TSref, optionSplit is "primarily used in the menu-objects." This implies that it might work elsewhere, but I'm not actually aware of anywhere else it works. To mark up items differently in your sectionIndex menu according to their position/order, you're going to have to approach it differently; maybe look at the way that lib.stdheader uses LOAD_REGISTER with cObj arentRecordNumber to mark up the /first/ header in the pagedifferently. You could use this approach to mark up the first item in the menu normally: renderObj.wrap = <span class="csc-section">|</span> ....and then wrap all others something like this: renderObj.wrap = <span class="csc-section"> | |</span> Unlike with lib.stdheader though, I'd say the best way to do your menu might be to use a CASE cObject instead of .if. -- Christopher Torgalson http://www.typo3apprentice.com/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Christopher
> To mark up items differently in your sectionIndex menu according to > their position/order, you're going to have to approach it differently; > maybe look at the way that lib.stdheader uses LOAD_REGISTER with > cObj arentRecordNumber to mark up the /first/ header in the page> differently. You could use this approach to mark up the first item in > the menu normally: > > > renderObj.wrap = <span class="csc-section">|</span> > > > ...and then wrap all others something like this: > > > renderObj.wrap = <span class="csc-section"> | |</span> ok - that could work also if there is just one object In fact if,case and load_register stuff in TypoScipt is part, which I don't propely understand. Honestly I can do those stuff only if somebody gives good examples because in this stuff TypoScript is really difficult - ten times more difficult than PHP! You mean something like tt_content.menu.20.3 { wrap =<div class="csc-menu csc-menu-3">|</div> renderObj=CASE { cObj arentRecordNumber=LOAD_REGISTERdefault wrap= <span class="csc-section"> | |</span> 1 wrap= <span class="csc-section">|</span> } } _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
Hi,
> It CAN'T work. The object you're working on is NOT a menu cObject. > Your entire "1.NO.whatever..." constructs make no sense in the context > you're using them. > > According to the TSref, optionSplit is "primarily used in the > menu-objects." This implies that it might work elsewhere, but I'm not > actually aware of anywhere else it works. Another thought... I think Joey (JoH asenau - info (AT) cybercraft (DOT) de) has built a extension that gives option split to all wraps now - might be helpful? Tyler _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
Tyler Kraft kirjoitti:
> Hi, > >> It CAN'T work. The object you're working on is NOT a menu cObject. >> Your entire "1.NO.whatever..." constructs make no sense in the context >> you're using them. >> >> According to the TSref, optionSplit is "primarily used in the >> menu-objects." This implies that it might work elsewhere, but I'm not >> actually aware of anywhere else it works. > > > Another thought... I think Joey (JoH asenau - info (AT) cybercraft (DOT) de) has > built a extension that gives option split to all wraps now - might be > helpful? > > Tyler Yes - I have sometimes succed to create CASE and if stuff but I don't understand if properly and I don't understand at all how LOAD_REGISGER work - examples in TSRef are not good enough. Mostly I love TypoScript - but I really hate if-stuff - is really weird and extremely difficult to understand. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
Tyler Kraft kirjoitti:
> Hi, > >> It CAN'T work. The object you're working on is NOT a menu cObject. >> Your entire "1.NO.whatever..." constructs make no sense in the context >> you're using them. >> >> According to the TSref, optionSplit is "primarily used in the >> menu-objects." This implies that it might work elsewhere, but I'm not >> actually aware of anywhere else it works. > > > Another thought... I think Joey (JoH asenau - info (AT) cybercraft (DOT) de) has > built a extension that gives option split to all wraps now - might be > helpful? > > Tyler what might be the name of the extension? _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#7
|
|||
|
|||
|
LOL
I don't know, i don't sit around and memorise the extension repository ;-) Do a search from the extensions list on the BE of one of your installations! Try "wrap" or "option" perhaps as the words... hth Tapio Markula wrote: > Tyler Kraft kirjoitti: >> Hi, >> >>> It CAN'T work. The object you're working on is NOT a menu cObject. >>> Your entire "1.NO.whatever..." constructs make no sense in the context >>> you're using them. >>> >>> According to the TSref, optionSplit is "primarily used in the >>> menu-objects." This implies that it might work elsewhere, but I'm not >>> actually aware of anywhere else it works. >> >> >> Another thought... I think Joey (JoH asenau - info (AT) cybercraft (DOT) de) has >> built a extension that gives option split to all wraps now - might be >> helpful? >> >> Tyler > > what might be the name of the extension? _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#8
|
|||
|
|||
|
Tyler Kraft kirjoitti:
> LOL > > I don't know, i don't sit around and memorise the extension repository ;-) > > Do a search from the extensions list on the BE of one of your > installations! Try "wrap" or "option" perhaps as the words... found nh_stdwrap_plus fullstdwrap kb_betterstdwrap fullstdwrap is incompatible with my plugin _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#9
|
|||
|
|||
|
sorry I was wrong, not Joey but Bernhard... It was probably
kb_betterstdwrap that I'm thinking of. Tapio Markula wrote: > Tyler Kraft kirjoitti: >> LOL >> >> I don't know, i don't sit around and memorise the extension repository >> ;-) >> >> Do a search from the extensions list on the BE of one of your >> installations! Try "wrap" or "option" perhaps as the words... > > found > nh_stdwrap_plus > fullstdwrap > kb_betterstdwrap > > fullstdwrap is incompatible with my plugin _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#10
|
|||
|
|||
|
Hi Tapio.
The section menu is not a real menu, but just a select query from the content on the current page. One way to get optionSpit support, would be to convert it into a real menu object. To do that, you could use the snippet I posted on Typo3Wizard a while ago. http://www.typo3wizard.com/en/snippe...han-pages.html And then rewrite the Typoscript of "tt_content.menu.20.3", like this (Untested ![]() -- cut -- tt_content.menu.20.3 > tt_content.menu.20.3 < tt_content.menu.20.default tt_content.menu.20.3 { wrap = <div class="csc-menu csc-menu-3">|</div> special > special = userfunction special.userFunc = user_menuFunc->makeMenuArray special.userFunc.table = tt_content special.userFunc.select.andWhere = sectionIndex!=0 special.userFunc.select.pidInList.override.field = pages 1 = TMENU 1.NO.doNotLinkIt = 1 1.NO.stdWrap.field = header 1.NO.stdWrap.typolink.parameter.field = pid 1.NO.stdWrap.typolink.section.field = uid 1.NO.stdWrap.wrap = <p class="csc-section">|</p> 1.NO.stdWrap.htmlSpecialChars = 1 1.NO.stdWrap.if.isTrue.field = header } -- cut -- -- Peter Klein/Umloud Untd "Tapio Markula" <tapio.markula (AT) atwebteam (DOT) com> wrote in message news:mailman.1.1178963048.13611.typo3-english (AT) lists (DOT) netfielders.de... > Hi > > I have problems with section index > > default > > > # "Section index (pagecontent w/Index checked - liststyle)" > 3.wrap = <ul class="csc-menu csc-menu-3">|</ul> > 3.renderObj.noBlur = 1 > 3.renderObj.wrap = <li class="csc-section">|</li> > > I would like to reset that > This doesn't work: > > tt_content.menu.20.3 { > wrap =<div class="csc-menu csc-menu-3">|</div> > renderObj.wrap = | > 1.NO.wrapItemAndSub=| > 1.NO.linkWrap= <span class="csc-section">| | </span> |*| > <span class="csc-section">| | </span> |*|<span > class="csc-section lastItem">|</span> > 1.NO.ATagParams = class="sectionLink" > } > > 1.NO has no effect - apparently because of subsection of a page > > If I set > tt_content.menu.20.3 { > > wrap =<div class="csc-menu csc-menu-3">|</div> > renderObj.wrap = <span class="csc-section">| | </span> |*| > <span class="csc-section">| | </span> |*|<span > class="csc-section lastItem">|</span> > } > > option split for renderObj.wrap doesn't work > > I don't figure how I could in this case option split for links _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] Problem with option split and menus | Tapio Markula | typo3-english@lists.netfielders.de | 0 | 12.05.2007 09:05 |
| [TYPO3-templavoila] Section Container Index | lee perry | typo3-project-templavoila@lists.netfielders.de | 3 | 03.04.2007 19:09 |
| [TYPO3-templavoila] Section as direct child of section possible? | Uschi Renziehausen | typo3-project-templavoila@lists.netfielders.de | 1 | 28.02.2007 10:09 |
| [Typo3-UG France] Eclaircissement sur le split option... | Pierre | typo3-france@lists.netfielders.de | 0 | 05.02.2005 18:20 |
| [Typo3-UG France] Eclaircissement sur le split option... | Pierre | typo3-france@lists.netfielders.de | 0 | 05.02.2005 18:15 |