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"

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:38:32
Script start
Timing: Jan 31 2025 00:38:32
Module start 'layout'
Timing: Jan 31 2025 00:38:32
Module start 'content'
Timing: Jan 31 2025 00:38:32
Module end 'content'
Timing: Jan 31 2025 00:38:32
Script end

Main resources:

Total runtime0.0230 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.2656151.2266
Module start 'layout' 0.00450.0037 739.4922220.7188
Module start 'content' 0.00820.0133 960.21091,001.9609
Module end 'content' 0.02150.0015 1,962.171933.9922
Script end 0.0230  1,996.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.8956140.0002
Check MTime0.00114.6685140.0001
Mysql Total
Database connection0.00083.675210.0008
Mysqli_queries0.00188.008130.0006
Looping result0.00000.081810.0000
Template Total0.00104.410.0010
Template load0.00083.657610.0008
Template processing0.00020.725110.0002
Override
Cache load0.00062.555410.0006
General
dbfile0.00114.597180.0001
String conversion0.00000.039440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs