|
Posted by Aggelos on 03/22/07 15:08
Dear developers,
I am trying to find an answer to that rpoblem of mine for a very long
time now... and still I had no luck.
I have my tinyMCE WYSIWYG and I want to let people create an e-mail
template.
So i want the to type in the WYSIWYG :
Dear <?= $subscriber->name ?>,
You have a message from <?= $anotherSubscriber->name ?>
Total messages: <?= $message->countMessages($subscriber->name); ?>
Regards,
Hero
Another version of the above is:
Dear <?= $NAME ?>,
You have a message from <?= $MESSAGE_FROM_NAME ?>
Total messages: <?= $TOTAL_MESSAGES ?>
Regards,
Hero
Ignore the CAPITAL letters.
And the question is... what options do I have of creating that
template in my WYSIWYG store it in a DB and then be able to parse it.
I believe that the most common answer would be using regular
expression and replacing this variables with somthing else. But do you
know any application that works like that... is that a common way to
work ?
Thank you.
Navigation:
[Reply to this message]
|