문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top