expanding macros in HTML pages (was RE: [opencms-dev] CmsJspActionElement.getContent () won't let me get the contents of an html file...)
Geoff Winkless
opencms at geoff.dj
Fri Jun 18 15:04:01 CEST 2004
18 June 2004 12:53, Olli Aro wrote:
> I have not used that method to get content before, so it might be
> that it returns the control file for the content type page. Below is
> a link to another way to do this. I have used this before and know
> that it definitely works:)
>
> http://mail.opencms.org/pipermail/opencms-dev/2004q1/009130.html
Urgh. That's just spaghetti. But it seems to work, thanks!!
Incidentally it's possible that I'm going about this the wrong way: we
have a problem that pages with dynamic content cannot be edited in the
WYSIWYG editor -- what I'm trying to do is have an HTML file which can
be edited in the WYSIWYG editor by a non-technical user but which can
have macros to be expanded by some backend JSP (which will actually be
the called page).
eg the html file contains
Hello _NAME_, welcome back to the website!
and the JSP reads in the file, searches for (in this case) _NAME_ and
replaces it with a session variable.
What I'd -like- is for OpenCMS to do all this for me - is there some
mechanism I've missed which will do it?
Geoff
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
More information about the opencms-dev
mailing list