Question

I have a Data Extender in place that modifies the Favorites' titles when ever favorites are requested. But when I add a single favourite, only that item is updated without calling the whole list. My question is how do I refresh only the favorites part in Tridion using JavaScript so that the entire favorites list is retrieved and the list is run through my data extender so that the title is updated.

So How do I refresh favorites only in Tridion using JavaScript?

Was it helpful?

Solution

$models.$cme.getShortcuts().getList().unload()

OTHER TIPS

I don't have an instance open to test with, but in the PowerTools AddUser tool I refresh the main list using:

$display.getView().refreshList();

I imagine you can pass a view name to the function to specify which view you want to refresh.

The source for the tool command is at

http://code.google.com/p/tridion-2011-power-tools/source/browse/trunk/PowerTools.Editor/PowerTools/Client/AddUser/AddUserCommand.js

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top