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,

Gauthier Bastien
Zoning industriel, 34
5190 Mornimont
Tél: 0032(71)78 09 79
Fax: 0032(65)32 96 79
[email protected]

La mutualisation informatique
au service des pouvoirs locaux
Le 14/11/2013 15:01, Hernã Saldanha a écrit :
I think my question is the same of Sarah. I need to remove the keywords from the website, not only from the document.

How can I do this?

Tks

Hernã G. Saldanha

“Mostre-me um absurdo: na Bahia há precedentes."
- Dr .Otávio Mangabeira


2013/11/14 Encolpe Degoute <[email protected]>
Le 14/11/2013 08:15, Sarah E a écrit :
>
> Hi,
>
>
>
> How can we delete the tags that we created?
>

Do you mean the keywords you assigned in the documents ?
By removing them, one by one.

Regards

--
Encolpe DEGOUTE
http://encolpe.degoute.free.fr/
Logiciels libres, hockey sur glace et autres activités cérébrales


_______________________________________________
Setup mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-setup



_______________________________________________
Setup mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-setup


_______________________________________________
Setup mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-setup

Reply via email to