Hi Ibrahim
If you want to assign a keyword based on some user choice then the following
RQL snippet should work (based on choosing 'feature' from an option list:
<%
if "<%opt_newsType%>" = "feature" then
xmlData = "<IODATA loginguid=""" & LoginGUID & """ sessionkey=""" &
SessionKey & """>" & _
"<PROJECT sessionkey=""" & SessionKey & """>" & _
"<PAGE guid = """ & PageGUID & """ action=""assign"">" & _
"<KEYWORDS>" & _
"<KEYWORD guid=""12345678123456781234567812345678""
changed=""1"" />" & _
"</KEYWORDS>" & _
"</PAGE>" & _
"</PROJECT>" & _
"</IODATA>"
xmlData = objIO.ServerExecuteXml(xmlData,sError)
if sError>"" then Response.write "An error has occured:<br />" & sError &
"<br /><br />" End if
Call XMLDomPage.LoadXML(xmlData)
end if
%>
You will need to know the GUID for the keyword you wish to add.
Cheers
Neil
--
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/-/6FGQ83jPiVsJ.
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.