Hi guys
Based on Jian Huang's AutoFileName 
plugin<http://simplyreddot.blogspot.co.uk/2012/02/auto-file-name.html>, 
I've tried to make something similar to add a specified keyword to a page, 
rather than using cumbersome RQL directly in SmartEdit.
I'm getting nothing saved - can anybody help with why the following might 
not be working (main function only)?
function AddKeyword(PageGuid, KeywordGuid)

{

var AddKeywordRQL = ""; 

AddKeywordRQL += "<PROJECT>";

AddKeywordRQL += "<PAGE guid=\"" + PageGuid + "\" action=\"assign\">";

AddKeywordRQL += "<KEYWORDS>";

AddKeywordRQL += "<KEYWORD guid=\"" + KeywordGUID + "\" changed=\"1\" />";

AddKeywordRQL += "</KEYWORDS>";

AddKeywordRQL += "</PAGE>";

AddKeywordRQL += "</PROJECT>";


var strRQLXML = padRQLXML(AddKeywordRQL);


$.post(rqlaction_url, { rqlxml: strRQLXML },

function(data){

// saved

}, "xml");

}

Thanks

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/-/QuEwGWnthiIJ.
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.

Reply via email to