I have a CQWB on my intranet home page which displays Blog Post entries. This CQWP has a ‘Add new Item’ link which when clicked, opens the NewPost.aspx form in a dialogue box. I achieved this by adding the following to my .xsl file associated with the CQWP:
<a href=”javascript:OpenPopUpPage(‘http://tst-workcenter.jmt.com/JMTBlog/Lists/Posts/NewPost.aspx’);”><img src=”/Style%20Library/Images/AddNewItem.PNG” alt=”nothing” border=”0″></img></a>
How can redirect the user (user has permission to submit to the list) to say, the Blog home page, or list they submitted the item to after the hit ‘Save as Draft’ or ‘Publish’?
?width=650
Thanks Paul, but I tried that and it will add the post but it will not redirect for some reason. I wonder if I would have to modify the NewPost.aspx directly? Any ideas? Should I remove the javascript:OpenPopUpPage ?
<a href=”javascript:OpenPopUpPage(‘http://tst-workcenter.jmt.com/JMTBlog/Lists/Posts/NewPost.aspx?Source=http://tst-workcenter.jmt.com/JMTBlog’);”><img src=”/Style%20Library/Images/AddNewItem.PNG” alt=”nothing” border=”0″></img></a>
