Module Builder Actions Customization

Posted by Community Admin on 04-Aug-2018 10:46

Module Builder Actions Customization

All Replies

Posted by Community Admin on 24-Mar-2014 00:00

Hi

Using module builder we have created a module to add events . In this module we need to customize the actions menu options. Please check the attached image for more details and help us on this.

Thanks,

Karnan

Posted by Community Admin on 27-Mar-2014 00:00

Hello Karnan,

There is example of such functionality to Extending the built-in content modules in this blog post. You could check there the implementation.

Regards,
Svetoslav Manchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 08-Apr-2014 00:00

Hi Svetoslav,

Thanks a lot , could you please suggest us how to extend Module builder's Actions and not in-build modules.

We have created a sample module called hostel using module builder and doesn't have any idea which class to be extended.

Also we have checked the advanced settings and we haven't find any "ViewModel" class.

Please check the image attached and help us on this.

Thanks,

Karnan

 

Posted by Community Admin on 10-Apr-2014 00:00

Hi Karnan,

What is the scenario you have, what you need to do by extending the menu?
You could try that easy approach by using jQuery to add new menu Item in the Actions menu. For example:
- Go to Administrations > Backend pages, than open in Pages: 
- Sitefinity > Administration > Module Builder > Module Builder
- Add a JavaScript widget and get all the Action menus for the available modules:

var menus = $('ul.k-group')
- Append the new Item you need (for example):
menus.append("<li class='k-item k-state-default k-last myclass' role='menu' style='padding-left:20px'><a href='#' id='myitem'>Test Item</a></li>")

In case you iterate through the 'menus' items, you could dynamically generate the new li element by adding different links, parameters and so on, as per your needs.
- Than that Item could call a dedicated service or any other JavaScript code that you have implemented.

Regards,
Svetoslav Manchev
Telerik
 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed