November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
I am wondering the same thing. We have many scheduled jobs, and it would be great to be able to order them in some way.
All custom scheduled jobs and tools can be ordered by setting the SortIndex property on respective attribute.
(Defined on PlugInAttribute that ScheduledPlugInAttribute among others inherits.)
To simply modify the Job sort order in the Epi admin screen, here is a simple client side hack.
Response to this thread by Dung Nguyen, gives us an way to inject JS into the admins screen.
https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2015/5/inject-jscss-into-cms-edit-view/
We can modify the DOM to sort the jobs list from there. Tested against v11.14
function sortUnorderedList(ulIdentifier) {
var list = document.getElementById(ulIdentifier);
if (list === null) {
return;
}
var items = list.children;
var sortedList = Array.from(items).sort(function (x, y) {
if (x.getElementsByTagName("a")[0].textContent < y.getElementsByTagName("a")[0].textContent) {
return -1;
}
if (x.getElementsByTagName("a")[0].textContent > y.getElementsByTagName("a")[0].textContent) {
return 1;
}
return 0;
});
sortedList.forEach(function (content, index) {
list.appendChild(content);
});
}
document.addEventListener("DOMContentLoaded", function () {
sortUnorderedList("admin_scheduledJobs_sub");
}, false);
Hi Everyone,
We are using Episerver 10.2.0.0 for our website and currently all the scheduled jobs and tools are not sorted. we wanted to know how we can alphabetically sort scheduled jobs and tools displayed in Admin mode.
Also we are using "Scheduled Job Overview" in our solution in which you can see the scheduled jobs are already sorted. The same fuctionality we want under Admin mode=>Scheduled Jobs and Admin mode=>Tools
BR,
Priti