[opencms-dev] Publishing Corrupts Properties

Thomas März thomasmaerz at gmx.de
Wed May 28 21:00:02 CEST 2003


"Steele, Jeffrey" <steelej at DCSC.GOV> writes:
> I sent a message about this yesterday, but didn't receive any responses.
> Maybe I didn't explain well enough, so I'll try again.
>
> 1) I have created three new properties for a jsptemplate file: picture,
> picdimensions, and caption. I have then created a page using that template
> file. In the page, I attempt to use the property values as follows:
>
> <img alt="<cms:property name="caption" />"
> src="<cms:link>../resources/<cms:property name="picture" /></cms:link>"
> <cms:property name="picdimensions" /> />
>
> In the offline site, the resulting html is correct. Here is an example:
>
> <img alt="Anne B. Wicks Executive Officer"
> src="/opencms/opencms/system/modules/com.opencms.dccweb/resources/AWicks01.j
> pg" height="183" width="144" />
>
> However, it the exported or online sites, the html get corrupted as such:
>
> <img alt=""
> src="/opencms/opencms/system/modules/com.opencms.dccweb/resources/Anne B.
> Wicks <br />Executive Officer" AWicks01.jpg />
> <br />
>
> It seems like all the cms:property stuff gets shifted one posistion. Has
> anybody run into this before or do you know of a solution?

I did experience a strange behaviour with properties, too. 
Offline everything is working fine, but when viewing the files online,
the properties are not inserted correctly. 

<%= cms.property("prop_one", "uri", "") %> doesn't work at all (I am
speaking about the online project).

<%= cms.property("prop_one", "search", "") %> works correctly (on- _and_
offline). Btw, why doesn't the search start at the called file?


But e. g. <%= cms.property("title") %> works without any problems.


I am still trying to find a workaround.

Best Regards,
Thomas März



More information about the opencms-dev mailing list