Hi Tim
I'd not thought of this scenario. I've had a quick look at the code and there is an error causing this problem. I'll detail them below. I will also make a couple of changes to AK to allow
on demand meta generation for this scenario. This would allow you to activate AK when you wanted which would seem to be the ideal solution for you. You could then edit the generated metadata to your heart's delight!
Currently addkeywords.php reads around line 283
if($addkeyParams->doKeys == 1 OR $addkeyParams->doDesc == 1) {
$meta_data = plgSystemAddKeywords::generateMeta($article, false, false, $addkeyParams);
}
// return the modified metadata for posting
$article->metakey = $meta_data['keywords'];
$article->metadesc = $meta_data['description'];
// Replace everything, everywhere
if($addkeyParams->doAll == 1) {
plgSystemAddKeywords::regenerateAll(false, $addkeyParams->doDesc, $addkeyParams, $excluded = $article->id);
}
return true;
Change that to:
if($addkeyParams->doKeys == 1 OR $addkeyParams->doDesc == 1) {
$meta_data = plgSystemAddKeywords::generateMeta($article, false, false, $addkeyParams);
} else {
return true;
}
// return the modified metadata for posting
$article->metakey = $meta_data['keywords'];
$article->metadesc = $meta_data['description'];
// Replace everything, everywhere
if($addkeyParams->doAll == 1) {
plgSystemAddKeywords::regenerateAll(false, $addkeyParams->doDesc, $addkeyParams, $excluded = $article->id);
}
return true;
Let me know!