By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

Templating... Is Smarties the answer ?

P: n/a
Hello I've developed long time ago a simple CMS.
What I really need is to have some sort of templating functionality
but I can't get my head around.

At the moment I am using tinyMCE as an editor of the content. I am not
using it as a global WYSIWYG.
With that I mean that I have my Menu and BAnner hardcoded and just the
main content edited by the user.

Now what I would like to be able to do is within my tinyMCE content
insert some sort of TAG/Snippet which then will be parsed thru a php
function and depending on the tag I would call a function to display
either an image_gallery or a product catalog or anything that is
dynamically generated.

I haven't looked into smarties and I don't think that my host supports
them, but maybe they do (not sure).

What is the best advice you can give me on doing something like
that... is it worth inventing some sort of TAGs wich I would insert
within my content in the WYSIWYG ?

e.g. (Bellow is the RIch Text area content <<< My Custom TAG >>>)
----------------------------------------------------------------------------------------------------------
Bellow you can see the photos from the Winter Holidays in South africa
<<< GALLERRY(45) >>>
Photographer: ExName ExSurname.

Bla bla bla
----------------------------------------------------------------------------------------------------------

Thanks a lot for reading my topic I hope that some of you had a
simillar request that was solved... and can give some guidance to me
and other people interested in something like that.

Feb 15 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.