A little question:
My target is to add to efg extension one tag per field that i define in my Form.
For example, i create my "book" form, with two fields: Title and Genre, and i store data in form data table.
In one page of my site i list alla entries and when i click to details link i go in a new page. In this new page i want to use tags like {{form::Title}} and {{form::Genre}} because i want to use this data outside of the info_fd....tpl. [in the info....tpl template i have this data in this->.. (DCA Array)].
I want to use this, for example to insert Title of the book in the <title></title> tags.
So, i try to do it, i add in config.php (typolight/system/modules/efg/config) the hook "replaceInsertTags"
thats point to one function implemented in typolight/system/modules/efg/ModuleFormdataListing.php.
Code:
$GLOBALS['TL_HOOKS']['replaceInsertTags'][] = array('ModuleFormdataListing', 'replaceInsertTagsTest');
My function, in this first version, return "false" everytime is called.
Code:
public function replaceInsertTagsTest($strTag)
{
return false;
}
But when i try to see the page i've got this error:
Recoverable error: Argument 1 passed to Module::__construct() must be an instance of Database_Result, none given, called in [MYPATH]/typolight/system/libraries/System.php on line 145 and defined in [MYPATH]typolight/system/modules/frontend/Module.php on line 71
Can you tell me where is my mystake?
Thanks boys.
Tiziano
Bookmarks