<!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>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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 &amp; Regards,<br>
Minnie.<br>&nbsp;
<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.&nbsp; 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> &lt;<a href="mailto:davidv.net@gmail.com">davidv.net@gmail.com</a>&gt; 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 &lt;<a href="mailto:frank@thyamad.com">
frank@thyamad.com</a>&gt;:<br>&gt; First of all, this is my first post in this list so, Congratulations vtiger<br>&gt; is a excellent project.<br>&gt; Second, we are Brazilians, and we have some special needs to implement in
<br>&gt; Vtiger, some about legislation and some about each client requests. I've<br>&gt; been working with vtiger last week to accomplish some of those needs and end<br>&gt; up for create a new template/themes structure.
<br>&gt;<br>&gt; In few words I did a smarty.config.php modification to point the templates<br>&gt; files to a dir structure which is very similar to the theme structure. In<br>&gt; few words if you want to create a new template struture for a special theme
<br>&gt; all you need to do is create a directory under smarty/template with the same<br>&gt; name of your theme. As my English is so bad, I Will try to explain better.<br>&gt;<br>&gt; I have company called thyamad, so I did a theme also called thyamad and did
<br>&gt; all my theme's modifications there. However thyamad needs some special<br>&gt; template modifications new functionalities etc, then I create a directory<br>&gt; in smarty/template/thyamad copied all files from smarty/template to this new
<br>&gt; directory and now all modifications in Thyamad template will only change<br>&gt; thyamad functionalities. By the way, I removed all files from<br>&gt; smarty/templates to smarty/templates/default so I have no files on
<br>&gt; smarty/templates and there is a default directory where all default template<br>&gt; files are. I tested this structure against all themes in version 5.0.3 and<br>&gt; it worked well.<br>&gt;<br>&gt; As I did not followed this project since its begin I am wondering if such
<br>&gt; theme/template structure is useful for someone else or not and if I am did<br>&gt; it correctly.<br>&gt;<br>&gt; Thank you very much for your time and attention. Of course all comments will<br>&gt; be really very welcome.
<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Frank Alcantara<br>&gt; <a target="_blank" href="http://tecnologia.thyamad.com">http://tecnologia.thyamad.com</a><br>&gt; <a target="_blank" href="http://www.linkedin.com/in/frankalcantara">http://www.linkedin.com/in/frankalcantara
</a><br>&gt; ________________________________________<br>&gt; Warning: this e-mail occasionally contains strong language (which may be<br>&gt; unsuitable for children), unusual humor (which may be unsuitable for<br>&gt; adults), and advanced engineering (which may be unsuitable for everyone
<br>&gt; else).<br>&gt; _______________________________________________<br>&gt; Reach hundreds of potential candidates - <a target="_blank" href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br>&gt;<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&nbsp;&nbsp;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>