Custom Module Need Custom Action
I have a module where my client would like to see in the List View a way to resort the items as they'll be displayed to the end user (I have a data element in my model called DisplaySequence which will sort the list of items, I also have all of the underlying CRUD functionality already built up). I simply need a couple of action menu items on my list view that will call "Move Up"/"Move Down" / "Top"/"Bottom" (to move the items up or down, or to the top/bottom). When those buttons get hit I'd like to call the functions I've built in my data manager. How do I get the custom actions into my Definitions class? Will I need to create new javascript files to handle the actions (and if so can I be provided with a template on achieving that functionality?).
Hello John,
I would suggest you to check the following forum posts -
http://www.sitefinity.com/devnet/forums/sitefinity-4-x/developing-with-sitefinity/allowing-reordering-of-custom-module-items.aspx
and
http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/how-to-implement-moving-of-items-up-and-down.aspx
Hi Lubomir,
Hello John,
Please review the following blog post -
http://www.sitefinity.com/blogs/lubomirvelkov/posts/12-01-22/extending_the_built-in_content_modules.aspx
There is an example on how to call a web service through JavaScript and get the results from it, also how to refresh the master grid view.
I hope this helps.