[Typo3] HOWTO work with CONTENT object

Peter Niederlag niederlag at ikd01.de
Sat Apr 9 11:09:58 CEST 2005


Hi,

Yomo schrieb:
> Hi all,
> 
> I tried to display data/records from my own table with TypoScript, 
> without success.
> 
> I have tried the following:
> 
> page.20 = CONTENT
> page.20 {
>   table = user_mcfcompanies
>   select {
>     pidInList = this
>     selectFields = uid,pid,enterprise
>     orderBy = sorting
>   }
> }
> 
> user_mcfcompanies.enterprise.default {

It should work as well if you drop .enterprise.default from ^^ and 
assign a (TS-)cObject to it (for excample COA).

user_mcfcompanies = COA
user_mcfcompanies  {

>   1 = TEXT
>   1.field = enterprise
>   1.wrap = <b> | </b>
>   #1.space = 3 | 2
> }
> 
> As you can see, my table is called user_mcfcompanies.
> I want to select all(!) records in the column 'enterprise', which is the 
> title of the company/enterprise.
> I wrap it in bold tags to display it.
> However, I don't see a thing!
> 
> Can anyone please tell me what I'm doing wrong???

Easier suply .renderObj for CONTENT or have an (TS-)Object with same 
name as CONTENT.table.

Have fun,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
http://www.typo3partner.net * professional services network *



More information about the TYPO3-english mailing list