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.