Share » Forums » Developer » Insert a module in a Frontpage object

Insert a module in a Frontpage object

Insert a module in a Frontpage object

Thursday 22 January 2009 7:06:07 am - 4 replies

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu