[TYPO3-project-formidable] Formidable edit in list using a modalbox in the Backend - Does not work!
Jerome Schneider
typo3dev at ameos.com
Wed Feb 25 14:30:47 CET 2009
Hi Hauke,
could you tell me how you execute your module in the typo3 bakend ? is
it a standard PHP module as the kickstarter produces ?
I noticed that my BE modules all extend the t3lib_SCbase class.
Regards,
Jerome
Hauke Hain a écrit :
> No, I haven't. Maybe it's to obvisious that I do not see it (but I have
> to admit, that I woked with the tinymce renderlet and captcha in a
> frontend module in the last days instead of the backend module).
>
> My sourcecode looks like this and no JavaScript works:
>
> class tx_preview_reviews {
> function main() {
> $this->init();
>
> $content .= '<div><a href="index.php?tx_preview_previews[user]=1"
> '.($this->instVars['user']<>2 ?
> 'style="font-weight:bold;"':'').'>'.$GLOBALS['LANG']->getLL('user.notPublished').'</a> | ';
>
> $content .= '<a href="index.php?tx_preview_previews[user]=2"
> '.($this->instVars['user']==2 ?
> 'style="font-weight:bold;"':'').'>'.$GLOBALS['LANG']->getLL('user.all').'</a>';
>
> $content .= '</div><hr>';
> $content .= '<input type="hidden" name="tx_preview_previews[user]"
> value="'.$this->instVars['user'].'" />';
>
> if ($this->instVars['user']==2) {
> $this->oForm->init(
> $this, // reference to the current plugin object
> "EXT:preview/res/xml/EditAll.xml" // soft-path to xml file
> );
> }
> else {
> $this->oForm->init(
> $this, // reference to the current plugin object
> "EXT:preview/res/xml/pi1.xml" // soft-path to xml file
> );
> }
>
> $content.=$this->oForm->render();
> tx_ameosformidable::backendHeaders(&$this);
> return $content;
> }
>
> /**
> * Initializes the installation module.
> *
> * @return void
> */
> function init() {
> $this->instVars = t3lib_div::_GP('tx_preview_reviews');
> $this->conf = $this->p->config['plugin.']['tx_preview.'];
>
> $GLOBALS['LANG']->includeLLFile('EXT:preview/mod1/locallang_reviews.xml');
> $this->oForm = t3lib_div::makeInstance("tx_ameosformidable");
> }
> }
>
> Do you why this happens? I added
> tx_ameosformidable::backendHeaders($this);
> but it does not help...
>
> Hauke
>
> "Jerome Schneider" <typo3dev at ameos.com> schrieb im Newsbeitrag
> news:mailman.1.1235552435.5056.typo3-project-formidable at lists.netfielders.de...
>
>> Have you finaly managed to have the modalbox working in the backend ?
>
More information about the TYPO3-project-formidable
mailing list