expanding macros in HTML pages (was RE: [opencms-dev] CmsJspActionElement.getContent () won't let me get the contents of an html file...)

Olli Aro olli_aro at yahoo.co.uk
Fri Jun 18 15:37:01 CEST 2004


Being honest I have never tried this, but overwriting class
com.opencms.template.CmsXmlTemplate might work, since this class is used to
process the body content (the processing call can be found in
startProcessing method).

Olli

-----Original Message-----
From: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
On Behalf Of Geoff Winkless
Sent: 18 June 2004 13:03
To: opencms-dev at opencms.org
Subject: expanding macros in HTML pages (was RE: [opencms-dev]
CmsJspActionElement.getContent () won't let me get the contents of an html
file...)

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 
______________________________________________________________________
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06/06/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06/06/2004
 




More information about the opencms-dev mailing list