Forums / Developer / how can create the blog-post by non admin users?

how can create the blog-post by non admin users?

Author Message

Thirunavukkrasu Arumugam

Monday 30 March 2009 10:03:40 pm

Hi..

I can able to create the blog-post using admin panel..

But I don't know how to post a blog by other non admin users?

Eventhough I have given roles and policies to users to create a blog-post, i don't know how to let them post their blog.

Please help me.

Thanking you

A. Thirunavukkarasu

Gabriel Finkelstein

Tuesday 31 March 2009 10:38:21 am

You should add a button somewhere in your frontend (probably somewhere in the blog), like this:

<form method="post" action={"/content/action"|ezurl}>
   <input type="hidden" name="ClassID" value="[blog post class id]" />
   <input type="hidden" name="ContentLanguageCode" value="[language code]" />
   <input type="hidden" name="NodeID" value="[blog node]" />
   <input type="submit" name="NewButton" class="button" value="Add new post" />
</form>

And then create a template override for the edit view of Blog Post class.

Thirunavukkrasu Arumugam

Tuesday 31 March 2009 10:57:52 pm

Hi Gabriel Finkelstein

According to your instruction I have done the blog in front end itself.

Thank you very much

A. Thirunavukkarasu

Ivan Epifanov

Thursday 23 April 2009 5:42:26 am

Hi
Thirunavukkrasu Arumugam, can you please provide some example?
I tried following solution from Gabriel, but all i got is "Object unavailable"