Custom view principles question

Author Message

H-Works Agency

Friday 03 June 2005 11:24:39 am

I have a question i can't solve about de "custom view" system.

Say i have a section called "Artist => Porfolio => Fashion".

In one hand, i made an override template to make this part viewable in the web browser. This will be accessed through "site.com/artist/porfolio/fashion".

In the other hand i need to make a custom view of this part to be able to return its content in xml (to be readable in a clean .swf file).

This is where my problem is. How can i make such a view ?

EZP is Great

Ɓukasz Serwatka

Monday 06 June 2005 12:27:53 am

Hi Martin,

I think that you can use "layout" module to solve your problem. You can define in layout.ini.append.php new view and in template create xml output. You will have to set right MIME header in /kernel/layout/set.php.

Hope I will help you.

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 31 2025 03:43:53
Script start
Timing: Jan 31 2025 03:43:53
Module start 'layout'
Timing: Jan 31 2025 03:43:53
Module start 'content'
Timing: Jan 31 2025 03:43:54
Module end 'content'
Timing: Jan 31 2025 03:43:54
Script end

Main resources:

Total runtime1.1409 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.1328151.2109
Module start 'layout' 0.00740.0034 739.3438220.7031
Module start 'content' 0.01091.1292 960.04694,438.1484
Module end 'content' 1.14010.0008 5,398.19537.8516
Script end 1.1409  5,406.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3374160.0002
Check MTime0.00140.1188160.0001
Mysql Total
Database connection0.00100.084010.0010
Mysqli_queries1.061993.0739540.0197
Looping result0.00050.0447520.0000
Template Total1.080994.720.5405
Template load0.00220.190620.0011
Template processing1.078794.546320.5394
Template load and register function0.00130.117510.0013
states
state_id_array0.00230.201710.0023
state_identifier_array0.00170.150620.0009
Override
Cache load0.00180.1577140.0001
Sytem overhead
Fetch class attribute can translate value0.00170.148020.0008
Fetch class attribute name0.00260.228340.0007
XML
Image XML parsing0.00270.240120.0014
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00260.2296250.0001
String conversion0.00000.000640.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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs