Forums / General / How to assign section to content?

How to assign section to content?

Author Message

Aleksander Lech

Friday 24 February 2006 2:40:58 am

Hi
I wonder if its possible: I prepared user roles with edit permission to some section. I need to assign content to section different than default. And it should be done automatically.

As far as I understand, use of sections is the only way to implement possibility of editing content by group members instead of owners only. I have a folder with articles - folder contents are created by members of different groups - so I need to create several setions in this folder, and assign edit permission to this sections. Content i created in section according to folders node, so I need to change section on create.

I hope somebody do understand this :)

Aleksander

Arran Price

Tuesday 28 February 2006 2:04:25 pm

Hi Aleksander,
I am having a little trouble understanding what you are asking but....
You can apply permissions on nodes or subtrees as well as sections, So you dont typically need to use sections (sometimes it may be the right way to go and others it may not).
You may find that setting up a role per subtree may accomplish what you are after.

Hope thats of some help.

Arran

Aleksander Lech

Wednesday 01 March 2006 1:48:47 am

Hi Arran,
my problem is that I have a folder where every editors can create content. Editors belong to different groups - so what's the way to give editors of one group permission to edit content created by their group member.

Subtree or node doesn't work because content is in one folder without any subfolders.

Sections doesn't work too because content is created in parent 's section by default. I can't assing edit permission to parent section, cuz other user will have perrmisions to edit too many content.

So I thought that I'll create sections inside folder, for every editor group, and then give them permissions to edit content in this sections. Unfortunately I can's see the way to assign given section to content automatically.

Unfortunately, there is not something like permission to edit any content which belongs to some group of users :(

Aleksander

eZ debug

Timing: Jan 18 2025 11:08:03
Script start
Timing: Jan 18 2025 11:08:03
Module start 'content'
Timing: Jan 18 2025 11:08:04
Module end 'content'
Timing: Jan 18 2025 11:08:04
Script end

Main resources:

Total runtime0.7961 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.8281180.8359
Module start 'content' 0.00720.6447 769.6641474.7109
Module end 'content' 0.65190.1442 1,244.3750333.4766
Script end 0.7961  1,577.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5446210.0002
Check MTime0.00150.1894210.0001
Mysql Total
Database connection0.00170.211010.0017
Mysqli_queries0.725591.12861940.0037
Looping result0.00230.29141920.0000
Template Total0.760995.620.3804
Template load0.00220.272520.0011
Template processing0.758795.292720.3793
Template load and register function0.00020.029010.0002
states
state_id_array0.00120.148110.0012
state_identifier_array0.00110.136920.0005
Override
Cache load0.00180.2297230.0001
Sytem overhead
Fetch class attribute can translate value0.00140.178030.0005
Fetch class attribute name0.00100.127730.0003
XML
Image XML parsing0.00060.080430.0002
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00350.4379210.0002
String conversion0.00000.000630.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs