Forums / Developer / Comment without pages intermediary

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Comment without pages intermediary

Author Message

Romain Bremaud

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

Ivo Lukac

Monday 25 October 2010 8:39:47 am

Did you try ezcomments extensions?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Heath

Monday 25 October 2010 9:09:33 am

You may also do this simply with the ezjscore extension and some custom javascript to submit comments via javascript instead.

Cheers,

Heath

7x | https://se7enx.com/
Brookins Consulting | https://brookinsconsulting.com/
Certified | http://web.archive.org/web/201012...th.ez.no/certification/verify/380350
Solutions | https://projects.exponential.earth/users/community/brookins-consulting
eZpedia community documentation project | http://ezpedia.se7enx.com