Display module output portion
Posted: Tue Jun 14, 2011 12:10 pm
Hi, I have to display part of the content of my module output in a sidebar.
1) In the template defined in the admin panel of CMSMS, I have something like this:
<div id="central_content">{content}</div>
and
<div id="sidebar">(here I want to display a form)</div>
2) In a CMSMS page I call my module
{cms_module module="mymodule"}
At the moment, all the output generated by "mymodule" is displayed in the "content" DIV, of course.
I need to display in the "sidebar" only a little part of the entire output (a form).
I have read the forum and found that the {content_module} tag could maybe solve my problem; but I didn't understand how to use it.
I know I can call, for example:
{content_module block='form' module='mymodule'}
in the template. But, how can assign, in my module's php code, the form to block='form'?
Is there another, maybe better, way to acheive this?
(I hope I clearly explained what I need).
thanks
1) In the template defined in the admin panel of CMSMS, I have something like this:
<div id="central_content">{content}</div>
and
<div id="sidebar">(here I want to display a form)</div>
2) In a CMSMS page I call my module
{cms_module module="mymodule"}
At the moment, all the output generated by "mymodule" is displayed in the "content" DIV, of course.
I need to display in the "sidebar" only a little part of the entire output (a form).
I have read the forum and found that the {content_module} tag could maybe solve my problem; but I didn't understand how to use it.
I know I can call, for example:
{content_module block='form' module='mymodule'}
in the template. But, how can assign, in my module's php code, the form to block='form'?
Is there another, maybe better, way to acheive this?
(I hope I clearly explained what I need).
thanks