Monday 25 October 2010 8:10:44 am
Hello everybody. I have a little problem. On my web site I have a section current events. I would like to authorize people to post comments. I found a solution but I'm not satisfied. I use the following code on my current_event.tpl:
{if fetch( 'content', 'access', hash( 'access', 'create',
'contentobject', $node,
'contentclass_id', 'comment' ) )}
<form method="post" action={"content/action"|ezurl}>
<input type="hidden" value="comment" />
<input type="hidden" value="{$node.object.main_node.node_id}" />
<input type="hidden" value="{ezini( 'RegionalSettings', 'ContentObjectLocale', 'site.ini')}" />
<input class="button new_comment" name="NewButton" value="{'New comment'|i18n( 'design/ezwebin/full/article' )}" />
</form>
{/if} I would like to post my new comment directly on the current events page without pass by a intermediate page. Somebody have an idea? Thanks
Romain Bremaud
Les clefs du net
|