Default page

Author Message

Mark Gerrits

Saturday 07 February 2004 12:48:56 am

Hi all,

Finally I was able to almost complete a new site for my company using ezP. One of my small problems is the following: I have a node (folder) in our product catalog where all the options (Option class) reside. Users need to have read access to this folder or else they cannot see the options on the side. However I don't want users to view /node/view/full (of this folder) because it looks ugly (no override template). In this case I want them to get redirected to the homepage (/node/view/full/2).

How do I make this possible ?

Thanks,
Mark

P.S. Somebody already working on a Dutch translation of eZP ? Maybe we can join our efforts..

Marco Zinn

Saturday 07 February 2004 2:43:50 am

Why don't you just just create an override template for this node?
You could use a Javascript redirection to your homepage or just print an empty page or so.

Marco
http://www.hyperroad-design.com

Mark Gerrits

Saturday 07 February 2004 8:21:28 am

After reading your reply, it all seems so simple ... Thanks :D

I think the solution is to create a "basic" override template for each section of my site. Then I create the specific templates which override the basic template.

eZ ;)

Mark

Marco Zinn

Saturday 07 February 2004 11:42:11 am

Yes, you could do this.
But take care of the order of the overrides. ezP 3.0 - 3.2 will not let you priorize the overrides in the admin interface, just by manual editing of the override.ini.
Note, that the the "first hit" will determine the template, that is used. In your case, you'd need the node-specific overrides before the section-specific override. Class-specific overrides must be in-between, if you have any.
I think, in ez 3.3, you can atjust the priority in the web admin interface, so you don't need to edit the override.ini manually.
BTW: Thanks for the feedback. Good to see, that a post really helps someone ;)

Marco
http://www.hyperroad-design.com

Ekkehard Dörre

Saturday 14 February 2004 4:56:46 am

Here you can read more,
http://ez.no/ez_publish/documentation/customization/custom_design/override_templates
Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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 04:14:37
Script start
Timing: Jan 19 2025 04:14:37
Module start 'layout'
Timing: Jan 19 2025 04:14:37
Module start 'content'
Timing: Jan 19 2025 04:14:39
Module end 'content'
Timing: Jan 19 2025 04:14:39
Script end

Main resources:

Total runtime1.0379 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 590.1484152.6094
Module start 'layout' 0.00600.0037 742.757839.3984
Module start 'content' 0.00981.0266 782.1563601.0547
Module end 'content' 1.03640.0015 1,383.210916.2031
Script end 1.0379  1,399.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3425160.0002
Check MTime0.00160.1517160.0001
Mysql Total
Database connection0.00090.087010.0009
Mysqli_queries0.973293.7692650.0150
Looping result0.00070.0708630.0000
Template Total0.997896.120.4989
Template load0.00250.243120.0013
Template processing0.995395.893120.4976
Template load and register function0.00020.018710.0002
states
state_id_array0.00080.077210.0008
state_identifier_array0.00150.148320.0008
Override
Cache load0.00220.2125300.0001
Sytem overhead
Fetch class attribute can translate value0.00080.078430.0003
Fetch class attribute name0.00130.122670.0002
XML
Image XML parsing0.00130.125330.0004
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00190.1789220.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs