Class ID

Author Message

Jack Rackham

Saturday 08 May 2004 10:02:18 am

Is it possible to change the class ID after you have created a class?

Jan Borsodi

Tuesday 11 May 2004 12:30:17 am

No, not unless you manually alter the database tables (which is not recommended).

Is there a specific reason why you want to do this?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Jack Rackham

Tuesday 11 May 2004 9:31:08 am

I have removed the old class and when I add new ones my page won?t work.

Jan Borsodi

Wednesday 12 May 2004 4:49:11 am

It is probably that some of the template override definitions still refers to the old class ID.
You could try looking for your old class ID in override.ini for your siteaccess.

If you use the admin interface you can go the template list, find node/view/full.tpl, there your old class ID should be listed in the <i>Match conditions</i> column, edit that file.
- Make a copy of the text content (e.g. paste it into a text browser)
- Remove the file for that given ID
- Create a new file and select your new class.
- Edit the new file and paste the text content you copied earlier.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Alexandre Cunha

Wednesday 12 May 2004 5:19:56 am

Hi Jan,

This questions remembers me about a problem i have upgrading a site to a new ezpublish version.
The problem is the the class number conflict. Assuming you have intslled ezp with the orignal 10 internal classes. And you create one more, the new class number 11.

Then you upgrade to new ezp version witch comes with more internal classes. The new version have 20 classes.
This generates conflits.

Why not have reserved class numbers only for internal classes coming with default ezp instalation and another range to user created classes ?

example: 1...100 - internal classes
101 ...nnnn - user created classes ?

what you thing ? somene have any better sugestion ?

axel

http://AlexandreCunha.com

Jan Borsodi

Monday 07 June 2004 4:18:42 am

I don't think that reserving IDs is needed.
With the latest eZ publish versions you can use the identifier on a class to create overrides or otherwise relate to a class, that way it doesn't matter what the ID is.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 19 2025 03:33:15
Script start
Timing: Jan 19 2025 03:33:15
Module start 'layout'
Timing: Jan 19 2025 03:33:15
Module start 'content'
Timing: Jan 19 2025 03:33:15
Module end 'content'
Timing: Jan 19 2025 03:33:15
Script end

Main resources:

Total runtime0.0152 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.0058 589.0313152.6094
Module start 'layout' 0.00590.0029 741.640639.3984
Module start 'content' 0.00880.0044 781.039197.2891
Module end 'content' 0.01320.0020 878.328138.3047
Script end 0.0151  916.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002617.3507140.0002
Check MTime0.00117.3673140.0001
Mysql Total
Database connection0.00106.723810.0010
Mysqli_queries0.002616.976330.0009
Looping result0.00000.111710.0000
Template Total0.001610.610.0016
Template load0.00084.994910.0008
Template processing0.00085.562810.0008
Override
Cache load0.00053.391810.0005
General
dbfile0.00031.801380.0000
String conversion0.00000.058240.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