[TYPO3-english] advanced typoscript wrapping needed

Walrick lists at globalhealingcircle.net
Thu Apr 30 17:39:03 CEST 2009


Hello Joey,

Thanks for your reaction. I will look into your suggestions regarding
COA_INT and outerWrap.cObject when I continue working at it in a few days.

Regarding the if-condition. The "if" isn't checking the frontend users
usergroup, but the data in the fe_group field of the tt_content record,
which depends on the setting of the access field of the content form. So
this actually is data from the content element itself.

For the frontend user I added the normal conditions.

So I think it should work correctly for all users.

Regards,

Walrick

JoH asenau wrote:
>> One difference with my previous solution regarding to the endresult is
>> that "To Top" links now fall outside the public/membersonly/ctonly
>> containers, whereas before they were inside. Not an important
>> difference but still. (Before the closing </div> was part of the
>> wrap, now it's postCObject).
> 
> Well - besides the problems that Bernd already posted before, this solution
> won't work due to caching problems.
> 
> You are working with "if" inside conditions, which might not be a problem as
> long as "if" is checking data coming from content elements. But in this case
> it is checking data that changes dynamically based on the frontend user
> currently logged in.
> 
> While conditions will put a different version of the page into the cache
> depending on the different options, "if" won't do that.
> So the first one who save wins and the version that this user created will
> be visible for all other users matching the same condition.
> 
> You should at least switch to COA_INT instead of COA and IMHO it would be
> much better to use outerWrap.cObject to create a full wrap instead of those
> preCObjects you are using.
> 
> Currently I am thinking about another solution using LOAD_REGISTER and
> conditions, but I am not sure if this will work, since the registers might
> be nont available when conditions are parsed.
> 
> HTH
> 
> Joey


-- 
webmaster Global Healing Circle
www.globalhealingcircle.net


More information about the TYPO3-english mailing list