Forums / Developer / Insert a module in a Frontpage object
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....
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
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 data3. 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
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?
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