[Vtigercrm-developers] Template/themes small modifications

Frank Alcantara frank at thyamad.com
Tue Jun 12 05:46:27 PDT 2007


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.3and
> > 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).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20070612/628acf31/attachment-0004.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Smarty_setup.php
Type: application/octet-stream
Size: 1656 bytes
Desc: not available
Url : http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20070612/628acf31/attachment-0003.obj 


More information about the vtigercrm-developers mailing list