Answered Is there an Event we can glom onto after a blog submission?

  • 21 มิถุนายน 2555 14:06
     
     

    After creating a blog post, is there a way to have a pop-up that acknowledges to the user that the form was submitted successfully?

    If there's an Event maybe we could link or redirect to the detail view of their post or something.

ตอบทั้งหมด

  • 21 มิถุนายน 2555 16:22
     
     

    There are a couple of issues here... you could possibly use javascript to tap into when the Publish button is posted but then you wouldn't know the ID of the newly created item (so creating the link to their post would be tough).

    One option I'd recommend is directing your bloggers to use Windows Live Writer.  It allows users to construct blog posts using a WYSIWYG editor.  By design it also lets you know if your post was published successfully and allows you to view your post after.

  • 21 มิถุนายน 2555 18:20
     
     

    There are a couple of issues here... you could possibly use javascript to tap into when the Publish button is posted but then you wouldn't know the ID of the newly created item (so creating the link to their post would be tough).

    One option I'd recommend is directing your bloggers to use Windows Live Writer.  It allows users to construct blog posts using a WYSIWYG editor.  By design it also lets you know if your post was published successfully and allows you to view your post after.

    That's a good idea.  And we went back and forth on using a client like Live Writer and even the "Launch a program to create a post" (which launches Word as the client) and finally decided that since it's not just a small group of bloggers but the entire company we're opening this to that it would be simpler to settle on a web-based solution/interface.

  • 21 มิถุนายน 2555 18:23
     
     
    Another idea I might try is to use InfoPath to create the submit form and have it submit to an intermediate list.  Advanced Workflow could then (I assume) grab the post and move it to the blog's Posts list.  This would only be buying us (I think) the pop-up that says "Form submitted successfully" but it's better than nothing.
  • 21 มิถุนายน 2555 18:53
     
     

    That might work but it is a lot of plumbing for a pop-up...  If the goal is to simply prove that their post got posted, what about giving them a custom link that uses ?Source= to redirect them to a view that shows the most recent posts?  Something like this:

    http://servername/Blog/Lists/Posts/NewPost.aspx?Source=/Blog/Lists/Posts

    Once they submit the post they will be redirected to /Blog/Lists/Posts (which will show the default view) which should show them their new post.  You could even update that to have a view that is just the current user's posts.

  • 22 มิถุนายน 2555 3:20
     
     

    I think you're on to something!  The current button is already doing:

    onclick="javascript:ShowPopupDialog('/blog/Lists/Posts/NewPost.aspx?Source=/blog/')"

    When I tried adding a path to the end (/blog/Lists/Posts) though it didn't redirect to the list.  Guess I need to read up on javascript but (sorry if this is a different subject) got any troubleshooting tips for ?Source=

  • 22 มิถุนายน 2555 14:38
     
     คำตอบ

    By default the new form pops up in a modal dialog.  Once you submit, the dialog closes so it doesn't respond to the Source= parameter.  You could change the link to point just to the NewPost.aspx and then use the Source= approach without the javascript popup.

    • ทำเครื่องหมายเป็นคำตอบโดย USP45 22 มิถุนายน 2555 15:12
    •  
  • 22 มิถุนายน 2555 15:12
     
     
    That's the answer.  Thanks for all your help!!
  • 24 มิถุนายน 2555 16:26
     
     คำตอบ

    As a follow-up, here's another possibility:
    * Kill the default "Save" button from the form in Designer
    * Replace with (from Designer) Insert > SharePoint > Form Action Button

    This little beauty allows multiple actions to happen in a row for example:  Commit to the database, then redirect to source or page (view) you specify.

    • ทำเครื่องหมายเป็นคำตอบโดย USP45 24 มิถุนายน 2555 16:26
    •