[Vtigercrm-developers] viewer - exclude default wrapper (menu etc)
Richard Hills - Technologywise
richard at tw.co.nz
Fri Feb 6 06:32:42 GMT 2015
Thanks Alan, this is actually what I am doing.
The trick was that my module was using it's own template already, but
this was always wrapped with the header/footer from generic templates.
This was solved by overriding the preProcess and postProcess methods
On 05/02/15 20:38, Alan Lord wrote:
> On 04/02/15 22:21, Richard Hills - Technologywise wrote:
>> I am creating an export to html from a module and am wondering how I can
>> use the templating system without all of the crm wrapper? ie just to use
>> my own modules template.
>>
>> Any advice would be great.
>
> Create a view for your module, use that view to load your own template
> (should be in layouts/vlayout/modules/YOURModule/)
>
> Copy a template for the kind of view you want to re-produce then start
> stripping out the information/markup you don't need.
>
> However, for the purist in me, I would not be generating html from the
> model or view and sending it to the template. IMHO, to keep the
> separation of roles, the template should be rendering the markup from
> your (raw) data.
>
> Al
>
>
> _______________________________________________
> http://www.vtiger.com/
More information about the vtigercrm-developers
mailing list