Posted By

stwsimon on 07/01/11


Tagged

typoscript typo3 feuser


Versions (?)

typoscript get user info


 / Published in: TYPO3
 

URL: http://www.seethroughweb.com

Gets feuser data of logged in user and inserts into some page area

  1. lib.userinfo = COA_INT
  2. lib.userinfo {
  3. 10 = TEXT
  4. 10.data = TSFE:fe_user|user|username
  5. 10.wrap = Username:&nbsp;|<br />
  6. 10.required = 1
  7.  
  8. 20 = COA
  9. 20.1 = TEXT
  10. 20.1.data = TSFE:fe_user|user|first_name
  11. 20.1.required = 1
  12. 20.2 = TEXT
  13. 20.2.data = TSFE:fe_user|user|last_name
  14. 20.2.wrap = &nbsp;|
  15. 20.2.required = 1
  16. 20.stdWrap.ifEmpty.data = TSFE:fe_user|user|name
  17. 20.stdWrap.wrap = Name:&nbsp;|<br />
  18. 20.stdWrap.required = 1
  19.  
  20. 30 <.10
  21. 30.data = TSFE:fe_user|user|address
  22. 30.wrap = Address:&nbsp;|<br />
  23.  
  24. 40 <.10
  25. 40.data = TSFE:fe_user|user|city
  26. 40.wrap = City:&nbsp;|<br />
  27.  
  28. 50 <.10
  29. 50.data = TSFE:fe_user|user|zip
  30. 50.wrap = Zip:&nbsp;|<br />
  31.  
  32. 60 <.10
  33. 60.data = TSFE:fe_user|user|country
  34. 60.wrap = Country:&nbsp;|<br />
  35.  
  36. 70 <.10
  37. 70.data = TSFE:fe_user|user|company
  38. 70.wrap = Company:&nbsp;|<br />
  39.  
  40. 80 <.10
  41. 80.data = TSFE:fe_user|user|telephone
  42. 80.wrap = Telephone:&nbsp;|<br />
  43.  
  44. 90 <.10
  45. 90.data = TSFE:fe_user|user|fax
  46. 90.wrap = Fax:&nbsp;|<br />
  47.  
  48. 100 <.10
  49. 100.data = TSFE:fe_user|user|email
  50. 100.typolink.parameter.data = TSFE:fe_user|user|email
  51. 100.wrap = Email:&nbsp;|<br />
  52.  
  53. 110 <.10
  54. 110.data = TSFE:fe_user|user|www
  55. 110.typolink.parameter.data = TSFE:fe_user|user|www
  56. 110.typolink.extTarget = _blank
  57. 110.wrap = WWW:&nbsp;|<br />
  58.  
  59. 200 < .10
  60. 200.data = TSFE:fe_user|user|usergroup
  61. 200.split {
  62. token = ,
  63. cObjNum = 1 || 2
  64. 1 {
  65. 10 = CONTENT
  66. 10.table = fe_groups
  67. # ID 13 is the folder where I have my FE users and FE groups stored.
  68. # Remember to change it to the ID of the folder where YOU are storing your FE data!!
  69. 10.select.pidInList = 13
  70. 10.select.andWhere.current = 1
  71. 10.select.andWhere.wrap = uid=|
  72. 10.renderObj = TEXT
  73. 10.renderObj.field = title
  74. 10.renderObj.wrap = |,
  75. }
  76. 2 < .1
  77. 2.10.renderObj.wrap >
  78. }
  79. 200.wrap = Member of group(s):&nbsp;|<br />
  80.  
  81. 300 < .10
  82. 300.data = TSFE:fe_user|user|image
  83. 300.split {
  84. token = ,
  85. cObjNum = 1
  86. 1 {
  87. 10 = IMAGE
  88. 10.file.import.current = 1
  89. 10.file.import = uploads/tx_srfeuserregister/
  90. 10.file.width = 100
  91. }
  92. }
  93. 300.wrap = Image(s):&nbsp;|<br />
  94.  
  95. }
  96. page.100 < lib.userinfo

Report this snippet  

You need to login to post a comment.