cancel
Showing results for 
Search instead for 
Did you mean: 

Discussion - Edit/Delete post

ndk
Champ in-the-making
Champ in-the-making
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?
2 REPLIES 2

ndk
Champ in-the-making
Champ in-the-making
I saw other code and it's the same. So i think i only need the code for "document.forms['browse-posts']['browse-posts:act']"…

How can I get the value of "document.forms['browse-posts']['browse-posts:act']"?

ndk
Champ in-the-making
Champ in-the-making
nobody that knows the code to edit/delete a post?