Possible Duplicate:
Get tt_content uid
When a plugin (my extension) is inserted in a page, is there a way to know the content’s UID inside an action from controller?
Something like.
class Tx_myextension_Controller_GalleryController extends Tx_Extbase_MVC_Controller_ActionController {
public function showImageAction() {
$this->initializeAction();
$UID=some_method_to_get_the_tt_content_uid;
$this->view->assign("var1", "Content UID: $UID");
}
}
I don’t have any clue where to continue searching as I ran out of ideas 🙁
Use this trick to find all
tt_content'sproperties:That’s an array so your solutions is:
This question was asked some time ago…