[dev] patch to make customized templates without changing default templates possible

Michael J. Pawlowsky mikejp at videotron.ca
Tue Jan 14 19:19:54 PST 2003


Actually I submitted a patch which gives you the option to have either the menus as they are now.
Or on the left.

You can see what it look like at http://www.mikeathome.net:8080/

user: test
pw: test1234

Mike


*********** REMPLY SEPARATOR  ***********

On 15/01/2003 at 1:00 AM Morton Jonuschat wrote:

>While I was digging throught the source code of the horde framework to
>find out how to change the horde framework menus to appear on the left
>side of the screen (corporate design issues)  I came to notice that
>there was no easy way to change the templates without changing the
>default templates delivered with horde or one of the applications.
>
>Attached to this mail is patch that adds a single function to
>lib/Horde.php to add the function Horde::getTemplate. The function
>checks if a local/customized version of the file exists and either
>returns the filename of the customized template or the application default.
>
>The applications that usually use some form of  the call "require
>HORDE_TEMPLATES . '/common-footer.inc';" would need to be changed to
>"require Horde::getTemplate('/common-footer.inc');".
>
>The performance impact should be bearable since most of the
>file_exists() calls should be caught by the php stat-cache.
>
>I've done a proof-of-concept on the admin-part of the horde framework
>plus a few pages within imp and nag to verify the function works in
>other applications aswell.
>
>--
>Morton Jonuschat <morton at jonuschat.de>
>
>
>--
>Horde developers mailing list
>Frequently Asked Questions: http://horde.org/faq/
>To unsubscribe, mail: dev-unsubscribe at lists.horde.org


Cheers,
Mike
---------------------------------------------------------------------------------------------------------
Hlade's Law:	If you have a difficult task, give it to a lazy person --
		they will find an easier way to do it.





More information about the dev mailing list