[Typo3] different "list-CType" wraps?

Reinhard Müller office at mrc.co.at
Sat Sep 17 12:22:16 CEST 2005


Thank your very much for this hint!

I was spending a lot of time to solve this f... problem!

Health & Success!

Reinhard

-----Ursprüngliche Nachricht-----
Von: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] Im Auftrag von Peter
Klein
Gesendet: Samstag, 17. September 2005 11:41
An: typo3-english at lists.netfielders.de
Betreff: Re: [Typo3] different "list-CType" wraps?

Hi Reinhard. You can do something like this:

-- cut --
tt_content.list.stdWrap.outerWrap.cObject = CASE
tt_content.list.stdWrap.outerWrap.cObject {
  key.field = list_type
  default = TEXT
  default.value = [ | ]
  indexed_search = TEXT
  indexed_search = [[ | ]]
}
-- cut --

The normal "wrap" can't be used, as it has no stdWrap properties, but 
"outerWrap" does..
In the above code all "list" items will be wrapped in [ ], except 
"indexed_search" which gets wrapped in [[ ]].
You can easily change the wraps, and add more list types. (Use the object 
browser to find the key values)

Peter Klein/Umloud Untd

----- Original Message ----- 
From: "Mag. Reinhard Müller" <office at mrc.co.at>
Newsgroups: typo3.english
To: <typo3-english at lists.netfielders.de>
Sent: Thursday, September 15, 2005 4:59 PM
Subject: [Typo3] different "list-CType" wraps?

I have got different list-CTypes content objects, like "newloginbox_pi1",
"th_mailformplus_pi1" or ""sr_feuser_register_pi1".

How can I wrap the "list-CType content" depending on the "list_type"?

Reinhard






More information about the TYPO3-english mailing list