Thursday 10 February 2011 8:52:40 am
I tried to create but I had some problems, it doesn't work at all. I created the content.ini.append.php:
[ActionSettings]
ExtensionDirectories[]=dappsocial Then I created the file content_actionhandler.php inside the extension actions folders:
<?php
function dappsocial_ContentActionHandler(&$module, &$http, &$objectID){
if($http->hasPostVariable("hello")) {
echo $http->postVariable("hello");
exit;
}
echo 'does it works?';
exit;
return true;
}
?> Finally I created a form in a template:
<form action="{"content/action"|ezurl}" method="post">
<input name="hello" type="submit" value="Olá mundo!" />
<input name="ContentObjectID" type="hidden" value="50" />
</form> And it doesn't work, the code is not called at any time... Am I doing something wrong or it is not support anymore?
eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924
Twitter: http://twitter.com/tcv_br
|