[Vtigercrm-developers] Right way to override layout

nilay khatri nilay.spartan at gmail.com
Mon Jul 13 13:26:15 GMT 2020


Great, thanks. I will give it a try and let you know.

On Mon, Jul 13, 2020 at 1:37 PM Uma S <uma.s at vtiger.com> wrote:

> Hi Nilay,
>
> Yes, That's the way to introduce new layout changes. These are the
> following steps to be taken care of while porting a new layout.
>
> 1. layouts/v7 need to be copied to layouts/custom folder.
> 2. In php files api's getHeaderScripts() and getHeaderCss() where they are
> loading js scripts and css files respectively. Depending on layouts/v7 or
> layouts/vlayout should be replaced with respective custom layout.
> 3. Any image references from layouts/v7 should pass through vimage_path()
> api to get loaded from default layout, With necessary images copied to
> respective layout.
>
> On Tue, Jul 7, 2020 at 7:16 PM nilay khatri <nilay.spartan at gmail.com>
> wrote:
>
>> Hi All,
>>
>> for some users it is required to change the default Theme/Layout to make
>> it more compatible/adaptable.
>>
>> I haven't looked into this in detail, but I remember from a previous
>> thread where makeyourcloud was involved, we can just make a new directory
>> for the new layout and change the layout name in the loader. That should
>> switch/enable the loader to look in the custom layout first and then
>> fallback to the default layout.
>>
>> Has anyone done any familiar work on this and what were the challenges?
>> Is it the right way?
>>
>> Thanks,
>>
>> Nilay
>> _______________________________________________
>> http://www.vtiger.com/
>
>
>
> --
> With
> Best Regards
> Uma.S
> Vtiger Team
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200713/030b62f8/attachment.html>


More information about the vtigercrm-developers mailing list