ispCP - Board - Support
Include support for templates - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: Include support for templates (/thread-3728.html)



Include support for templates - Blondak - 07-10-2008 10:28 PM

Hi,
as i started wrote Manual DNS support, I update pTemplate class to support includes, see attached patch. This patch also updates files

/gui/themes/omega_original/client/main_menu*.tpl

replacing with

<!-- INCLUDE "main_menu.tpl" -->

and main menu is moved to main_menu.tpl, so when you want modify somethink in menu you only need to modify one file.


RE: Include support for templates - nuno - 07-15-2008 07:47 PM

Blondak Wrote:Hi,
as i started wrote Manual DNS support, I update pTemplate class to support includes, see attached patch. This patch also updates files

/gui/themes/omega_original/client/main_menu*.tpl

replacing with

<!-- INCLUDE "main_menu.tpl" -->

and main menu is moved to main_menu.tpl, so when you want modify somethink in menu you only need to modify one file.


Hi thanks for this, can you doa mini HOW-TO for us?
Thanks


RE: Include support for templates - Blondak - 07-17-2008 07:04 PM

nuno Wrote:Hi thanks for this, can you doa mini HOW-TO for us?
Thanks

Hi,
It's simple in template where you want include insert this tag
Code:
<!-- INCLUDE "file_to_include.tpl" -->
file path is relevant to original file. In included file is still posible use logic tags BDP, EDP


RE: Include support for templates - Zothos - 07-17-2008 08:14 PM

could you please open a ticket for rc6 with a link to this topic? So its easier to merge your changes in Wink


RE: Include support for templates - Blondak - 07-17-2008 08:23 PM

Zothos Wrote:could you please open a ticket for rc6 with a link to this topic? So its easier to merge your changes in Wink

I'll try later :

Error 500!

/ispcp/
Internal Server Error!