Change node posistion with the use of SQL update quires into the backend.

Author Message

Tore Skobba

Monday 26 April 2004 4:45:04 am

Hi all

I am currently implementing a solution where users are positioned automatically in a user group depending on what they set an EZSelection to.

Example: User selects “Class of” to 2004, he should then be assigned to the user group “Class of 2004” and get that user group access privileges.

This I have solved with an SQL script which update the EzContentObjectTree and EzNodeAssignment tables correctly in the Ez database. Afterwards, I am running the “updateniceurls.php” script. My question is simply if this is enough? Should this work or is the location of the nodes stored anywhere else to? Based on my own tests it seems to work, but I just want to be a bit surer before eventual releasing into the production server.

Cheers
Tore

Björn Dieding@xrow.de

Tuesday 27 April 2004 4:38:26 am

I would have done this with a workflow triggered after publish

You need the change values in 2 table
ezcontentobject_tree
eznodeassignment

I thing you need to delete or modify the usersession too, because the groups are stored int he session
table -> ezsession

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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 18 2025 22:12:10
Script start
Timing: Jan 18 2025 22:12:10
Module start 'layout'
Timing: Jan 18 2025 22:12:10
Module start 'content'
Timing: Jan 18 2025 22:12:10
Module end 'content'
Timing: Jan 18 2025 22:12:10
Script end

Main resources:

Total runtime0.0156 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.4063152.6875
Module start 'layout' 0.00570.0025 741.093839.5078
Module start 'content' 0.00820.0055 780.601689.3828
Module end 'content' 0.01360.0020 869.984430.3047
Script end 0.0156  900.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002113.4189140.0001
Check MTime0.00095.9506140.0001
Mysql Total
Database connection0.00117.120910.0011
Mysqli_queries0.002113.588030.0007
Looping result0.00000.109710.0000
Template Total0.001710.710.0017
Template load0.00085.248110.0008
Template processing0.00095.446210.0009
Override
Cache load0.00053.143710.0005
General
dbfile0.00063.821880.0001
String conversion0.00000.042740.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