AnsweredAssumed Answered

Discussion - Edit/Delete post

Question asked by ndk on Aug 12, 2009
Latest reply on Sep 8, 2009 by ndk
I started a discussion on a document and i have a ftl to view the posts. What is the code so the user can edit and delete the post?

I already have the icons per post, but they do nothing when i click on it…

In my ftl i have this code:

<a href="#" onclick="document.forms['browse-posts']['browse-posts:act'].value='browse-posts:edit_postid_110';document.forms['browse-posts']['id'].value='2f41b07e-e95c-11dd-83d5-b7b06d81695e';document.forms['browse-posts'].submit();return false;" id="edit_postid_110" class="inlineAction"><img src="/alfresco/images/icons/edit_post.gif" alt="Edit Post" title="Edit Post" style="border-width: 0px; vertical-align: middle;"></a>
<a href="#" onclick="document.forms['browse-posts']['browse-posts:act'].value='browse-posts:delete_postid_113';document.forms['browse-posts']['id'].value='2f41b07e-e95c-11dd-83d5-b7b06d81695e';document.forms['browse-posts'].submit();return false;" id="delete_postid_113" class="inlineAction"><img src="/alfresco/images/icons/delete.gif" alt="Delete Post" title="Delete Post" style="border-width: 0px; vertical-align: middle;"></a>

It's not my code and i think we had to disable the edit and delete button. How can i activate it again?

Outcomes