Forums / Setup & design / Class ID

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

eZ debug

Timing: Jan 19 2025 00:27:08
Script start
Timing: Jan 19 2025 00:27:08
Module start 'content'
Timing: Jan 19 2025 00:27:08
Module end 'content'
Timing: Jan 19 2025 00:27:09
Script end

Main resources:

Total runtime0.7664 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.5391180.8516
Module start 'content' 0.00590.6193 768.3906617.3906
Module end 'content' 0.62520.1412 1,385.7813337.0859
Script end 0.7663  1,722.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5141210.0002
Check MTime0.00150.1967210.0001
Mysql Total
Database connection0.00090.120610.0009
Mysqli_queries0.686989.62282050.0034
Looping result0.00230.29532030.0000
Template Total0.737696.220.3688
Template load0.00200.259720.0010
Template processing0.735695.979620.3678
Template load and register function0.00010.013610.0001
states
state_id_array0.00160.209410.0016
state_identifier_array0.00130.168220.0006
Override
Cache load0.00170.2192360.0000
Sytem overhead
Fetch class attribute can translate value0.00110.146140.0003
Fetch class attribute name0.00100.134680.0001
XML
Image XML parsing0.00140.178040.0003
class_abstraction
Instantiating content class attribute0.00000.0030110.0000
General
dbfile0.00240.3097340.0001
String conversion0.00000.000930.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs