[Typo3-dev] Extend existing Tables: only for 1 content type ?

Tim D'Hooge tim.d'hooge at cronos.be
Thu Oct 16 13:15:08 CEST 2003


Aha, it seems that I wasn't paying enough attention to the video and just
forgot to do that, that solved it.

tnx


"Ingmar Schlecht" <ingmars at web.de> wrote in message
news:mailman.1066302466.7284.typo3-dev at lists.netfielders.de...
> Tim D'Hooge wrote:
> > Hello,
> >
> > I have extended the existing table "tt_content" to add a field
"keywords" so
> > i could set them for new extension, just as shown in the video. This
however
> > resulted in the "keywords" field to show up in _every_ content element i
add
> > to a page and not only for my own plugin.
> >
> > The question now is: can i make it so that it only shows that field for
the
> > plugin i want to ?
>
> look at the file ext_tables.php
>
> I guess there is a line like that:
>
t3lib_extMgm::addToAllTCAtypes("tt_content","tx_someext_somefield;;;;1-1-1")
;
>
> just remove that line, and insert the following line after loasing the
> tt_content TCA with "t3lib_div::loadTCA("tt_content");":
>
>
$TCA["tt_content"]["types"]["list"]["subtypes_addlist"][$_EXTKEY."_pi1"]="tx
_someext_somefield;;;;1-1-1";
>
> It would've been like that anyway if you had set the option "Apply a set
> of extended fields" in the frontend plugin section of the Kickstarter.
>
> - Ingmar
>






More information about the TYPO3-dev mailing list