Project

General

Profile

Actions

Feature #41337

closed

TSref/MENUITEM ACTUSR, ACTUSRRO, CURUSR, CURUSRRO

Added by Philipp Müller about 12 years ago. Updated over 4 years ago.

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

0%

Estimated time:
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

Actions

Also available in: Atom PDF