problem with sections: shared articles in one section are shown using templates from another section

Author Message

Vytautas Germanavičius

Wednesday 02 March 2005 8:14:07 am

I have 2 sections:

-Public - this section is accessible to everyone.
-Protected - this section is accessible only to registered users.

I made different templates for both sections:
- in Public section users can see only preview of article
- in Protectes section registered users can see full view of article

I put all articles to protected section, and for some articles I added locations to public section.

Problem: shared articles in public section are shown using templates from Protected section

{set-block scope=root variable=cache_ttl}0{/set-block}

Bård Farstad

Monday 07 March 2005 2:19:30 am

You should look into creating the template override based on subtree instead of section. That way you can have the same article showing in a different template on the different sections.

--bård

Documentation: http://ez.no/doc

Vytautas Germanavičius

Thursday 31 March 2005 5:02:31 am

sorry, for my stupid question. But how to make "emplate override based on subtree"?
When i create new template, i can choose only: section or /and node. There is no option to choose subtree....

{set-block scope=root variable=cache_ttl}0{/set-block}

Patrice DUCLAUD

Tuesday 05 April 2005 8:00:39 am

Perhaps use the node of the folder, subtree ... to make an override based on subtree

In the same way, is it possible to add automatically locations to object when they are created ?
I create objects in one resctricted section .
I would like people would be able to acces the same objects in another section.

Thanks ...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.