Specifying default view

Author Message

Sander van den Akker

Sunday 02 April 2006 6:12:45 am

Does anyone know how to specify the default view within an extension, so you never get the 'view not found' error?

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Ɓukasz Serwatka

Sunday 02 April 2006 11:44:07 pm

AFAIK this is not possible. However you can change settings for error handling in site.ini.append.php for your stieaccess. Instead show the error, home page will be load.

[SiteSettings]
ErrorHandler=defaultpage
# set default page here
DefaultPage=/content/view/full/2/

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime1.1197 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 587.9063152.6250
Module start 'layout' 0.00470.0037 740.531339.4453
Module start 'content' 0.00841.1100 779.9766533.7031
Module end 'content' 1.11840.0012 1,313.67978.3281
Script end 1.1196  1,322.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2953160.0002
Check MTime0.00140.1279160.0001
Mysql Total
Database connection0.00040.037210.0004
Mysqli_queries1.068595.4340540.0198
Looping result0.00060.0496520.0000
Template Total1.078496.320.5392
Template load0.00220.194620.0011
Template processing1.076296.119320.5381
Template load and register function0.00010.011210.0001
states
state_id_array0.00120.105910.0012
state_identifier_array0.00070.058820.0003
Override
Cache load0.00170.156090.0002
Sytem overhead
Fetch class attribute can translate value0.00060.051420.0003
Fetch class attribute name0.00110.093940.0003
XML
Image XML parsing0.00230.209520.0012
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00220.1966250.0001
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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs