Forums / Cotonti / Core Labs / Archive / default templates in special folder

esclkm
#1 2009-02-08 00:43
60-70 % of the skins change only header and footer tpl
Other template files we often dont use and they are default.
My idea is:
create special folder in system with templates. And insert here there all templates (but before config them more optional for most users.

Why it is good:
-We make admin area more "templatable" aтв without it old skins work not corruclty
-We often delete default skin
-More capability with old seditio skins.
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
Kilandor
#2 2009-02-08 01:48
By default if a template doesn't exist say in a special skin folder, it will look for it in the default skin folder. Though, there is no way to make a folder as "default" without it being avaliable I think. Though there is probally a way to do it thats kinda tricky.

But I think this method is sufficiant.

We don't need to create a special system folder to store all the base templates, its a waste. If someone is converting skins, there is no reason they can't copy new templates over.

What your talking about is templates that a skin doesn't have at all for old skins, like when we template admin. It takes all of 2 seconds for someone to copy the new skin files into the skin folder.
oc
#3 2009-02-08 06:20
I thought of something similar.

But after moduling, I think it can be (for example forums module) modules/forums/tpl/forums.posts.tpl

But if user is determined to edit it, he can: skins/{specified}/forums.posts.tpl
Brock
#4 2009-02-08 06:27
The idea is both useless and useful at the same time. For people who want to use multiple the same database for multiple sites, they could easily share the same skin, and just change a few files around for each site (say the header), thus saving them space instead of copying and pasting all of the files just for a new skin.
Web Design Database - www.wddb.com
Sergeich
#5 2009-02-10 16:32
I suggest to add 2 new folders in the folder skin:
аdmin/ - All templates Admin Panel
plugin/ - All custom templates plugins
medar
#6 2009-02-10 19:13
Until we don't have css-standart for inner tpl of skin - it (default skin) is useless feature.
rangjungyeshe.ru
Kilandor
#7 2009-02-10 19:20
A plugin/ folder in skins can be used already.
As for admin/ that sounds fine to me, just to keep some templates sorted, It could become messy adding about 10+ more templates to root folder, admin folder would be good for organizing things.
Dayver
#8 2009-02-10 19:46
# Sergeich :
....
аdmin/ - All templates Admin Panel
....
Very good idea
Pavlo Tkachenko aka Dayver
Trustmaster
#9 2009-02-10 20:12
I like the idea.
May the Source be with you!
Lombi
#10 2009-02-10 21:04
Wait, dont we already HAVE a default skin folder functionality? I mean, I opened that ticket :P
<a href="http://www.domenlo.com">Surreal Art</a>