MAXXMEDIA JO SCHNEIDER

Example 1

plugin.tx_mjsuser_pi1.specWrap {

  field = username

}

Example 2

plugin.tx_mjsuser_pi1.specWrap >

plugin.tx_mjsuser_pi1.specWrap {

  field = username

  typolink {

    parameter.field = email

  }

  ifEmpty = (not logged in)

  wrap = <div>Username: <b> | </b></div>

}

 

Example 3

plugin.tx_mjsuser_pi1.specWrap >

plugin.tx_mjsuser_pi1.specWrap {

  field = lastlogin

  strftime = %d.%m.%y, %T

  required = 1

  wrap = <div>Last Login: <b> | </b></div>

}

 

Example 4

plugin.tx_mjsuser_pi1.specWrap >

plugin.tx_mjsuser_pi1.specWrap {

  field = crdate

  strftime = %d.%m.%y, %T

  ifEmpty = (not logged in)

  wrap = <div>Member since: <b> | </b></div>

}

 

Example 5

Example for using FE User data within the TypoScript Template

temp.username < plugin.tx_mjsuser_pi1

temp.username.specWrap >

temp.username.specWrap {

  field = username

  typolink {

    parameter.field = email

  }

  ifEmpty = (not logged in)

  wrap = <div>Username: <b> | </b></div>

}

 

temp.lastlogin < plugin.tx_mjsuser_pi1

temp.lastlogin.specWrap >

temp.lastlogin.specWrap {

  field = lastlogin

  strftime = %d.%m.%y, %T

  required = 1

  wrap = <div>Last Login: <b> | </b></div>

}

 

page.10 = COA

page.10 {

  10 < temp.username

  20 < temp.lastlogin

}

TYPO3 Extension: FE_User

With the TYPO3 Extension "FE_User" you can access any data of the actual logged in FE User ($GLOBALS[TSFE]-fe_user-user). Display data everywhere you want formatted by stdWrap. Please see ready to go examples on this site.

 

Using the term "specWrap" indicates, that the output of the extension is rendered using stdWrap(), but because of the nature of the object ($GLOBALS[TSFE]->fe_user->user) not all stdWrap options might work the way, they are supposed to.



Download

Please download this Extension at typo.org:

http://typo3.org/ext…mjsuser