Dolphin 7 templates system
I was hoping that Dolphin 7 will allow to make a custom template (or to edit the tmpl_uni) more easily than now.
But it seems like it will be a templates folder (even with base and uni subfolders) in each of the numerous modules folders...
Is that not possible to suppress the templates/base folder and to regroup all these modules/templates inside the templates/tmpl_uni/modules ???
I understand that each module has to be independent... But IMHO I think that a wrong choice was done.
I think that it will much better to put together all these templates files in the same template folder (no base folder any more):
templates (folder)
tmpl_uni (folder)
css (folder)
images (folder)
modules (folder)
boonex (folder)
ads (folder)
css (folder)
avatar (folder)
css (folder)
images (folder)
avatars_my.html (file)
avatars_site.html (file)
...
...
scripts (folder)
...
The choice is simple:
1) the module is splitted in only 2 folders (module itself + module template that will be added in templates/tmpl_xxx/modules/xxx/)
or
2) the template is splitted and scattered in as much as 30, 40 or even 50 folders...
As for me, I prefere the first option :-)
http://www.boonex.com/unity/forums/#topic/No-more-base-directory-will-be-nice-.htm
it would be a mistake to make css's for every single module.. the standard style of the template should be applied to the modules which don't have any custom style..
.css files are MADE to customize hundreds of pages on the same time, so it will be ilogical for each module to have it's own css file.. you're right.. but I have an idea..
IDEA: it will see more
To adjust the content of each module, some files (CSS, Images, as well as other file types...) are indisputably needed.
IMHO the problem is that all the templates files have to be regrouped in a unique template folder and not to be scattered in dozens of different folders...
style should be separated from module content..
i agree we need to make it as customizable as possible but we must find a way to separate module content from it's style..
Every piece of Dolphin code, every module, every add-on should have two parts. The part that gets installed in the directory where it needs to be to function as a part of Dolphin, and the part that gets dropped into /templates/[active-template-directory]/module-name.css.
Even see more
Hope that BoonEx will consider our point of view...
To split a module in 2 folders, one for the functionality and another one for the template, will be very easy to do for a developer.
Having to search and edit dozens of template files will be very difficult for most of site owners who will just customize his/her site...
I think that this is a very good see more
Both implementations 1) like you offered and 2) current dolphin 7 implementation have some pros and cons.
Your suggestion is good for template maintainer only. It is not easy to develop templates in this case but only maintain it.
During template development process designer do not know which modules are installed and can not include css, images etc files for modules.
Maintain is a little bit easier, because path among templates directories see more
Thank you for your answer ;-)
I don't want you to spend too much time with this topic... If only me, I can live with that ;-)
Just one thing. You are right in that I had to choose to use only one template. Because if I have for example a white template and a black one, I will have problems with images, icons, zodiac icons..., that are in common (templates/base) for all templates and that will not match every templates colors... (I changed all these images and icons with PNG24 see more
You said:
"During template development process designer do not know which modules are installed and can not include css, images etc files for modules."
That is true. My point is that by using CSS standards for module design and creation, and by offering a separate CSS file to install into the templates directory, then the same problem that is currently (every module has it's own CSS parameters and needs, etc.) will be MORE EASILY solved, see more
Work must be done on the new Dolphin till every little presentation bit resides inside a single (if applicable) template file!