Include a view within another view

Author Message

Claudia Kosny

Thursday 04 January 2007 5:35:26 am

Hi there

Is it possible to include one view within another? The 'include' template operator includes only a template, whereas I would like to include a php script which does a lot of processing and then calls a template, which then should be shown within the other template.

Example:
I have a module with two views, let's say view_a and view_b,. View_a is associated with a script script_a.php which calls a template template_a.tpl and view_b has a script script_b.php that calls template_b.tpl.
Now I want to show the result of view_a within template_b.tpl.

Is there a way to do this?

Claudia

Jianjun Hu

Saturday 21 June 2008 8:22:05 am

I'm also interested in this topic.

onlyblue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?

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 20 2025 16:54:32
Script start
Timing: Jan 20 2025 16:54:32
Module start 'layout'
Timing: Jan 20 2025 16:54:32
Module start 'content'
Timing: Jan 20 2025 16:54:33
Module end 'content'
Timing: Jan 20 2025 16:54:33
Script end

Main resources:

Total runtime1.1875 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.5469151.2109
Module start 'layout' 0.00630.0028 740.757836.6484
Module start 'content' 0.00911.1774 777.4063542.5547
Module end 'content' 1.18650.0010 1,319.96098.0000
Script end 1.1874  1,327.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2911160.0002
Check MTime0.00120.1047160.0001
Mysql Total
Database connection0.00150.130210.0015
Mysqli_queries1.135695.6357540.0210
Looping result0.00050.0436520.0000
Template Total1.153397.120.5767
Template load0.00380.321920.0019
Template processing1.149596.800820.5747
Template load and register function0.00010.011110.0001
states
state_id_array0.00070.059710.0007
state_identifier_array0.00320.269820.0016
Override
Cache load0.00290.2446140.0002
Sytem overhead
Fetch class attribute can translate value0.00050.038020.0002
Fetch class attribute name0.00110.093230.0004
XML
Image XML parsing0.00370.312820.0019
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00530.4467160.0003
String conversion0.00000.000540.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs