[Typo3-dev] Set page-dependent default information for a plugin

Wolfgang Klinger wolfgang at stufenlos.net
Thu May 13 20:23:06 CEST 2004


 *hiya!*

 On Thu, 13 May 2004, Christian Kier wrote the following:
> Now, when entering this plugin into a page in the backend, I would like 
> to have a text field in which I can enter an author name. This name 
> should be passed to the extension so that only documents from this 
> author are shown on this specific page. I know how to do the SQL-stuff, 
> but how do I get the information from the backend to my php-class?

 You'll have to extend tt_content and bind this field to your plugin.
 Then you'll have a definition for this field in ext_tables.sql and 
 ext_tables.php - something like: tx_myext_field
 (update the extension in the extension manager to apply changes)

 $this->cObj->data is an array and contains all values of tt_content for
 your plugin ($this->cObj->data['tx_myext_field']).
 

 bye
 Wolfgang

 --------------------------------------------------------
 Wolfgang Klinger           mailto:wolfgang at stufenlos.net
 
 Public Key: 
 http://www.stufenlos.net/wolfgang/stfl_wolfgang.gpg
 --------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-dev/attachments/20040513/309dc8ca/attachment.pgp>


More information about the TYPO3-dev mailing list