Forums / Setup & design / I don't want a custom template!!

I don't want a custom template!!

Author Message

RW Wood

Tuesday 16 September 2003 11:02:12 am

Sorry to post this again, but the only way to get rid of this error message is to put the template that ezP wants to create in the template folder for that design. That implies that the program is demanding a custom template for every site design, but I *WANT* the template that I've set as standard for the overall site.

"Default object view. Click to create a custom template"
followed by the content folder's name, description and buttons saying "preview", "remove", "add to bookmarks", and "notify me about updates"

I've tried to figure if something is not right in the site.ini.append but have gotten nowhere.

Bjørn Kaarstein

Wednesday 17 September 2003 2:07:19 am

A dirty solution would be to take a backup of the standard folder, and simply exchange the templates in the original standard folder...

Regards Bjørn

RW Wood

Wednesday 17 September 2003 6:54:28 am

Are you saying that there's a flaw in the fallback system? The whole point of the overrides, I thought, was to only change what was specific to one of many site designs.

If this is the best "solution", why not throw out the fallback system altogether?

I don't get it.
RWW

Karsten Jennissen

Wednesday 17 September 2003 7:03:58 am

Hi,

you do not need to use the dirty solution. I read your other thread and it seems that the system does not recognize your design settings the right way. Are you sure you are using the right ini files? In which file did you specify the design settings? Look through all site.inis including the one in /settings/override and check where you find any design settings. Check here to see which config file does what and which file overrides which:

http://ez.no/developer/ez_publish_3/documentation/installation_and_configuration/configuration/configuration_files

Regards,
Karsten

RW Wood

Wednesday 17 September 2003 7:44:26 am

Here's what the doc says:

The configuration files are read in this order:

/settings/site.ini
/settings/siteaccess/[directory]/site.ini.append
/settings/override/site.ini.append.php
This means that settings in [3] override [2] which override [1]. If you want to change configuration settings for different siteaccess setups then create new directories under /settings/siteaccess and change them there *(also remember to put those new siteaccess rules in /settings/override/site.ini.append.php).*

I'm not sure to what the *()* part is referring, however, here's what I have:

/settings/site.ini (not changed from default, but I removed comments)
[DesignSettings]
StandardDesign=standard
SiteDesign=admin
AdditionalSiteDesignList[]=

/settings/siteaccess/ggila/site.ini.append (my "standard" design)
[DesignSettings]
StandardDesign=ggila
SiteDesign=ggila

/settings/siteaccess/argentina/site.ini.append (a typical "sub-design)
[DesignSettings]
StandardDesign=ggila
SiteDesign=argentina

/settings/override/site.ini.append
[DesignSettings]
StandardDesign=ggila

As near as I can tell, unless I'm missing something that has to be changed other than the [DesignSettings] section of the files, that should produce the desired result, ie. fallback to use of templates within the ggila design folder if there's not one in the argentina folder. Since the ggila folder is a straight copy of the original standard folder, everything is there and there are no missing templates. As a matter of fact, if I click on the "create a custom template" link, the template that's used as the default is the one from the ggila design.

Thanks for your help, but I must be missing something really obvious.
RWW

RW Wood

Wednesday 17 September 2003 5:39:29 pm

I finally figured out what, I guess wasn't obvious to anyone else either. "Default object view. Click to create a custom template" and all that follows is coded into the standard design full.tpl and that template has to be replaced to get rid of the "error". I was interpreting the problem as ezP telling me I needed "another" template, not to replace the existing.

To be honest, I'm not sure why the developers did that for only the full.tpl when it's common knowledge that "stuff" has to be changed if one wants a different appearance. To me, it was really confusing because I understood the override system and checked everythig repeatedly looking for why a template other than the one in my "standard" design was being used, only to find out that it was and was the source of the problem.

I would suggest that perhaps future releases either do away with the forced creation of the "custom" full.tpl, or at least put a clarifying message on that page such as:

"Default object view. Click to create a custom template. This output is produced by the full.tpl in your /standard/templates folder. It must be replaced and a copy put in /standard/templates/node/view folders. You must either use this interface to produce those templates or develop them outside of ezPublish and place them in the indicated folders."

Just a suggestion. Now on to the multilingual and specific content appearing only with specific site design problems.

Thanks.
RWW

eZ debug

Timing: Jan 18 2025 22:30:54
Script start
Timing: Jan 18 2025 22:30:54
Module start 'content'
Timing: Jan 18 2025 22:30:55
Module end 'content'
Timing: Jan 18 2025 22:30:55
Script end

Main resources:

Total runtime1.1205 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.0048 587.7266180.8359
Module start 'content' 0.00480.9465 768.5625562.8359
Module end 'content' 0.95130.1690 1,331.3984341.8125
Script end 1.1204  1,673.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3693210.0002
Check MTime0.00170.1536210.0001
Mysql Total
Database connection0.00060.056110.0006
Mysqli_queries1.043893.16172050.0051
Looping result0.00220.19342030.0000
Template Total1.095497.820.5477
Template load0.00210.184820.0010
Template processing1.093497.581420.5467
Template load and register function0.00020.014510.0002
states
state_id_array0.00030.026810.0003
state_identifier_array0.00080.071820.0004
Override
Cache load0.00170.1558570.0000
Sytem overhead
Fetch class attribute can translate value0.00180.163640.0005
Fetch class attribute name0.00110.099560.0002
XML
Image XML parsing0.00060.050840.0001
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00220.1928210.0001
String conversion0.00000.000330.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
11content/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: 36
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs