Gossamer Forum
Home : Gossamer Threads Inc. : Discussion :

Re: [Gmail] Gossamer Links 3.0 - Template system changes

Quote Reply
Re: [Gmail] Gossamer Links 3.0 - Template system changes In reply to
Of course, your comments are welcome!

Quote:
In the documentation it states that templates should be edited via the admin panel, particularly globals.txt and language.txt due to their formatting, therefore it should not be an issue as to where the two .txt files are located as you should never see them :)
Since you edit the templates through the admin interface, you shouldn't bother if globals.txt, language.txt, .tplinfo files are grouped into a _config directory in template dir.
Also I hope, you don't think that all users, especially advanced users are still using the admin interface to edit templates. Wink I believe, most users (advanced users 100% sure) are using text editors, html editors to edit their template code. Because a text/html editor is more comfortable.
But the bottom line is: putting these configuration files into a _config directory, doesn't harm anybody.


Quote:
In my personal it obscures the code. Wrapping an include with an if/endif is much clearer to the average user who perhaps isn't so familiar with perl, than "include something if something = something"
My personal experience is, that having too much <%if foo%><%include $foo%><%endif%> in template, obscures the code.
Using <%include $foo if%> is much clearer and shorter solution.
But if you want, you can still use the long style. That depends on you.


Quote:
If you don't trust your editors with globals, why would you trust them with templates? ....you can put function calls in templates which can do as much harm as a global.
Ah, absolutely no.
Putting a `cat /etc/passwords` into Global Perl code is DANGEROUS!
While in templates, you can only put calls to existing functions, which means much less danger.
But if that's not enough, I still have 2 security solutions for templates:
1) Edited templates doesn't take effect until I do allow on the admin interface
2) I limit the allowed function calls. On the template editor interface, I can implement this filter.


Quote:
I don't think implementing features into the core code that suit your custom project is necessarily best for the general product user base.
I suggested only useful features, which would help flexibility of GT apps for the overall user community.
Of course, not every feature applies every user, since most users doesn't use every feature. That's normal.

My suggested features were:
1) Site-Theme-Element style template system. Site level is missing from current (2.x) implementation.
2) Directories for template Grouping in template sets, to group templates for easier usage
3) Inheritance: thanks to GT, this was already implemented earlier. This proves, that my suggestions are right.
4) _config directory in template sets, where globals.txt, language.txt, .tplinfo are separated from templates
5) Variable templates. To make possible to edit the most often changed template parts.
Similar solution could be still fine, if correctly separates the Skeleton design part, from the often changed template elements.
6) <%include $foo if%>: to simplify conditional if usage. The backward compatibility is kept, old style can be still used.


Quote:
I just did a forum search and "Alex" made an announcement in December 2001 outlining the inheritance feature. I think perhaps it's a slight over exaggeration to say that most developers didn't know it existed, just because you personally didn't :) ....I only downloaded Gossamer Forum a week ago and came across the inheritance feature whilst browsing the templates directory.
I also did a forum search. In the mentioned post, there was a small note, that template inheritance was implemented into GForum. But that affects only GForum users. Non-GForum users, like Links SQL were not announced about template inheritance feature. Yogi knew about it, since he worked with both LSQL and GForum.
Anyway, that doesn't change the fact, that inheritance feature was not propagated for LSQL users by GT staff...
There were no any words on LSQL template help pages, about template inheritance...

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread Gossamer Links 3.0 mockup GT Dev Team 17589 Dec 7, 2004, 1:24 PM
Thread Re: [GT Dev Team] Gossamer Links 3.0 mockup
DeadMan 17064 Jan 22, 2005, 5:07 PM
Post Re: [deadroot] Gossamer Links 3.0 mockup
archer 16957 Jan 25, 2005, 4:52 PM
Thread Re: [deadroot] Gossamer Links 3.0 mockup
GT Dev Team 16947 Jan 26, 2005, 4:25 PM
Thread Re: [GT Dev Team] Gossamer Links 3.0 mockup
DeadMan 16918 Jan 26, 2005, 4:34 PM
Post Re: [deadroot] Gossamer Links 3.0 mockup
GT Dev Team 16916 Jan 26, 2005, 4:35 PM
Post Re: [GT Dev Team] Gossamer Links 3.0 mockup
ManuGermany 16447 Mar 3, 2005, 2:40 AM
Thread Re: [GT Dev Team] Gossamer Links 3.0 mockup
DeadMan 17010 Jan 26, 2005, 3:19 PM
Post Re: [deadroot] Gossamer Links 3.0 mockup
GT Dev Team 16909 Jan 26, 2005, 4:29 PM
Thread Re: [GT Dev Team] Gossamer Links 3.0 - Template system changes
webmaster33 17024 Feb 4, 2005, 6:14 AM
Thread Re: [webmaster33] Gossamer Links 3.0 - Template system changes
GT Dev Team 16860 Feb 4, 2005, 12:40 PM
Thread Re: [GT Dev Team] Gossamer Links 3.0 - Template system changes
webmaster33 16817 Feb 6, 2005, 12:10 PM
Thread Re: [webmaster33] Gossamer Links 3.0 - Template system changes
GT Dev Team 16841 Feb 7, 2005, 1:45 PM
Thread Re: [GT Dev Team] Gossamer Links 3.0 - Template system changes
webmaster33 16716 Feb 7, 2005, 10:07 PM
Thread Re: [webmaster33] Gossamer Links 3.0 - Template system changes
Gmail 16709 Feb 8, 2005, 2:38 AM
Thread Re: [Gmail] Gossamer Links 3.0 - Template system changes
webmaster33 16711 Feb 8, 2005, 7:51 AM
Thread Re: [webmaster33] Gossamer Links 3.0 - Template system changes
Gmail 16726 Feb 8, 2005, 9:47 AM
Post Re: [Gmail] Gossamer Links 3.0 - Template system changes
webmaster33 16645 Feb 8, 2005, 11:06 AM
Post Re: [GT Dev Team] Gossamer Links 3.0 - Template system changes
webmaster33 16702 Feb 8, 2005, 11:21 AM
Post Re: [GT Dev Team] Gossamer Links 3.0 - Template system changes
webmaster33 16625 Feb 26, 2005, 4:43 PM
Post Re: [GT Dev Team] Gossamer Links 3.0 - Template system changes, part 2
webmaster33 16836 Feb 6, 2005, 5:48 PM
Post Re: [GT Dev Team] Gossamer Links 3.0 mockup
ericho 16597 Feb 14, 2005, 7:30 AM
Post Re: [GT Dev Team] Gossamer Links 3.0 - Admin suggestion
webmaster33 16605 Feb 17, 2005, 4:56 AM