wabson

Refreshing Site Tags in Share

Blog Post created by wabson Employee on Jul 7, 2010
Sometimes the site tag data used in Share's document library can get out of sync with the tags on the content itself, especially in older versions of the 3.x product.



I came across this today on the Partner Sales Enablement site that we've just launched fully today on partners.alfresco.com, but fortunately the tag scope data is easy to rebuild.



To do this, you need to create a small JavaScript file that will execute the 'refresh-tagscope' action against a space.

var refresh = actions.create('refresh-tagscope');

refresh.execute(space);


Once you've created this file (I called mine refresh-tagscope.js) in Data Dictionary > Scripts, use Alfresco Explorer to navigate into the documentLibrary space within the site you want to refresh, and click View Details from the More Actions menu.



You can then use the Run Action dialogue to execute the JavaScript file you've just created. You might also want to do the same for the site space itself, which also collects tag scope data.



Once that's done you should be able to navigate back into the site document library in Share and you should find that the tag data has been fully refreshed!

Outcomes