Hi Ibrahim, Neil, It appears to be a problem that might be solved better with more user training/enforcement.
If you are looking for a technical solution, RQL is the way to go. However, please keep in mind that preexecute or RDExecute RQL within a project is consider not best practice. If needed, please consider using AJAX RQL within a project. Best regards, -Jian On Jun 30, 11:15 am, Neil <[email protected]> wrote: > 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 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.
