[TYPO3] Frontend plugin: Is this the best way
typo3-german-01 at oliverklee.de
Sat Apr 8 14:15:19 CEST 2006
Drew Leske schrieb:
> 1. What is the difference between a "frontend plugin" extension and a simple
> "frontend" extension? My extension takes configuration on the backend, but
> I don't know if it qualifies as a "web app" in this context: it provides
> dynamic content, but without any input from the site user.
Usually, if it mainly consists of a FE plugin which can be inserted as a
content element, file it as a "frontend plugin".
> I need to grab the contents of that field from the tt_content table, by
> searching for the record based on the content's uid. This is where it gets
> crazy. Looking back at the plugin base class, I should be using function
> pi_getRecord($table,$uid,$checkPage=0)--instead, I execute the query myself.
> But the question is, where do I get the $uid?
In a FE plugin that inherits from pibase, you can use this:
$contentUid = $this->cObj->data['uid'];
More information about the TYPO3-english