Tuesday 22 July 2008 3:47:30 am
> By the way, when I can check which action parameters are required? By reading the code(there is no documentation on this part of ezp), searching for ActionCollectInformation gives you:
else if ( $http->hasPostVariable( "ActionCollectInformation" ) )
{
return $module->run( "collectinformation", array() );
}
witch is inside:
else if ( $http->hasPostVariable( "ContentObjectID" ) )
{
In collectinfo.php you'll find:
if ( $Module->isCurrentAction( 'CollectInformation' ) )
{
$ObjectID = $Module->actionParameter( 'ContentObjectID' );
$NodeID = $Module->actionParameter( 'ContentNodeID' );
$ViewMode = 'full';
if ( $Module->hasActionParameter( 'ViewMode' ) )
$ViewMode = $Module->actionParameter( 'ViewMode' );
To see what post parameters that maps to these action parameters you'll have to look in module.php:
'single_post_actions' => array( 'ActionCollectInformation' => 'CollectInformation' ),
'post_action_parameters' => array( 'CollectInformation' => array( 'ContentObjectID' => 'ContentObjectID',
'ContentNodeID' => 'ContentNodeID',
'ViewMode' => 'ViewMode' ) ),
When it comes to the button, if you do not actually click on this:
<input type="submit" class="defaultbutton" name="ActionCollectInformation" value="{"Send form"|i18n("design/bysoft/templates/content/view/quick_contact_form")}" />
It will not be sent, so to fix: either click on the button or change it to type="hidden" If you still get the "Non-static method", please post all the details!
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom
|