Friday 12 August 2005 2:54:08 pm
I just want to use Object creator from http://ez.no/community/contribs/hacks/object_creator
I followed the instructions and tried to excute the suggested code:
{section show=fetch( content, access,
hash( access, 'create',
contentobject, $node,
contentclass_id, 'comment' ) )}
<form method="post" action={"ObjectCreator/createobject"|ezurl}>
<input type="hidden" name="ClassIdentifier" value="comment" />
<input type="hidden" name="NodeID" value="{$node.node_id}" />
<input class="button new_comment" type="submit" name="NewButton" value="{'New Comment'|i18n( 'design/base' )}" />
</form>
{section-else}
<h3>{"You are not allowed to create comments."|i18n("design/base")}</h3> {/section}
I added this code to the override template of the article class.
I don't know if I have to change anything in it. but I always get the else option "you are not allowed to create comments." all help and explanations are strongly welcomed.
|