+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Module Builder Actions Customization

Module Builder Actions Customization

4 posts, 1 answered
  1. karnan sekar
    karnan sekar avatar
    80 posts
    Registered:
    07 Jul 2009
    24 Mar 2014
    Link to this post

    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

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    07 Dec 2016
    27 Mar 2014
    Link to this post
    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
     
  3. karnan sekar
    karnan sekar avatar
    80 posts
    Registered:
    07 Jul 2009
    08 Apr 2014 in reply to Svetoslav Manchev
    Link to this post

    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

     

  4. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    07 Dec 2016
    10 Apr 2014
    Link to this post
    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
     
    Answered
4 posts, 1 answered