Thanks sheldon.I think I need the second approach.I have done the RQL
with the help of some posts.it works fine.but seems to be very
slow.following is the script.can anyone let me know why it is slow?is
there anyway I can remove the loop..?
<!IoRangePreExecute><%
set objIO = Server.CreateObject("RDCMSAsp.RDPageData")
objIO.XmlServerClassName = "RDCMSServer.XmlServer"
set objXMLDOM=Server.CreateObject("Microsoft.XMLDOM")
xmlData = objIO.ServerExecuteXml (xmlData, sError)
objXMLDOM.LoadXml( xmlData )
strXML = "<IODATA loginguid=""<%LoginGUID%>"" sessionkey=""<%SessionKey
%>""><PAGE guid=""<%PageGUID%>""><ELEMENTS action=""load"" /></PAGE></
IODATA>"
strXML = objIO.ServerExecuteXml(strXML, strError)
objXMLDOM.LoadXML(strXML)
Set Elements = objXMLDOM.getElementsByTagName("ELEMENT")
For Each Element In Elements
If Element.getAttribute("name") = "stf_Topic" Then
strXML = "<IODATA loginguid=""<%LoginGUID%>"" sessionkey=""<
%SessionKey%>"" format=""1""><ELT action=""save"" guid=""" &
Element.getAttribute("guid") & """ value=""" & parentTopic & """/></
IODATA>"
strXML = objIO.ServerExecuteXml(strXML, strError)
exit for
End If
Next
%> <!/IoRangePreExecute>
On Mar 27, 3:09 pm, Christopher Sheldon
<[email protected]> wrote:
> When you say assign the title do you mean just in the HTML document or
> actually in the headline field within RedDot? If you just want to
> populate the top level item into the title field for something like:
>
> Organization | Site Section | Specific Page (Or Not)
>
> I would simply create a navigation manager template that outputs the
> page headline. Set a navigation area for the template and target only
> the levels you need (1-2 would be my guess) I would use a render tag
> to skip doing anything unless the level is 2 so that it only outputs
> the appropriate headline. Then place the render tag for the
> navigation area into the title:
>
> Organization | <%!! Navigation:OutputArea(String:sectionTitle) !!%> |
> Page Headline Tag
>
> If you need to assign the value right into the template instance I'm
> guessing you will need some RQL magic.
>
> On Mar 25, 11:48 pm, chandima <[email protected]> wrote:
>
>
>
> > Hi All
>
> > I have a requirement of assigning the parent page title to all the
> > child pages under that assigned automatically.Is there anyway I can do
> > this?
>
> > thanks in advance- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
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
-~----------~----~----~----~------~----~------~--~---