Make the edit toolbar show edit, add, remove, and sort

147 views Asked by At

2SXC 8.8.0 DNN 7.4.2 C# Razor template

I want to limit the edit controls on my content items to be edit, add, remove, and sort (sort being the drag and drop interface where I can also change the list header values).

I've figured out I can use @Edit.Toolbar(Content, actions: "edit,add,remove") but I tried adding 'sort' to the list but it just shows an empty blue icon - I obviously don't have the correct name for it. How can I add the 'sort' icon?

1

There are 1 answers

2
Andreas Flohr On BEST ANSWER

The answer is on the wiki-page you've found:

"This grouping is currently static and cannot be changed. Because of this, just using actions: "develop" won't show anything, because it's hidden till the more button was clicked a few times. So if you want any advanced buttons, for now you'll also need to supply the more as well, like actions: "develop,more". This will be optimized some day."

Your code must look like:

@Edit.Toolbar(Content, actions: "edit,add,remove,more,sort")