How to add a new content/view/new_ways_of_viewing/NODE?

Author Message

Jorge estévez

Wednesday 07 October 2009 5:13:28 am

I need to add a new content/view/myline/123

I added the new view/myline in override.ini of my siteaccess and it works, but I noticed that the contents generated when I access the new view does not get cached once I activate viewcache template cache etc. All the site gets cached and works fast.

I must be doing things wrong...

Is there any documentation, forum debate on how to add more content/view/new_ways_of_viewing/NODE

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Marco Zinn

Wednesday 07 October 2009 10:05:54 am

Hi Jorge,
i'm not sure, if i got you right.
But it seems to me as you wanted to create a new "viewmode" for your nodes.
So, in addition to "full", "line" etc, you want a new one.
I think, this can be done without overriding. "Just" create a template in the right directory of your design directory. If you want to have a clean solution, create a design extension for this!

Maybe these links will help you:
http://ez.no/doc/ez_publish/technical_manual/3_10/templates/template_basics/node_templates
(ez 3.x doc, but in the 4.x doc, the images seem to be broken)
http://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/visualization/node_view_gui
http://ez.no/doc/ez_publish/technical_manual/4_x/features/view_caching

Let us know, if this is the right direction.

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

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 04:26:56
Script start
Timing: Jan 31 2025 04:26:56
Module start 'layout'
Timing: Jan 31 2025 04:26:56
Module start 'content'
Timing: Jan 31 2025 04:26:56
Module end 'content'
Timing: Jan 31 2025 04:26:56
Script end

Main resources:

Total runtime0.0142 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.3750151.2422
Module start 'layout' 0.00570.0023 739.617236.7109
Module start 'content' 0.00800.0046 776.328190.1875
Module end 'content' 0.01260.0015 866.515629.9922
Script end 0.0142  896.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.5155140.0002
Check MTime0.00128.1276140.0001
Mysql Total
Database connection0.00096.185410.0009
Mysqli_queries0.002618.190830.0009
Looping result0.00000.085510.0000
Template Total0.00128.210.0012
Template load0.00096.277510.0009
Template processing0.00031.897010.0003
Override
Cache load0.00064.259910.0006
General
dbfile0.00032.148480.0000
String conversion0.00000.048640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs