Current time: 11-16-2024, 02:04 PM Hello There, Guest! (LoginRegister)


Post Reply 
Include support for templates
Author Message
Blondak Offline
Junior Member
*****
Dev Team

Posts: 84
Joined: May 2008
Reputation: 5
Post: #1
Include support for templates
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.


Attached File(s)
.txt  template-include-support.txt (Size: 67.87 KB / Downloads: 18)
07-10-2008 10:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
nuno Offline
Junior Member
*

Posts: 92
Joined: Jun 2008
Reputation: 1
Post: #2
RE: Include support for templates
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
07-15-2008 07:47 PM
Find all posts by this user Quote this message in a reply
Blondak Offline
Junior Member
*****
Dev Team

Posts: 84
Joined: May 2008
Reputation: 5
Post: #3
RE: Include support for templates
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
07-17-2008 07:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #4
RE: Include support for templates
could you please open a ticket for rc6 with a link to this topic? So its easier to merge your changes in Wink
07-17-2008 08:14 PM
Find all posts by this user Quote this message in a reply
Blondak Offline
Junior Member
*****
Dev Team

Posts: 84
Joined: May 2008
Reputation: 5
Post: #5
RE: Include support for templates
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!
07-17-2008 08:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)