Forums / Developer / An unique module with results from various modules

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

eZ debug

Timing: Jan 31 2025 03:36:14
Script start
Timing: Jan 31 2025 03:36:14
Module start 'content'
Timing: Jan 31 2025 03:36:14
Module end 'content'
Timing: Jan 31 2025 03:36:15
Script end

Main resources:

Total runtime0.3079 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0099 588.0781370.2734
Module start 'content' 0.01000.0161 958.35161,005.5781
Module end 'content' 0.02610.2818 1,963.92973,893.9141
Script end 0.3079  5,857.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00441.4430200.0002
Check MTime0.00140.4424200.0001
Mysql Total
Database connection0.00080.262410.0008
Mysqli_queries0.212769.09621410.0015
Looping result0.00150.50061390.0000
Template Total0.281491.410.2814
Template load0.00080.246210.0008
Template processing0.280691.132510.2806
Override
Cache load0.00050.176010.0005
Sytem overhead
Fetch class attribute can translate value0.00180.579110.0018
XML
Image XML parsing0.00030.081510.0003
General
dbfile0.00571.8508200.0003
String conversion0.00000.002230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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