[TYPO3] Section index and option split

Christopher Torgalson bedlamhotel at gmail.com
Sat May 12 18:02:24 CEST 2007


Hi,

On 5/12/07, Tapio Markula <tapio.markula at atwebteam.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">|&nbsp;&#124;&nbsp;</span> |*|
> <span class="csc-section">|&nbsp;&#124;&nbsp;</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">|&nbsp;&#124;&nbsp;</span>
> |*| <span class="csc-section">|&nbsp;&#124;&nbsp;</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:parentRecordNumber 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">&nbsp;&#124;&nbsp;|</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/


More information about the TYPO3-english mailing list