Thursday, May 7, 2009

Add Upload Attachement functionality for Comment List in SharePoint Blog Site

1) We have the option to add the Comment for the Post in the SharePoint Blog Site, but we dont have the option to Upload the Attachment for the Comment to the particular Post as shown below


2) If we want to add that Upload Attachment for the Comment, we need to edit the page http://SiteUrl/Lists/Posts/Post.aspx in the browser.

3) Then add the Content Editor WebPart below the Comments WebPart as shown below.


4) Now add the "table" tag as given below.


<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>

5) Finally, you added the Attachement for the Comments.



6) Looks Cool right :-)?

8 comments:

parth said...

Hi,
I want to add the functionality of adding the attachments using javascrript ,
may be you can help me out with this..!!?
Thanks
Parth

Phil said...

I'm french!
Thank's for your post!!

Nyssa Berryman said...

Another informative blog… Thank you for sharing it… Best of luck for further endeavor too.

arimaze said...

Hi,

Thx for this tips.

But I would like to know, how can i display the attachment into the comments list view

e-sign act said...

That's really good stuff. My buddies at work will definitely be awestruck ! Thanks for sharing.

Unknown said...

You made some good points there. I did a search on the matter and found the majority of people will consent with your blog.

Nersha
www.gofastek.com

raynnowui21 said...

I’d should verify with you here. Which isn't something I usually do! I enjoy studying a put up that may make individuals think. Additionally, thanks for permitting me to remark! betfair online casino

Tadelokko Kosakowa said...

Investing from the bitcoin market is extremely insecure and extremely profitable. Where there is a great deal of possibility there is a great deal of gain. Any brand new investor needs to take this into account as he can discard all of his or her assets. Bitcoin is quite profitable if you understand just how exactly to get it done. Thanks to the bitcoin market and trading, even a great deal of fresh millionaires have been developed.