Forums / Developer / Create automatically an assignement

Create automatically an assignement

Author Message

Anthony M.

Tuesday 04 August 2009 5:40:06 am

Hi,

i want to create a document on my extranet site and i would like to know if it's possible to add automatically an assignment in a specify folder (with AddAssignmentButton) ?

thanks a lot for your help

Anthony

Heath

Tuesday 04 August 2009 7:40:41 am

Yes, using the locations features in the admin manually of course [0]
or using the workflow event system to automate this process
(their are several which offer similar functionality). [1-4]

By what criteria would you like to determine weather assignment should be added?

By default to all objects of a specific content class or some other criteria?

I think I would recommend the most recent related extension as the basis for your solution. [3]

Cheers,
Heath

[0] http://ez.no/doc/ez_publish/user_manual/4_0/daily_tasks/publishing_at_multiple_locations
[1] http://ez.no/developer/contribs/workflow/automated_user_placement_for_ez_publish_3_8
[2] http://ez.no/developer/contribs/workflow/automated_user_placment
[3] http://projects.ez.no/createmultiplelocationruleevent
[4] http://ez.no/developer/contribs/workflow/locations_workflow_event

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Anthony M.

Tuesday 04 August 2009 8:18:53 am

thanks for your help
I can't do that manually...

each time that i add a document, i want to create a assignment of this document in a folder (i have the id)
it depends also of the content class

i tried the extension [4] but i have some errors with the workflow, i think i don't understand how this extension work...

Anthony

James

Tuesday 04 August 2009 8:29:42 am

That's too bad.

You could publish your errors in the project's forum in an attempt to solve those errors,
http://projects.ez.no/createmultiplelocationruleevent/forum

In order to publish in the manner you describe you may require technical changes such as these.

For the experienced developer these are relatively simple pieces of custom php which provide the features you need.

To the average user it appears insurmountable ... but if you are dedicated you can achieve your goals.

Best of luck

Cheers,
James

Anthony M.

Wednesday 05 August 2009 1:38:20 am

I have the 3.9.4 version of ezpublish, but the extension works with 3.5 and 3.6...
this can be a problem ?

when i run the script runcronjobs.php (like this : php runcronjobs.php), i have this error :

Running cronjobs/workflow.php
Checking for workflow processes

Fatal error: Call to a member function on a non-object in /sites/MY_SITE/kernel/content/ezcontentoperationcollection.php on line 311

Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.

Do you know why i have this error ?

Anthony

Lazaro Ferreira

Wednesday 05 August 2009 4:17:09 am

Hi,

Have you tried this extension ?

http://projects.ez.no/createmultiplelocationruleevent/

Lazaro
http://www.mzbusiness.com

Anthony M.

Wednesday 05 August 2009 5:10:34 am

I can't use this extension because my ezpublish's version is 3.9.4, it's not compatible...
but the other extension is compatible width 3.5 and 3.6, so this extension can work correctly with my ezpublish's version ??

Anthony

James

Thursday 06 August 2009 12:45:53 am

Anthony,

Just about any developer could prolly backport the php in the extension etc in order to be compatible with 3.9. This is not a complicated extension. Yet it is a respectable challenge.

Cheers,
James

eZ debug

Timing: Jan 18 2025 05:20:03
Script start
Timing: Jan 18 2025 05:20:03
Module start 'content'
Timing: Jan 18 2025 05:20:04
Module end 'content'
Timing: Jan 18 2025 05:20:04
Script end

Main resources:

Total runtime0.9287 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 587.7344180.8281
Module start 'content' 0.00860.7943 768.5625678.8516
Module end 'content' 0.80290.1257 1,447.4141340.4297
Script end 0.9286  1,787.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.5322210.0002
Check MTime0.00210.2238210.0001
Mysql Total
Database connection0.00100.109610.0010
Mysqli_queries0.840090.45642130.0039
Looping result0.00200.21202110.0000
Template Total0.890595.920.4452
Template load0.00370.397920.0018
Template processing0.886895.488020.4434
Template load and register function0.00020.023810.0002
states
state_id_array0.00110.116310.0011
state_identifier_array0.00110.121920.0006
Override
Cache load0.00300.3202570.0001
Sytem overhead
Fetch class attribute can translate value0.00100.102750.0002
Fetch class attribute name0.00100.1033100.0001
XML
Image XML parsing0.00150.164750.0003
class_abstraction
Instantiating content class attribute0.00000.0019110.0000
General
dbfile0.00500.5374340.0001
String conversion0.00000.000430.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 39
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs