<div dir="ltr">Create a folder for the custom module under layouts/vlayout/modules and create 2 files:<div><br></div><div>DetailViewSummaryContents.tpl:</div><div><div>{strip}</div><div><span class="" style="white-space:pre"> </span>{include file='SummaryViewWidgets.tpl'|vtemplate_path:$MODULE_NAME}</div>
<div>{/strip}</div></div><div><br></div><div>ModuleSummaryView.tpl:</div><div><div>{strip}</div><div><span class="" style="white-space:pre"> </span><div class="recordDetails"></div><div><span class="" style="white-space:pre"> </span>{include file='SummaryViewContents.tpl'|vtemplate_path:$MODULE_NAME}</div>
<div><span class="" style="white-space:pre"> </span></div></div><div>{/strip}</div></div><div><br></div><div>Easy as that. You can copy those 2 included files to the custom module layouts directory and modify them too (to make it a single column layout for example).</div>
<div><br></div><div>As for creating a new widget, it's a PITA and you end up just about redoing it all yourself rather than trying to work with vtlib. It is doable though, and I've managed to add a couple of widgets to a custom module.</div>
<div><br></div><div>If you take a good look at the code, you realise that the widgets for the summary view have some bits hard coded and some bits relying on vtlib. Pretty messy, they must have gotten halfway through converting to vtlib before the 6.0 release.</div>
<div><br></div><div>I think I remember reading on this list that they're planning to make widget's easier to add in future versions... Fingers crossed.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Mar 19, 2014 at 5:50 PM, fxask <span dir="ltr"><<a href="mailto:fxaskcom@gmail.com" target="_blank">fxaskcom@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello<br>
I've just created a custom module and I wish to set the detail view like in<br>
ORGANIZATIONS module (summary on the left side and Activities and Updates on<br>
the right).<br>
Pls see the attached image.<br>
Also I would like to add another subpanel on the top right (before<br>
activities).<br>
I'm looking for info about this on vtiger blog without success.<br>
Many thanks for help.<br>
<<a href="http://vtiger-crm.2324883.n4.nabble.com/file/n9840/org_detail_view.png" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/file/n9840/org_detail_view.png</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtiger-crm.2324883.n4.nabble.com/How-to-set-the-detail-view-for-a-custom-module-tp9840.html" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/How-to-set-the-detail-view-for-a-custom-module-tp9840.html</a><br>
Sent from the vtigercrm-developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>