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!

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

Main resources:

Total runtime0.8854 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.0234152.6250
Module start 'layout' 0.00540.0032 741.648439.4453
Module start 'content' 0.00850.8753 781.0938603.0469
Module end 'content' 0.88380.0015 1,384.140616.4844
Script end 0.8853  1,400.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4329160.0002
Check MTime0.00160.1793160.0001
Mysql Total
Database connection0.00080.093710.0008
Mysqli_queries0.825993.2797620.0133
Looping result0.00070.0777600.0000
Template Total0.840394.920.4202
Template load0.00240.273020.0012
Template processing0.837994.636220.4189
Template load and register function0.00020.019110.0002
states
state_id_array0.00100.111510.0010
state_identifier_array0.00230.259620.0011
Override
Cache load0.00200.2218220.0001
Sytem overhead
Fetch class attribute can translate value0.00060.063030.0002
Fetch class attribute name0.00140.153470.0002
XML
Image XML parsing0.00150.168730.0005
class_abstraction
Instantiating content class attribute0.00000.001280.0000
General
dbfile0.00110.1265310.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs