AW: [opencms-dev] News Static Export functionality
Mark Miller
mark.miller at hema.ch
Thu Jul 3 20:29:01 CEST 2003
I also forgot to add the lines
// Now change the export property to true
cmsObj.writeProperty(targetFolder+targetFile,"export","true");
at the point
// Convert back to byte array and save
fileContents = fileContentsAsString.getBytes();
newFile.setContents(fileContents);
cmsObj.writeFile(newFile);
// Now change the export property to true
cmsObj.writeProperty(targetFolder+targetFile,"export","true");
cmsObj.unlockResource(targetFolder+targetFile);
in newsStatic.jsp.jsp . this is important, otherwise the new news files
inherit the export=false and never get exported, kind of defeats the
point of the function
As I said before, this is not elegant, but as far as I can see it seems
to work.
All the best,
mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030703/9e56f894/attachment.htm>
More information about the opencms-dev
mailing list