Howto: Add “Add Attachment” – functionality to a MOSS2007 Blog (Comments)

obwohl in den advanced settings der comments list die option “Attachments to list items are:” per default enabled sind, steht die funktionalität trotzdem nicht zur verfügung; es ist allerdings ganz einfach, dies trotzdem zu aktivieren:

man öffnet einen post und wechselt dann in den edit mode dieser seite:
Moss2007 Blog-comments Add-attachment1 Thumbnail in Howto: Add Add Attachment - functionality to a MOSS2007 Blog (Comments)

zwischen dem “comments” und dem “new comments” webpart fügt man ein “conent editor webpart” hinzu und editiert dann dessen settings:
Moss2007 Blog-comments Add-attachment2 Thumbnail in Howto: Add Add Attachment - functionality to a MOSS2007 Blog (Comments)

als title vergibt man z.b. “Add Attachments”, in den source editor fügt man nachfolgenden html code ein:
Moss2007 Blog-comments Add-attachment3 Thumbnail in Howto: Add Add Attachment - functionality to a MOSS2007 Blog (Comments)

<table class="ms-toolbar" cellpadding="2" cellspacing="0" border="0" id="ctl00_m_g_4e9517cc_cbfa_4ac0_b45a_4f1f64696c60_ctl00_ctl01_ctl00_toolBarTbl" width="100%" >
 <tr>
  <td class="ms-toolbar" nowrap="true">
   <table cellpadding='1' cellspacing='0'>
    <tr>
     <td class='ms-toolbar' nowrap>
      <a href="javascript:UploadAttachment()" onclick="javascript:UploadAttachment();" accesskey="I" title="Add a Attachment" class='ms-toolbar'>
       <img align='absmiddle' alt="Add a Attachment" src="/_layouts/images/attachtb.gif" style='border-width:0px;' width='16' height='16'>
      </a>
     </td>
     <td class='ms-toolbar' nowrap>
      <a id="ctl00_m_g_4e9517cc_cbfa_4ac0_b45a_4f1f64696c60_ctl00_ctl01_ctl00_toolBarTbl_RptControls_diidIOAttach" style="visibility:hidden;" href="javascript:UploadAttachment()">
      </a>
      <a href="javascript:UploadAttachment()" onclick="javascript:UploadAttachment();" accesskey="I" id="ctl00_m_g_4e9517cc_cbfa_4ac0_b45a_4f1f64696c60_ctl00_ctl01_ctl00_toolBarTbl_RptControls_diidIOAttach_LinkText" class='ms-toolbar'>Add a Attachment</a>
     </td>
    </tr>
   </table>
  </td>
  <td width="99%" class="ms-toolbar" nowrap><IMG SRC="/_layouts/images/blank.gif" width=1 height=18 alt="">
  </td>
 </tr>
</table>

das war es schon! ab sofort können zu den comments attachments hinzugefügt werden!
Moss2007 Blog-comments Add-attachment4 Thumbnail in Howto: Add Add Attachment - functionality to a MOSS2007 Blog (Comments)

Related posts:

  1. Split DNS? you could do better…

Related posts brought to you by Yet Another Related Posts Plugin.

Make a Comment

3 Responses to “Howto: Add “Add Attachment” – functionality to a MOSS2007 Blog (Comments)”

RSS Feed for konfabulieren Comments RSS Feed

[...] Aug, 2007  ecm, e_sharepoint bei den posts ist es ähnlich wie bei dem comments – obwohl in den advanced settings der posts list die option “Attachments to list items are:” per [...]

Howto: Add “Add Attachment” - functionality to a MOSS2007 Blog (Posts) « konfabulieren wrote on August 23, 2007 @ 11:18 (in other words: 3 hours, 41 minutes after the fact)

Howto: Add “Add Attachment” – functionality to a MOSS2007 Blog (Posts) « konfabulieren

Hi Guys

Thanks for the info about the “Add Attachment” – it helped solve a big problem. I now however have another problem – How do I view the attachment without having to go into “Edit Item”??
I need users to be able to post comments and add attachments to their comments and other users must be able to click on the attachment and it must then open the attached file.

Regards
Wim.

Wim Pretorius wrote on October 29, 2007 @ 15:49 (in other words: 2 months, 1 week after the fact)

Wim Pretorius

hi, no solution for that. you need to open the comment (no need to edit it) in order to gain access to the attachments

hipslu wrote on October 29, 2007 @ 16:07 (in other words: 2 months, 1 week after the fact)

hipslu

Where's The Comment Form?

Liked it here?
klick here to open a random post - or have a look at this: