[Vtigercrm-developers] Template/themes small modifications

Minnie minnie at vtiger.com
Mon Jun 25 07:14:47 PDT 2007


Dear Frank,

          This is very good idea. but I need some clarification inthat. if my understanding is corrct, same code(templates file) will berepeated for all themes. For eg: currently, vtiger CRM supports 3themes namely alphagrey, bluelagoon and woodspice.For these 3 themes I've to create 3 directories under Smarty/templatesdirectory and one more directory for default one. Sototally we need to have 4 directories with same set of .tpl files. soif you increase the no. of themes, code duplication will also increase.

Kindly correct me if I got you concept wrong.

Thanks & Regards,
Minnie.
 





----frank at thyamad.com wrote ---- 

                                                                                    Hi again, 

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. 

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.

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. 

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. 

I really hope it help, Thank you for your time and attention, and please forgive my English.



On 6/11/07, David V. <davidv.net at gmail.com> wrote:Good job Frank !

David V.

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




-- 
Frank Coelho de  Alcantara
New Project`s Director, 
ITDeusto
http://www.itdeusto.com
falcantara at itdeusto.com
Skype: frankalcantara
IM: 19178039 (ICQ)
work: 55 41 3256-7311
mobile: 55 41 8864-8483

http://tecnologia.thyamad.com
http://www.linkedin.com/in/frankalcantara
________________________________________
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). _______________________________________________
Reach hundreds of potential candidates - http://jobs.vtiger.com 
                                                         
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20070625/2d03a74d/attachment-0003.html 


More information about the vtigercrm-developers mailing list