Feature #41337

TSref/MENUITEM ACTUSR, ACTUSRRO, CURUSR, CURUSRRO

Added by Philipp Müller about 7 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2012-09-25
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Hello

It would be very usefull, if we have the possibility to use the TSref/MENUITEM ACTUSR, ACTUSRRO, CURUSR and CURUSRRO.

For example:

lib.field_nav = HMENU
lib.field_nav {
  entryLevel = 0

  1 = TMENU
  1 {
    noBlur = 1

    // Normal
    NO = 1
    NO {
      ATagParams.field = title
      ATagParams.wrap = title="|" 

      ATagBeforeWrap = 1
      linkWrap = <span>|</span>

      wrapItemAndSub = <li class="first no"> | </li> |*| <li class="no"> | </li> |*| <li class="last no"> | </li>
    }

    // Access restricted
    USR < .NO
    USR.wrapItemAndSub = <li class="first usr"> | </li> |*| <li class="usr"> | </li> |*| <li class="last usr"> | </li>

    // If has subpages
    IFSUB < .NO
    IFSUB.wrapItemAndSub = <li class="first sub"> | </li> |*| <li class="sub"> | </li> |*| <li class="last sub"> | </li>

    // Active
    ACT < .NO
    ACT.ATagParams.wrap = class="act" title="|" 
    
    // Active and access restricted
    ACTUSR < .ACT
    ACTUSR.wrapItemAndSub = <li class="first usr"> | </li> |*| <li class="usr"> | </li> |*| <li class="last usr"> | </li>
    // Active and if has subpages
    ACTIFSUB < .ACT
    ACTIFSUB.wrapItemAndSub = <li class="first sub"> | </li> |*| <li class="sub"> | </li> |*| <li class="last sub"> | </li>

    // Space
    SPC = 1
    SPC.doNotShowLink = 1
    SPC.doNotLinkIt = 1
    SPC.allWrap = <li class="space"><!-- nav-space| --></li>

    wrap = <ul class="level0"> | </ul>
  }

  2 < .1
  2.wrap = <ul class="level1"> | </ul>

  3 < .2
  3.wrap = <ul class="level2"> | </ul>

  4 < .3
  4.wrap = <ul class="level3"> | </ul>
}

Regards Philipp

History

#1 Updated by Mathias Schreiber almost 5 years ago

  • Target version changed from 6.1.0 to 7.2 (Frontend)

#2 Updated by Benni Mack over 4 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)

#3 Updated by Susanne Moog over 4 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#4 Updated by Benni Mack about 4 years ago

  • Target version changed from 7.5 to 8 LTS

#5 Updated by Riccardo De Contardi over 2 years ago

  • Target version changed from 8 LTS to 9.0

#6 Updated by Susanne Moog almost 2 years ago

  • Target version deleted (9.0)

Also available in: Atom PDF