I have migrated a project from OpenText 9 to 10.1 to 11 and found the RQL
for getting the image of the parent page no longer works. We have
replacement code for this written in Render Tags that works on another
project in OpenText 10.1 but this code is not working on this project in
OpenText 11. I suspect the problem is OpenText 11. Can someone look at
the code to spot a problem with syntax or concept?
In testing, it seems the line with GetElement is the one causing an error,
and only if the code finds the placeholder on a parent page.
Rob
Here's the code:
<!IoRangePreExecute>
<%
' This code is to inherit the banner image and section ID from
parent/grandparent/etc pages. This replaces a deprecated solution that
relied on RQL in template code.
Dim inherited_image, current_image
<reddot:cms>
<!-- Loop over this page each ancestor page, working down the tree
-->
<foreach itemname="Index"
object="Context:Indexes.GetIndexByPage(Context:CurrentMasterPage).GetPathArray()">
<htmltext>
' Retrieve the url of the image set on that page
current_image = "<%!!
Store:Index.Page.Elements.GetElement(img_InlineImage).GetHtml() !!%>"
' If an image was set
If current_image <> "" Then
' Set the inherited image to the current image
inherited_image = current_image
End If
</htmltext>
</foreach>
</reddot:cms>
%>
<% If Not IsNull(inherited_image) Then %>
<img src="<%= inherited_image %>" alt="" />
<% End If %>
<!/IoRangePreExecute>
Here's the error:
An error occured:
Error in BuildPage_PreExecute: System.Net.WebException: The remote server
returned an error: (500) Internal Server Error. at
System.Net.HttpWebRequest.GetResponse() at
OpenText.WS.MS.Core.Http.UrlHelper.Request(String url, String proxyHost,
Int32 proxyPort, String postData)
The page cannot be displayed.
Check the RDExecute and PreExecute settings.
--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/reddot-cms-users/-/-_rFQeS5Yr8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/reddot-cms-users?hl=en.