[TYPO3-english] Making access status visible in the Frontend

Walrick lists at globalhealingcircle.net
Wed Apr 22 12:41:20 CEST 2009


Well I surprised myself and got it working after a lot of trial and
error and looking in TSREF

What I've come up with is this:

temp.Maincontent < styles.content.get
temp.Maincontent.renderObj.stdWrap.wrap = <div class="content-unit">|</div>
temp.Maincontent.renderObj.stdWrap.stdWrap.preCObject = TEXT
temp.Maincontent.renderObj.stdWrap.stdWrap.preCObject.value = <div
class="membersonly"><p>MembersOnly</p></div>
temp.Maincontent.renderObj.stdWrap.stdWrap.preCObject.if {
				value = -2,1
				isInList.field = fe_group
				}
temp.Maincontent.renderObj.stdWrap.stdWrap.stdWrap.preCObject = TEXT
temp.Maincontent.renderObj.stdWrap.stdWrap.stdWrap.preCObject.value =
<div class="membersonly"><p> CT Only</p></div>
temp.Maincontent.renderObj.stdWrap.stdWrap.stdWrap.preCObject.if {
				value = 2
				equals.field = fe_group
				}

So there are 3 nested stdWraps. The first provides the standard wrap for
all. The second and third add some extra content depending on the access
status.

If there's an easier or more usual way to this, let me know.

Regards,

Walrick

-- 
webmaster Global Healing Circle
www.globalhealingcircle.net


More information about the TYPO3-english mailing list