Forums / Setup & design / upgrading template_look

upgrading template_look

Author Message

Greg McAvoy-Jensen

Friday 04 January 2008 5:19:05 pm

I'm using some features of 4.0 on a 3.9.4 site and want to upgrade the template_look class and its object. On the development machine I tried replacing the old template_look class with the new one. How do I now create an instance (object) of that class and have it appear properly in the design area? Thank you!

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

André R.

Sunday 06 January 2008 2:51:10 pm

It would be a lot easier to 'upgrade' the current class you have, basically by adding / changing the needed attributes.

But if you enter '/setup' after your base admin url, you'll get access to create / copy / remove and so on.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Greg McAvoy-Jensen

Wednesday 09 January 2008 2:08:26 am

Thank you! That's what I did for the staging server, but your reply helped me get the development server back on track. In case it's helpful to anyone in the future, the process was:

1. In the admin interface setup tab, view the template_look class (under the class group "setup").
2. Be sure the "Class groups" button on top is depressed.
3. At the bottom of the page, add template_look to the Content class group so it will show up in the "Create here" drop down box in the next step.
4. Point the browser to the admin site with /design at the end.
5. "Create here" a template_look.
6. Remove "template_look" from the content class group (see 1-3 above).

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Valentin Svelland

Saturday 12 January 2008 3:20:38 am

Some info on modding the template look object here:
http://ez.no/developer/forum/setup_design/valentin_s_multisite_guide_v_1_example_uses_ezp_v_3_9_4

------------------------
I made eZ run on www.eigersund.kommune.no, bjerkreim.kommune.no, lund.kommune.no and sokndal.kommune.no. Municipalities should use open source!

eZ debug

Timing: Jan 18 2025 10:31:38
Script start
Timing: Jan 18 2025 10:31:39
Module start 'content'
Timing: Jan 18 2025 10:31:40
Module end 'content'
Timing: Jan 18 2025 10:31:40
Script end

Main resources:

Total runtime1.1694 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.7031180.8438
Module start 'content' 0.00621.0190 768.5469608.1250
Module end 'content' 1.02520.1441 1,376.6719337.6953
Script end 1.1693  1,714.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3519210.0002
Check MTime0.00150.1290210.0001
Mysql Total
Database connection0.00060.053810.0006
Mysqli_queries1.083892.68231990.0054
Looping result0.00250.21011970.0000
Template Total1.133696.920.5668
Template load0.00250.213120.0012
Template processing1.131196.725720.5655
Template load and register function0.00010.008310.0001
states
state_id_array0.00170.147910.0017
state_identifier_array0.00130.114220.0007
Override
Cache load0.00210.1799220.0001
Sytem overhead
Fetch class attribute can translate value0.00190.160140.0005
Fetch class attribute name0.00460.395670.0007
XML
Image XML parsing0.00270.227440.0007
class_abstraction
Instantiating content class attribute0.00010.006080.0000
General
dbfile0.00250.2111420.0001
String conversion0.00000.000530.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs