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.

eZ debug

Timing: Jan 18 2025 21:01:06
Script start
Timing: Jan 18 2025 21:01:06
Module start 'layout'
Timing: Jan 18 2025 21:01:06
Module start 'content'
Timing: Jan 18 2025 21:01:08
Module end 'content'
Timing: Jan 18 2025 21:01:08
Script end

Main resources:

Total runtime1.2072 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0109 588.4531152.6875
Module start 'layout' 0.01090.0063 741.140639.5859
Module start 'content' 0.01711.1885 780.7266589.6797
Module end 'content' 1.20560.0016 1,370.406312.0156
Script end 1.2071  1,382.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3189160.0002
Check MTime0.00160.1328160.0001
Mysql Total
Database connection0.00220.179710.0022
Mysqli_queries1.146094.9287620.0185
Looping result0.00070.0562600.0000
Template Total1.166796.620.5834
Template load0.00210.170820.0010
Template processing1.164696.474820.5823
Template load and register function0.00010.009110.0001
states
state_id_array0.00160.129110.0016
state_identifier_array0.00130.104620.0006
Override
Cache load0.00170.1400260.0001
Sytem overhead
Fetch class attribute can translate value0.00070.054330.0002
Fetch class attribute name0.00150.123760.0002
XML
Image XML parsing0.00130.107230.0004
class_abstraction
Instantiating content class attribute0.00000.001170.0000
General
dbfile0.00160.1325230.0001
String conversion0.00000.001240.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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
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