TYPO3 Logout link in menu


Logout link in menu and also concate other menu

[usergroup]
lib.logOut = COA_INT
lib.logOut {
 10 = COA
 10{
  20 = TEXT
  20.typolink.parameter = 29
  20.typolink.returnLast = url
  20.wrap = <form id="logoutform" action="|" method="post">
   
  25 = TEXT
  25.wrap = <span style="color:#FFFFFF;">Welcome 
  30 = COA
  30 {
   5 = TEXT
   5.data = TSFE:fe_user|user|username
   5.wrap = <a href="javascript:{}" onclick="
    document.getElementById('logoutform').submit(); return false;">
    |</a>
   10 = TEXT
   10.value = <input type="hidden" name="logintype" value="logout" />
   20 = TEXT
   20.value = <input type="hidden" name="redirect_url" value="" />
   30 = TEXT
   30.value = </span></form>
   }
  }

  20= HMENU
  20.special = list
  20.special.value = 38
  20.includeNotInMenu  = 1
  20.1 = TMENU
  20.1 {
   noBlur = 1
   expAll = 1
   IFSUB = 1  
   NO {
    ATagTitle.field = 1
   }
   ACT = 1
   ACT{
    ATagTitle.field = 1
    stdWrap.htmlSpecialChars = 1
    ATagParams = class="active"
   }
 }   
}
[usergroup]

If you have any query then feel free to contact me at Jainish Senjaliya

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s