[Typo3-dev] Simple(?) question on BE module programing

Markus Lange markus.lange at bgm-gmbh.de
Thu Jul 22 09:04:21 CEST 2004


Hi Karsten,



Karsten Dambekalns said:
> What is the best method to specify a page id for use in both a FE
> plugin and a BE module?
> I am working on a BE module that plays hand in hand with a FE
> plugin. Both shall read data from the page selected as general storage
> folder - I thought this is the best way.
> How do I read the storage folder from the BE module? The FE plugin is
> on a certain page, and can fetch the storage folder. But the BE mod?
> And how do I access TSConfig stuff from the BE module? Or is this
> nonsense?

if your be module resides in web: the selected (Page)id is available
as $this->id

try this:

$tsconfig = t3lib_BEfunc::getPagesTSconfig($this->id,0,0);
t3lib_div::debug($conf);

you hopefully see the actual config of selected page
fx
_STORAGE_PID
take a closer look at t3lib_BEfunc


I am not certain if it really works

i use this code to get infos about actual page but it is used in userfunc
declared via tca to store dependent records (translations)

hth in some way

best regards

-- 
Markus Lange
business group munich GmbH
Tel.   + 49 89 / 660 7 999 - 36
Fax   + 49 89 / 660 7 999 - 10
Mobil + 49 173 / 57 06 453
www.bgm-gmbh.de
http://typo3.bgm-gmbh.de






More information about the TYPO3-dev mailing list