Forums / Developer / Member add content from the front

Member add content from the front

Author Message

David Santiso

Saturday 18 December 2010 9:26:25 am

Hi,

I'm developing a website as my final race and I decided to use eZ Publish,but I just gotta know how to do things.

I want the members who enter the front of the page, click on a main menu option and displayed a form that allows them to add a particular content type.
I think the first thing you should do is create a class with the new type of content. No? How should I continue?
Anybody could help me?
Thank you very much,

David

Robin Muilwijk

Saturday 18 December 2010 11:30:41 am

Hi David,

Welcome to the community forums of eZ Publish. Do you have eZ Webin or eZ Flow installed along with eZ itself? For example, with eZ Webin you already have the frontend toolbar which allows for "editors" to add content.

If you require a certain type of content, then you indeed need to set that up first as a new content class. What you need to do then, is to go to "User accounts" in the backend and adjust the roles/policies of the group your members are in that are allowed to add/edit the new content.

If you need more details, please let us know.

Kind regards, Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

David Santiso

Sunday 19 December 2010 7:29:14 am

Thanks.

Yes, I have installed eZ Flow.

I have created a new type of content where the member must enter information in some fields. I added this form in the front-end, but does not appear the option in the main menu and the content. I've also adjusted the roles to allow the creation of such content.

I have other questions. For example, how do I put a button (submit) to send the information to the database, similar to the type of content feedback?

I think you have to edit a template, but not what it is.

Thanks again. Kind regards,

David

Robin Muilwijk

Sunday 19 December 2010 10:59:11 am

Hi David,

What do you get when you login with your admin account on the frontend? You should get the toolbar, with the small eZ logo, a drop down right next to it and some buttons. This is to add content, no need for a submit button, if I understand you correctly in what you are trying to accomplish.

-- Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

David Santiso

Sunday 19 December 2010 1:39:55 pm

Yes, I've already done this, but what I want to do is that a user (no-admin) can add and see this type of content. For example, like a registration form, but with other information.

Sorry, but I don't know how to explain myself better in English.

Romeo Antony

Monday 20 December 2010 12:38:28 am

Hi David,

If I understand you correctly you are trying to display a form that users can submit and submitted data needs to be in the database.

To achive this, you should be famiar with some basic things.

1. if you are a beginner in ezp, firt try to understand the ezp directory structure.

2. template laguage.

3. If you need a form , there is alread feedbackform from comes with ez package., (it is like a contact us form users can submit datas)

You may add a feedback form from the eztoolbar( as Robin pointed out to use websitetoolbar).

And see the working so that later on you can try developing your own custom form.

Also try to examine this tutoral would be a better idea.

http://share.ez.no/learn/ez-publish/how-to-create-ez-publish-forms

Regards

Romeo

Steven E. Bailey

Monday 20 December 2010 3:11:22 am

"

Yes, I've already done this, but what I want to do is that a user (no-admin) can add and see this type of content. For example, like a registration form, but with other information.

Sorry, but I don't know how to explain myself better in English.

"

I think what you want is to enable editing on the front end in the roles. What you are saying is admin gets the edit toolbar but other users do not?

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

David Santiso

Monday 20 December 2010 10:46:10 am

Yes, I want to put a form on the front and an option on the main menĂº. Users can add information to this form, to be displayed in other sections. Users can also edit and delete your information.

Already tried to use the form feefback, but I need to put more fields, for example pictures, maps, address, etc.

I also tried to create my own form by creating a class, but when I add in the front, does not appear. I think I have all the necessary permissions.

Despite this, I've seen that the feedback form has a button to submit the data added. I don't know put this button in my form. I guess I have to edit templates but do not know which.

Thanks,

David

David Santiso

Monday 20 December 2010 10:59:28 am

I think the tutorial can help me, but explains little.

Robin Muilwijk

Saturday 08 January 2011 12:13:26 am

Hi David,

Have you been able to find a solution to your problem yet?

-- Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

David Santiso

Saturday 08 January 2011 3:22:48 am

Yes, thanks.

eZ debug

Timing: Jan 18 2025 05:07:48
Script start
Timing: Jan 18 2025 05:07:48
Module start 'content'
Timing: Jan 18 2025 05:07:49
Module end 'content'
Timing: Jan 18 2025 05:07:49
Script end

Main resources:

Total runtime0.8626 sec
Peak memory usage4,096.0000 KB
Database Queries222

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.8516180.8359
Module start 'content' 0.00780.7262 769.6875721.1484
Module end 'content' 0.73400.1285 1,490.8359345.0547
Script end 0.8626  1,835.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5076210.0002
Check MTime0.00160.1872210.0001
Mysql Total
Database connection0.00100.119210.0010
Mysqli_queries0.769489.19892220.0035
Looping result0.00240.27752200.0000
Template Total0.829996.220.4149
Template load0.00190.223620.0010
Template processing0.827995.980720.4140
Template load and register function0.00040.046010.0004
states
state_id_array0.00080.089810.0008
state_identifier_array0.00140.162320.0007
Override
Cache load0.00180.2042690.0000
Sytem overhead
Fetch class attribute can translate value0.00110.130850.0002
Fetch class attribute name0.00320.3673140.0002
XML
Image XML parsing0.00220.251350.0004
class_abstraction
Instantiating content class attribute0.00000.0045160.0000
General
dbfile0.00360.4216420.0001
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs