<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body >Dear Frank,<br>
<br>
This is very good idea. but I need some clarification in
that. if my understanding is corrct, same code(templates file) will be
repeated for all themes. For eg: currently, vtiger CRM supports 3
themes namely <span style="font-weight: bold;">alphagrey</span>, <span style="font-weight: bold;">bluelagoon</span> and <span style="font-weight: bold;">woodspice</span>.
For these 3 themes I've to create 3 directories under Smarty/templates
directory and one more directory for default one. So
totally we need to have 4 directories with same set of .tpl files. so
if you increase the no. of themes, code duplication will also increase.<br>
<br>
Kindly correct me if I got you concept wrong.<br>
<br>
Thanks & Regards,<br>
Minnie.<br>
<br><br><br><br><br><br>----frank@thyamad.com wrote ---- <br><br><blockquote style="border-left: 2px solid rgb(0, 0, 255); padding: 6px;">
Hi again, <br><br>The modification is really simple, attached is the new smarty.setup.php, it will work in 5.0.3 + patch, all what is needed is copy all content of Smarty/templates to Smarty/templates/default and after that you can start creating directories for your templates.
<br><br>Just to be clear, I used the theme as control to keep the same vtiger structure, So you will be able to create new functionalities for theme/template pair.<br><br>In my humble-nobody-asked-for opinion it should be enough to include new functionalities without brake the great original code and without bore the developers team.
<br><br>I hope some of you could test and send some opinions, critics or lessons about how can I do it correctly. Also in my humble-nobody-asked for opinion a many-to-many relationship between templates and themes is not necessary.
<br><br>I really hope it help, Thank you for your time and attention, and please forgive my English.<br clear="all"><span><br></span><br><br>
<div><span>On 6/11/07, <b>David V.</b> <<a href="mailto:davidv.net@gmail.com">davidv.net@gmail.com</a>> wrote:</span>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Good job Frank !<br><br>David V.<br><br>2007/6/11, Frank Alcantara <<a href="mailto:frank@thyamad.com">
frank@thyamad.com</a>>:<br>> First of all, this is my first post in this list so, Congratulations vtiger<br>> is a excellent project.<br>> Second, we are Brazilians, and we have some special needs to implement in
<br>> Vtiger, some about legislation and some about each client requests. I've<br>> been working with vtiger last week to accomplish some of those needs and end<br>> up for create a new template/themes structure.
<br>><br>> In few words I did a smarty.config.php modification to point the templates<br>> files to a dir structure which is very similar to the theme structure. In<br>> few words if you want to create a new template struture for a special theme
<br>> all you need to do is create a directory under smarty/template with the same<br>> name of your theme. As my English is so bad, I Will try to explain better.<br>><br>> I have company called thyamad, so I did a theme also called thyamad and did
<br>> all my theme's modifications there. However thyamad needs some special<br>> template modifications new functionalities etc, then I create a directory<br>> in smarty/template/thyamad copied all files from smarty/template to this new
<br>> directory and now all modifications in Thyamad template will only change<br>> thyamad functionalities. By the way, I removed all files from<br>> smarty/templates to smarty/templates/default so I have no files on
<br>> smarty/templates and there is a default directory where all default template<br>> files are. I tested this structure against all themes in version 5.0.3 and<br>> it worked well.<br>><br>> As I did not followed this project since its begin I am wondering if such
<br>> theme/template structure is useful for someone else or not and if I am did<br>> it correctly.<br>><br>> Thank you very much for your time and attention. Of course all comments will<br>> be really very welcome.
<br>><br>><br>> --<br>> Frank Alcantara<br>> <a target="_blank" href="http://tecnologia.thyamad.com">http://tecnologia.thyamad.com</a><br>> <a target="_blank" href="http://www.linkedin.com/in/frankalcantara">http://www.linkedin.com/in/frankalcantara
</a><br>> ________________________________________<br>> Warning: this e-mail occasionally contains strong language (which may be<br>> unsuitable for children), unusual humor (which may be unsuitable for<br>> adults), and advanced engineering (which may be unsuitable for everyone
<br>> else).<br>> _______________________________________________<br>> Reach hundreds of potential candidates - <a target="_blank" href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br>><br>_______________________________________________
<br>Reach hundreds of potential candidates - <a target="_blank" href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br></blockquote></div><br><br clear="all"><br>-- <br>Frank Coelho de Alcantara<br>New Project`s Director, <br>ITDeusto
<br><a target="_blank" href="http://www.itdeusto.com">http://www.itdeusto.com</a><br><a href="mailto:falcantara@itdeusto.com">falcantara@itdeusto.com</a><br>Skype: frankalcantara<br>IM: 19178039 (ICQ)<br>work: 55 41 3256-7311<br>mobile: 55 41 8864-8483
<br><br><a target="_blank" href="http://tecnologia.thyamad.com">http://tecnologia.thyamad.com</a><br><a target="_blank" href="http://www.linkedin.com/in/frankalcantara">http://www.linkedin.com/in/frankalcantara</a><br>________________________________________
<br>Warning: this e-mail occasionally contains strong language (which may be unsuitable for children), unusual humor (which may be unsuitable for adults), and advanced engineering (which may be unsuitable for everyone else).
_______________________________________________<br>Reach hundreds of potential candidates - http://jobs.vtiger.com <br>
</blockquote></body></html>