Hello.
i'm using the following to import keywords for a document:
string xKeyword = xKeywords2[j];
string xKeywordSQL = xKeyword.Replace("'", "''");
if (xKeyword.Length > 0)
{
xKeyword = xKeyword.Replace("'", "\'");
xKeyword = "\"" + xKeyword + "\"";
DataSet xTags = TagInfoProvider.GetTags("TagName='" + xKeywordSQL + "'", null);
if (xTags.Tables[0].Rows.Count > 0)
{
int TagId = (int)xTags.Tables[0].Rows[0]["TagId"];
DocumentTagInfoProvider.AddTagToDocument(TagId, xDocumentIdK);
}
else
{
DocumentTagInfoProvider.AddTags(xTagGroupId, xDocumentIdK, xKeyword);
}
}
the keywords are added into the table CMS_Tag and CMS_DocumentTag properly, however when i go to
properties -> metadata -> page tags, the associated keywords are not selected. when i check the table CMS_Document the values for field DocumentTags, they are all null.
thank you.
AP