Forums / Setup & design / Anonymous user create node

Anonymous user create node

Author Message

Christian Johansen

Wednesday 05 April 2006 3:13:06 am

I have some information to collect, and the restrictions of the information collector led me to create a content class modeling an application. Anonymous users can create an application on the website, however I do not want anonymous users to be able to view/browse applications. What I did so far was this:

content  create Class( Application ) , Section( Applications ) , ParentClass( Folder )
content  edit 	  Class( Application ) , Section( Applications ) , Owner( Self )
content  read 	 Class( Application ) , Section( Applications ) , Owner( Self )

This kinda works, BUT, when the user "publishes" his application he is redirected to the parent folder in which he is not allowed to view, causing an error to occur. Is there any way to work around this? I would like the user to be redirected to his application, not its parent folder. Am I going about this the wrong way?

Kristof Coomans

Wednesday 05 April 2006 4:02:06 am

You can use the RedirectURIAfterPublish post variable:

http://ez.no/community/forum/setup_design/setting_where_user_ends_up_after_publising_content/
http://ez.no/community/forum/developer/redirect_after_publishing/
http://ez.no/community/forum/developer/node_number_at_first_publishing/

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Christian Johansen

Wednesday 05 April 2006 4:33:47 am

Thanks. Looks like I'll be using your extension as well :) Another question - is it possible to send an email to the user and administrator when an application (or any type of node) is created?

Kristof Coomans

Wednesday 05 April 2006 4:54:47 am

You probably can use notifications for this ( http://ez.no/doc/ez_publish/technical_manual/3_6/features/notifications ).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Christian Johansen

Wednesday 05 April 2006 5:36:02 am

hmm, since anonymous users may send an application I cannot use notifications to send them a receipt. I guess I just have to do some extending then?

Kristof Coomans

Wednesday 05 April 2006 6:56:23 am

Maybe you can make a new workflow event type, which gets an e-mail address from an attribute of the published object and sends out an e-mail to that address.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Nathan Sharp

Friday 29 September 2006 10:23:08 am

I don't remember the name off the top of my head, but there is an extension in the contributions section that already does that (sends an e-mail based off of an attribute of the object published). It was pretty easy to set up and worked great for me. Sorry I don't have more specific information here, but hopefully it'll save someone some effort.

Kristof Coomans

Saturday 30 September 2006 6:11:36 am

Hi Nathan

Was it this contribution: http://ez.no/community/contribs/workflow/sck_cen_create_subtree_notification_rule or something else?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

eZ debug

Timing: Jan 31 2025 00:29:03
Script start
Timing: Jan 31 2025 00:29:03
Module start 'content'
Timing: Jan 31 2025 00:29:03
Module end 'content'
Timing: Jan 31 2025 00:29:03
Script end

Main resources:

Total runtime0.2104 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.9297370.2969
Module start 'content' 0.00670.0120 958.22661,009.6406
Module end 'content' 0.01870.1916 1,967.86723,898.1875
Script end 0.2103  5,866.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00432.0641200.0002
Check MTime0.00120.5782200.0001
Mysql Total
Database connection0.00060.289010.0006
Mysqli_queries0.109151.84781410.0008
Looping result0.00140.64881390.0000
Template Total0.191190.810.1911
Template load0.00080.358310.0008
Template processing0.190390.472110.1903
Override
Cache load0.00050.246710.0005
Sytem overhead
Fetch class attribute can translate value0.00200.940210.0020
XML
Image XML parsing0.00020.099710.0002
General
dbfile0.00864.1034200.0004
String conversion0.00000.001930.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs