|
Hi,
"keywords from the website" are actually every keywords found on existing document (or any elements of your site). So if a single element use a particular keyword, it will appear in the list of keywords. The way to get rid of a particular keyword is to remove this keyword on every existing elements. By default, there is no list of keywords for the site but this is a portal_catalog search that aggregate every keywords used on elements. If a keyword is no more used on the last element that was using it, it disappear. We wrote that little script to manage this : nastykeyword = "keyword_to_get_rid_of" brains = context.portal_catalog(Subject=nastykeyword) for brain in brains: obj = brain.getObject() subjects = list(obj.Subject()) subjects.remove(nastykeyword) obj.setSubject(subjects) obj.reindexObject() It does a portal_catalog search and returns every elements using the particular 'nastykeyword' keyword, then it removes the keyword from existing on the element and update. You just need to add this script in ZMi-->Add Python (Script) and define correct keyword you want to get rid of. Have a nice end of day, Le 14/11/2013 15:01, Hernã Saldanha a écrit :
|
_______________________________________________ Setup mailing list [email protected] https://lists.plone.org/mailman/listinfo/plone-setup


