Welcome to Geeklog Thursday, December 14 2017 @ 08:01 am EST


Status: offline

NeoNecro

Forum User
Regular Poster
Registered: 07/02/2004
Posts: 90
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 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
dimis-site.be

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
Posts: 13073
Location:Stuttgart, Germany
Quote by NeoNecro: Will there be another template engine used for GL2

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

Status: offline

NeoNecro

Forum User
Regular Poster
Registered: 07/02/2004
Posts: 90
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
dimis-site.be

Status: offline

kyanos

Forum User
Newbie
Registered: 26/02/2003
Posts: 5
The template engine which I like it is that which use mambo. I like it because I can put anything there I won.

Status: offline

Remdotc

Forum User
Chatty
Registered: 12/06/2002
Posts: 55
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.

Status: offline

nitebyte

Forum User
Newbie
Registered: 28/01/2005
Posts: 1
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


Status: offline

vinny

Site Admin
Admin
Registered: 24/06/2002
Posts: 352
Location:Colorado, USA
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

Status: offline

asmaloney

Forum User
Full Member
Registered: 08/02/2004
Posts: 214

FWIW, this seems to be the home of Flexy. I tried the second google hit, but it didn't look like a template engine.

Edit: This seems to be where "MVCnPHP" lives.

- Andy

Status: offline

vinny

Site Admin
Admin
Registered: 24/06/2002
Posts: 352
Location:Colorado, USA
Quote by asmaloney:
FWIW, this seems to be the home of Flexy. I tried the second google hit, but it didn't look like a template engine.

Edit: This seems to be where "MVCnPHP" lives.

- Andy


Both those links are correct. If I had been a goog webizen I would have linked to those from my previous post.

Thanks,
Vinny

Status: offline

kingboyk

Forum User
Newbie
Registered: 03/05/2005
Posts: 3
I'm integrating a lot of static pages with a common subject and layout into my Geeklog site.

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


Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
Posts: 13073
Location:Stuttgart, Germany
Quote by kingboyk: What I would like to request is the ability to select a header and footer template for each static page.

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?)

someone

Anonymous
hey gys what about xml+xslt for templating?

Status: offline

asmaloney

Forum User
Full Member
Registered: 08/02/2004
Posts: 214
Quote by someone: hey gys what about xml+xslt for templating?


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.


someone

Anonymous
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)...

All times are EST. The time is now 08:01 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content