PHPTemplate for user input

bobzibub - August 21, 2009 - 17:28

Hi all;

I would like to know an elegant solution to my problem: (..and if not elegant, "workable"...)

I would like to be able to expose a set of variables to the user and so be able to create dynamic content for a reporting system. A user would enter a text field in a module, for instance: "The day of the week is {$day_of_week}." (in the Smarty sense.) I'd prefer not to allow, nor ask my users to type this: "The day of the week is <php echo $day_of_week;?>.".

Now I don't expect my users to make template files. It is not really a presentation issue to me, mainly content.

Any ideas?

Cheers,
-b

For anyone else with this problem....

bobzibub - August 27, 2009 - 16:09

Upon the nth search, it looks like the reptag module does the job.
http://drupal.org/project/reptag

 
 

Drupal is a registered trademark of Dries Buytaert.