Forums / General / Object creator, how to use it?

Object creator, how to use it?

Author Message

Aladdin Mouhaimeed

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.

Luc Chase

Friday 12 August 2005 3:39:39 pm

If you login as the same user, but in the admin interface do you get the same error when trying to add a comment to the same object?

The Web Application Service Provider

Aladdin Mouhaimeed

Monday 15 August 2005 12:41:36 am

Thank you,
It realy is a permission essue,