You are here: Templating... Is Smarties the answer ? « PHP Programming Language « IT news, forums, messages
Templating... Is Smarties the answer ?

Posted by Aggelos on 02/15/07 09:58

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация