[Vtigercrm-developers] How to set the detail view for a custom module
Max Clarke
max at smarte.com.au
Wed Mar 19 11:11:42 GMT 2014
Create a folder for the custom module under layouts/vlayout/modules and
create 2 files:
DetailViewSummaryContents.tpl:
{strip}
{include file='SummaryViewWidgets.tpl'|vtemplate_path:$MODULE_NAME}
{/strip}
ModuleSummaryView.tpl:
{strip}
<div class="recordDetails">
{include file='SummaryViewContents.tpl'|vtemplate_path:$MODULE_NAME}
</div>
{/strip}
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).
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.
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.
I think I remember reading on this list that they're planning to make
widget's easier to add in future versions... Fingers crossed.
On Wed, Mar 19, 2014 at 5:50 PM, fxask <fxaskcom at gmail.com> wrote:
> Hello
> I've just created a custom module and I wish to set the detail view like in
> ORGANIZATIONS module (summary on the left side and Activities and Updates
> on
> the right).
> Pls see the attached image.
> Also I would like to add another subpanel on the top right (before
> activities).
> I'm looking for info about this on vtiger blog without success.
> Many thanks for help.
> <http://vtiger-crm.2324883.n4.nabble.com/file/n9840/org_detail_view.png>
>
>
>
> --
> View this message in context:
> http://vtiger-crm.2324883.n4.nabble.com/How-to-set-the-detail-view-for-a-custom-module-tp9840.html
> Sent from the vtigercrm-developers mailing list archive at Nabble.com.
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140319/ae56a1f9/attachment-0001.html>
More information about the vtigercrm-developers
mailing list