Insert a module in a Frontpage object

Author Message

Roberto Sacchi

Thursday 22 January 2009 7:06:07 am

Hi,
I just create a Frontpage object from admin panel...
When editing, I would like to insert in the "center column" the result of a module written by mine.
(that module fetch data from a custom class)

Is it possible?
How to do that?

Thanks....

Roberto Sacchi

Friday 23 January 2009 4:03:58 am

in other words, is it possible to load more than 1 module at the same time?

for exemple, when I display a node, ezPublish invokes the module /content/view/full/[id_node]
I would like to show the result of another module when display that node...

Ɓukasz Serwatka

Friday 23 January 2009 4:16:35 am

in other words, is it possible to load more than 1 module at the same time?

Not directly. However there are few possibilities to get that data.
1. Template operator/fetch function + custom tag. First one can fetch data, second can display it in the center column if you are using a eZXML block
2. custom tag only. Here you can use either iframe or do AJAX call to get data
3. Skip custom tag and put code directly in the template responsible for displaying frontpage.

Hope it helps.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Roberto Sacchi

Monday 26 January 2009 5:49:21 am

Thanks for help.

I've tried the first method, I've read this page -> http://ez.no/doc/ez_publish/technical_manual/4_0/reference/datatypes/xml_block/custom_tags

I try to uset an existing custum tab like "sub" in an XML Block in this way:

<custom name="sub">Sub text</custom>

but EzPublish seems to not recognize it.
Any suggestion?

Roberto Sacchi

Monday 26 January 2009 6:52:55 am

ok I find the answer.

Just go to admin panel and when edit XML BLOCK click on "insert custom tag" and It works!

Thanks to all

Rob

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

Main resources:

Total runtime0.0395 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.2344151.2109
Module start 'layout' 0.00690.0053 739.4453220.6875
Module start 'content' 0.01220.0256 960.13281,001.9297
Module end 'content' 0.03780.0017 1,962.062533.9922
Script end 0.0395  1,996.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00317.8650140.0002
Check MTime0.00122.9918140.0001
Mysql Total
Database connection0.00102.483110.0010
Mysqli_queries0.00358.899330.0012
Looping result0.00000.063410.0000
Template Total0.00123.010.0012
Template load0.00092.258010.0009
Template processing0.00030.713910.0003
Override
Cache load0.00061.582210.0006
General
dbfile0.005112.972480.0006
String conversion0.00000.030240.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