Works great. Thank you!
On Oct 26, 5:05 pm, camdev <[EMAIL PROTECTED]> wrote:
> I use the code below to assign/deassign keywords to a page. I've
> never tried it on a link but it might still work if you pass it the
> link's guid.
>
> g_cmdPrefix = "<IODATA loginguid=""" & strLoginGuid & """
> sessionkey=""" & strSession & """>"
> g_cmdSuffix = "</IODATA>"
>
> Sub setKeywords(arg_PageGuid, arg_CategoryGuid,arg_KeywordGuids)
> xmlData = g_cmdPrefix & "<PROJECT sessionkey=""" & strSession &
> """><PAGE action=""assign"" guid=""" & arg_PageGuid & """>"
> xmlCat = "<CATEGORY guid=""" & arg_CategoryGuid & """/>"
> arrTmp = split(arg_KeywordGuids,",")
> for each tmp in arrTmp
> xmlData = xmlData & xmlCat & "<KEYWORD guid=""" & trim(tmp) & """/>"
> next
> xmlData = xmlData & "</PAGE>"
> xmlDataDel = ""
> ' Check for deletes
> set nodeList = objXMLPage.documentElement.selectNodes("CATEGORIES/
> [EMAIL PROTECTED]'" & arg_CategoryGuid & "']/KEYWORDS/KEYWORD")
> for each node in nodelist
> curGuid = node.getattribute("guid")
> if instr(arg_KeywordGuids,curGuid) = 0 then
> xmlDataDel = xmlDataDel & "<KEYWORD guid=""" & curGuid &
> """/>"
> end if
> next
> if xmlDataDel <> "" then
> xmlData = xmlData & "<PAGE action=""unlink"" guid=""" & arg_PageGuid
> & """>" & xmlDataDel & "</PAGE>"
> end if
> xmlData = xmlData & "</PROJECT>" & g_cmdSuffix
> 'response.write "<br>SetKeywordsXML: " & server.htmlencode(xmlData)
> xmlReply = objIO.ServerExecuteXml (xmlData, sError)
> call showXMLError("setKeywords",xmlReply,sError,true)
> End sub
>
> On Oct 24, 8:16 pm, bushland25 <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > Does anyone know if any RQL exists that allows for you to assign/
> > remove keywords from pages and from links? The RQL documentation that
> > I have doesn't seem to have any details about that.
>
> > Thanks!- 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
-~----------~----~----~----~------~----~------~--~---