Templating... Is Smarties the answer ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

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.

Site Timeline