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 #1

Updated by Mathias Schreiber almost 10 years ago

  • Target version changed from 6.1.0 to 7.2 (Frontend)
Actions #2

Updated by Benni Mack over 9 years ago

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

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #4

Updated by Benni Mack about 9 years ago

  • Target version changed from 7.5 to 8 LTS
Actions #5

Updated by Riccardo De Contardi almost 8 years ago

  • Target version changed from 8 LTS to 9.0
Actions #6

Updated by Susanne Moog almost 7 years ago

  • Target version deleted (9.0)
Actions #7

Updated by Benni Mack over 4 years ago

  • Status changed from New to Closed

As USR could be anything, this isn't really doable from the current point of view. I recommend to use a custom menu (see https://github.com/b13/menus) to build you own logic instead. Will close this now. If you feel otherwise, feel free to contact me, and I will reopen the issue, so we can provide more insights.

Actions

Also available in: Atom PDF