Posts tagged MOSS 07

Add “Add Attachment” – functionality to a MOSS2007 Blog (Posts)

I came across this blog post about how to add the “Add Attachment” functionallity to your blog on MOSS 07, 

http://www.konfabulieren.com/2007/08/23/howto-add-add-attachment-functionality-to-a-moss2007-blog-posts/

Simply edit the following file in eg. notepad. (Make sure to crete a backup of the original)

located @ C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\SiteTemplates\Blog\Lists\Posts\schema.xml

Remove below code in red:

 <Forms>
<Form Type="DisplayForm" Url="ViewPost.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" Url="EditPost.aspx" ToolbarTemplate="BlogEditFormToolBar" Template="BlogForm" WebPartZoneID="Main" />
<Form Type="NewForm" Url="NewPost.aspx" ToolbarTemplate="BlogNewFormToolBar" Template="BlogForm" WebPartZoneID="Main" />
</Forms>

So it looks like:

<Forms>
 <Form Type="DisplayForm" Url="ViewPost.aspx" WebPartZoneID="Main" />
 <Form Type="EditForm" Url="EditPost.aspx" WebPartZoneID="Main" />
 <Form Type="NewForm" Url="NewPost.aspx" WebPartZoneID="Main" />
</Forms>

 

If you want to display the attached files in your post please convert the Wep Part in your post.aspx that shows the “post” to an XSLT DVWP.
Fix the Author problem by removing the = character before =@Author and thenfollow the guide below:

Now you have to open the post.aspx of your SharePoint 2007 blog and add the code linked from :

http://blogs.msdn.com/dmp/archive/2009/01/21/how-to-show-attachments-with-dataformwebpart.aspx


   

How to show Attachments with DataFormWebPart

Found this great post that simply explains how to show a link to your attached files from a list in a DVWP. this solution workes like a charm.

http://blogs.msdn.com/dmp/archive/2009/01/21/how-to-show-attachments-with-dataformwebpart.aspx

Change SharePoint 2007 Data View Filter with Javascript

I found this blog about How to query cross-site lists in DataFormWebPart , and from that I found out how to simply change filter value on a column on a Data View Web Part with a javascript.

http://jamestsai.net/blog/default.aspx

Simply add a onlick event or whatever on your page page and make sure you have enable filter on column header enabled in SPD.

ex:
onclick=”__doPostBack(‘ctl00$PlaceHolderMain$g_0af48c6e_86ae_427e_ab2e_167525795962′,’NotUTF8;__filter={@Title=##dvt_all##}’);”
onclick=”__doPostBack(‘ctl00$PlaceHolderMain$g_0af48c6e_86ae_427e_ab2e_167525795962′,’NotUTF8;__filter={@Title=Value}’);”

g_0af48c6e_86ae_427e_ab2e_167525795962′ is the data view web part id.

 

Hope this works.