Using Smarty templates and Ajax together?

General project discussion. NOT for help questions.
Post Reply
Terabyte
Forum Members
Forum Members
Posts: 79
Joined: Fri Aug 18, 2006 8:57 am

Using Smarty templates and Ajax together?

Post by Terabyte »

Well, as I have understood smarty templates are used for the cmsms, but not fot the admin section. I have looked into smarty quite as much latelty and smarty is for the time being not the easiest system to incorporate ajax into even if from all other point of view it's a great template system.

So using smarty templates for the system will we see any ajax application in the user output?

xajax and prototype is used in the admin section I see, but there are no smarty templates used.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Using Smarty templates and Ajax together?

Post by Ted »

I'm not sure where the difficultly is coming in, though.  For the most part, xajax is doing it's output before smarty even displays anything.

Good news, though.  I should have something worked out on how to do it in the 1.1 branch shortly.  As I've been rewriting pieces of functionality, I've been rewriting admin pages to use smarty and offload a lot of complicated code.  I'll have to work out the xajax stuff before going too much further.
Terabyte
Forum Members
Forum Members
Posts: 79
Joined: Fri Aug 18, 2006 8:57 am

Re: Using Smarty templates and Ajax together?

Post by Terabyte »

Yyes, well, I don't really get it either for the moment, but in general I see that people uisng any of the ajax implementations are not using samarty and also the other way. Searching on the web didn't give me any hints why it is so either.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Using Smarty templates and Ajax together?

Post by Ted »

I'm sure after I get listcontent rewritten, I'll be able to write a novel on the subject.  ;)

Just looking over it, I don't think it's going to be incredibly hard.  I do, however, want to look into using subtemplates. So, for instance, I can put the actual listing in one template, and the rest of the page in a main template.  Then, when I do my ajax stuff and redraw JUST the listing, I'm still using the same code and template and not going around smarty.  If that makes any sense...  (it's late, so probably not).

I think I'll be working on that tomorrow, so maybe you'll get some good insight after that.
Post Reply

Return to “General Discussion”