Posted on: 09/25/04 04:32pm
By: NeoNecro
Will there be another template engine used for GL2 or will it be the same thing. A couple of months ago I started experimating on my pc with other cms's (don't worry, I stick to Geeklog).
I wass suprised about xoops, it uses a template engine called
Smarty[*1] and it's really fun to use, it's possible to create themes with just ONE file and you don't have to use tables!
So I thought maybe it would be nice if GL2 uses something like that. Do you guys allready have a template engine or dous it still has to be created? If there is one, what are the big improvements?
grtz
GL2 and templates?
Posted on: 09/25/04 04:43pm
By: Dirk
[QUOTE BY= NeoNecro] Will there be another template engine used for GL2[/QUOTE]
In a word: Yes.
I'm not up to date on the decision process (GL2 is mainly Tony's baby), but Smarty was one of the candidates at one point. Flexy was another, IIRC. But no final decision has been made, AFAIK.
bye, Dirk
GL2 and templates?
Posted on: 09/26/04 12:41pm
By: NeoNecro
I never heard of Flexy, but I've looked for it and I think it's quiete fast, but I have now idee wich of would be best. Flexy or Smarty.
Thanks for the info and let us know when the final decision has been made.
grtz
GL2 and templates?
Posted on: 10/23/04 09:55pm
By: kyanos
The template engine which I like it is that which use mambo. I like it because I can put anything there I won.
GL2 and templates?
Posted on: 10/26/04 10:14am
By: Remdotc
I tired mambo, i wasnt imrpessed with its templating system.
Now if they put all the html for the functions in one easily modifible file (kind of like the lang file) that would be awesome.
GL2 and templates?
Posted on: 04/08/05 06:56pm
By: nitebyte
I'd be glad to help out with the layout AND coding. I recommend using smarty [ http://smarty.php.net ]. I've done quite a few website using smarty and it's very well suited to use for geeklog.
By using includes in smarty, you can actually have something like (includes shown by indentation):
main.tpl
...header.tpl
...menu.tpl
...leftblocks.tpl
......leftblocksingle.tpl
...maincontent.tpl
......featuredblock.tpl
......contentblocks.tpl
...rightblocks.tpl
...footer.tpl
One major benefit from this is that no one will be limited to using the exact same template file names. In fact, you could use just one template file for the whole site, if done right. This will allow anyone to design a layout easily without having to cut it up into individual files and having 2 files for each area: 1 to open the area, use another content file, and then another 1 to close the area.
If needed, I can supply you with some great examples of my own code, like the smarty code I used for http://www.vanderbilts.com
GL2 and templates?
Posted on: 05/12/05 12:22pm
By: vinny
For the record, we've pretty much settled on HTML_Template_Flexy for the template engine. It's class based templating is a good fit for the MVC design paradigm (MVCnPHP) we're going to use.
We did look at Smarty, but Flexy has all the benefits of Smarty with a few more. Besides fitting our design very nicely, Flexy is also even faster than Smarty and doesn't have all the bloat that has crept into Smarty.
-Vinny
GL2 and templates?
Posted on: 05/12/05 12:47pm
By: asmaloney
FWIW,
this[*2] seems to be the home of Flexy. I tried the second google hit, but it didn't look like a template engine.
Edit:
This[*3] seems to be where "MVCnPHP" lives.
- Andy
GL2 and templates?
Posted on: 05/15/05 03:52pm
By: vinny
[QUOTE BY= asmaloney]
FWIW,
this[*2] seems to be the home of Flexy. I tried the second google hit, but it didn't look like a template engine.
Edit:
This[*3] seems to be where "MVCnPHP" lives.
- Andy[/QUOTE]
Both those links are correct. If I had been a goog webizen I would have linked to those from my previous post.
Thanks,
Vinny
GL2 and templates?
Posted on: 05/16/05 03:42am
By: kingboyk
I'm integrating a lot of static pages with a common subject and layout into
my Geeklog site[*4] .
It would make sense for me to use a template and database calls to generate these pages. I also want to get rid of the welcome message and date from the top of these pages, as without any left or right blocks they waste a lot of screen real estate. It seems the only way I can do this now is by coding with $_BLOCK_TEMPLATE etc. I've tried a few times but it's just way beyond me as a geeklog and php beginner. Instead, I'm gonna have to copy and paste lots of duplicate HTML or put all my into HTML into the database.
It's hard to believe that static pages are so inflexible. What I would like to request is the ability to select a header and footer template for each static page. Simple and elegant IMHO, and I'm sure really easy for you smart guys to implement.
Thanks, Steve
GL2 and templates?
Posted on: 05/16/05 03:52am
By: Dirk
[QUOTE BY= kingboyk] What I would like to request is the ability to select a header and footer template for each static page.[/QUOTE]
This really hasn't anything to do with what's being discussed in this thread so far, but you can override the static pages block templates. Please use the search and if you can't figure it out, start a new thread.
bye, Dirk
(Blaine, how's that "splitting a forum thread" function coming along?)
GL2 and templates?
Posted on: 02/04/06 09:35pm
By: Anonymous (someone)
hey gys what about xml+xslt for templating?
GL2 and templates?
Posted on: 02/04/06 10:44pm
By: asmaloney
[QUOTE BY= someone] hey gys what about xml+xslt for templating?[/QUOTE]
I used XSLT for my Amazon plugin so I could learn about it. What an abomination! The syntax is horrible, the logic paths not so logical, and it is impossible to debug. [Just my experience of course.]
I don't think this is the way to go if you actually want people to be able to create themes.
GL2 and templates?
Posted on: 02/05/06 08:29am
By: Anonymous (someone)
but xml+xslt are very flexible. It has powerful inheritance mechanism. And very good for separation logic form desing(also as for three-level architecture usability)...