Saturday 07 August 2004 2:40:59 pm
Hi, I'm having the same problem, with EzPublish 3.4.1 and a standard News Site installation. All i get is "You are not allowed to create comments" message. Anonymous has create, edit and read permissions over comments. The template code is the following at the end of article.tpl:
{* Are we allowed to create new object under this node? *}
{section show=fetch( content, access,
hash( access, 'can_create',
contentobject, $node,
contentclass_id, 'comment' ) )}
<form method="post" action={"content/action"|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}
Im new to EzPublish, and still can't realize how to debug what "access" is returning. I tried disabling the access control. I see a "New comment" button but requests me to Login to post. Thanks.
|