An unique module with results from various modules

Author Message

Jose Salgado

Saturday 15 December 2007 11:25:14 am

My question is easy, but i have not reply.

<b>How can i develop a module which result gets from the results of various modules?</b>
I mean, if i have two modules, named A and B, both of them return a single view, how can i "capture" the results of these modules and join them in one single view for a module, named C?

Thanks in advance

Piotrek Karaƛ

Saturday 15 December 2007 11:45:00 am

An interesting one!

I might be wrong, but I think this is impossible. It seems to me, that module/view combination is internally unique, even if only for module declarations, such as script, parameters or functions by means of which access control is performed. Also, only one set of result parameters is always collected.

The only possibility I can see is to develop a module that borrows PHP code from other modules to build a compound result, that from outside may seem like a view combination, but in fact stands a new quality. That would also require rethinking module/view combinations, access functions etc...

Let's wait for some more experienced opinion ;)

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Heath

Sunday 16 December 2007 1:52:28 pm

This topic has arisen before a few times before and the answers seem to surround two keys.

By default, using frames and ... 'other'.

I was working with ezadmin extension this week on a different solution and while your question was asked I noticed that ezadmin has a neat module view which loads the results from a different module view's results within a frame or iframe.

This while interesting may not meet your needs still I think it is a prime example of a way one could reach the goal you seek.

Check out the extension and the module views it provides. <i>ie: /admin/frame/admin/phpinfo</i>

<i>http://pubsvn.ez.no/community/trunk/extension/ezadmin/</i>

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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

Main resources:

Total runtime1.2546 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.0469152.6406
Module start 'layout' 0.00660.0032 740.687539.4922
Module start 'content' 0.00981.2429 780.1797942.4219
Module end 'content' 1.25270.0019 1,722.601612.1250
Script end 1.2545  1,734.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00720.5745170.0004
Check MTime0.00170.1334170.0001
Mysql Total
Database connection0.00170.139410.0017
Mysqli_queries0.791263.0615630.0126
Looping result0.00070.0571600.0000
Template Total1.223897.520.6119
Template load0.00300.238420.0015
Template processing1.220897.305720.6104
Template load and register function0.00020.017010.0002
states
state_id_array0.00180.144410.0018
state_identifier_array0.00130.102620.0006
Override
Cache load0.00260.2047240.0001
Sytem overhead
Fetch class attribute can translate value0.00090.071130.0003
Fetch class attribute name0.00120.099360.0002
XML
Image XML parsing0.01110.888430.0037
class_abstraction
Instantiating content class attribute0.00000.001380.0000
General
dbfile0.01120.8923350.0003
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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs