Problem getting a template to work

Author Message

sem hadland

Thursday 12 August 2004 2:41:43 pm

I am trying to get a custom template for the main page at http://intra.dalane-tidende.no/index.php . Below is what I have done to make it work. I't does not work so please help me if you can. I'll give you as much details as I can

<b>description at ez.no</b>

1. Bring up the administration interface. 
2. Click on the "Setup" tab. 
3. Click on "Templates" (in the menu on the left hand side).
4. A list of template files will appear.
5. Locate a file called "/node/view/full" and click on it. 
6. On the next page, simply click "Create New". 
7. Type in "full_view_welcome" into the template name field. 
8. Make sure the "Section" and "Class" dropdown boxes are set to "Any". 
9. Type in the identification number of the welcome-page node. 
10. Make sure that "Empty" is chosen in the "Base template on" section. Click create. 

<b>What I have done</b>
1. I found the Node ID, which is 2, here (See image)
http://www.encycmet.com/temp/ez1.gif

2. To create a new template I click setup (oppsett) -> Templates (Maler) and then the /node/view/full.tpl file. I set the name and keys as seen on the image and click the button
http://www.encycmet.com/temp/ez2.gif

3. The file framside.tpl is now in the http://www.encycmet.com/temp/ez3.gif and can be seen in the view for /node/view/full.tpl as seen on the image at
http://www.encycmet.com/temp/ez3.gif

OK, now I thought that every change I did to this file would be changed on the main page (Node 2). Whatever I do with the file, nothing happens, nothing at all.

Anyone that can tell me what the problem is?

Thank you very much

Sem Hadland
hadland@encycmet.com

Fabrizio Barachino

Friday 13 August 2004 3:28:21 am

Did you reset the cache?

When you change something in a template you must reset the cache and after refresh the page.

sem hadland

Friday 13 August 2004 6:14:13 am

Thank you for your suggestion. Yes I have cleared the cache. I click the "clear All caches" button before I check the site again.

Can you please check my procedure in my first post. Is this correct? Can there be a problem with the instalation?

Any help is appreciated. Thank you.

Sem Hadland

Roger Andersen

Friday 13 August 2004 10:25:54 am

Can I edit the templates from here instead of up/downloading with ftp ?

I tried inserting one of the examples at http://ez.no/ez_publish/documentation/reference/data_fetching/content/list
but I just got some errors..

Can anyone help ?

Thanks

Paul Borgermans

Friday 13 August 2004 1:14:22 pm

Hi Sem,

Your framside template should be the first (before the folder class override template).

After that clear *all* caches

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

sem hadland

Saturday 14 August 2004 5:47:48 am

Thank you for your swift reply Paul. I understand what you write, but not what you mean :-/

My "framside" template should be before the folder "class override" where? And how do I do this?

Do you mean I have to change the priority for the templates here: http://www.encycmet.com/temp/ez3.gif ? I tried that by changing the priority-numbers and clicking the update button, but nothing happened.

I might not even be near the answer?

Sorry to be such a pain. I am hoping to be an ez-expert soon and the software seems to be killer good, but right now I am stuck.

Hope you can help me out. Thank you very much.

Paul Borgermans

Saturday 14 August 2004 11:44:44 am

Yes, your override should be before the folder class entry. You should be able to do this by specifying priority 1 and then press the update button for the template overrides in the admin folder.

Alternatively, you may do that by hand by editing the file override.ini.append for your siteaccess and put the framsid entry first (or at least before the folder class.

After that, clear all caches. You will get it to work :-)

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

sem hadland

Monday 16 August 2004 11:40:22 am

Should I create the template in the "admin" folder? I thought I should create this in the "news" folder, as a URL to a piece of news is like http://intra.dalane-tidende.no/index.php/news/nyheter/vem_kan_segla

As you can see at http://www.encycmet.com/temp/ez3.gif , I did everything in the "News" folder. I first did choose "News" in the dropdown menu and clicked the "set" button. All wrong? I should do it in the "admin"?

<b>More info:</b> I tried to specifying priority 1 and then press the update button for the template overrides (in the news folder), but nothing happened. Is that a problem with my instalation? I then found the override.ini.append in the news folder (/ezpublish/settings/siteaccess/news) I did the changes as you told me, uploaded and cleared all caches, but nothing happened. You can see the file at http://www.encycmet.com/temp/override.ini.append

Sorry about the long post, but I try to give you all the details you might need to know.

Thank you very much for your help so far.

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

Main resources:

Total runtime1.3952 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.0156152.6250
Module start 'layout' 0.00770.0043 740.640639.4453
Module start 'content' 0.01201.3820 780.0859666.5469
Module end 'content' 1.39400.0012 1,446.632820.1563
Script end 1.3952  1,466.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.2856160.0002
Check MTime0.00180.1274160.0001
Mysql Total
Database connection0.00080.056810.0008
Mysqli_queries1.316694.3666760.0173
Looping result0.00070.0508740.0000
Template Total1.355197.120.6775
Template load0.00230.163620.0011
Template processing1.352896.956720.6764
Template load and register function0.00020.014810.0002
states
state_id_array0.00120.082610.0012
state_identifier_array0.00230.165820.0012
Override
Cache load0.00210.1488580.0000
Sytem overhead
Fetch class attribute can translate value0.00050.038340.0001
Fetch class attribute name0.00100.071890.0001
XML
Image XML parsing0.00080.057840.0002
class_abstraction
Instantiating content class attribute0.00000.0013100.0000
General
dbfile0.00090.0611170.0001
String conversion0.00000.000940.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs