[TYPO3] getting content of database field

Martin S shieldfire at gmail.com
Sat Jun 30 07:14:34 CEST 2007


I need a "quick n dirty" method of getting the content of the database field
"instructions" from dam_downloads to the front end.
As far as I can see there is no mention of the instructions field in either
the documentation (what there is of it) or the templates. So I checked the
database fields and there is a an "instŕuctions" field there. You can enter
data in it in the BE and it will be stored in the table.
But getting it back out is another matter alltogether.

So I checked the actual script which has a section running
.
.
.

        $markerArray['###LANGUAGE###'] =
$this->cObj->stdWrap($row['language'],$lConf['std.']['language.']);
        $markerArray['###COPYRIGHT###'] =
$this->cObj->stdWrap($row['copyright'],$lConf['std.']['copyright.']);
// ms insertion
        $markerArray['###INSTRUCTIONS###'] =
$this->cObj->stdWrap($row['instructions'],$lConf['std.']['instructions.']);
// end ms insertion
        $markerArray['###FILE_NAME###'] =
$this->cObj->stdWrap($row['file_name'],$lConf['std.']['file_name.']);
.
.
.
but as I've never played with Typo3 scripts before, I'm not sure if the //ms
insertion section is all that's needed to get the getting the data out. (The
insertion doesn't produce the intended data when inserting the
###INSTRUCTIONS### marker in the template.

Are there *generally* anything more that needs to be done to get data out of
a database table?

Cheers,

Martin S

-- 
Regards,

Martin S


More information about the TYPO3-english mailing list