Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 03, 2010 @ 07:46
    Kurniawan Kurniawan
    0

    Add a function into UmbracoApplicationActions.js

    Hi All,

    I am currently creating my custom menu for sorting my own table.

    So I need to create my new ActionSort to show my sorting dialogs on popup.

     

    I have try to copy the function which is on UmbracoApplicationActions.actionSort() into JSSource
    But in some reason the umbClientMgr, doesn't work if i wrote it outside that js file.

    So i have to write it inside /umbraco_client/Application/UmbracoApplicationActions.js


    Is there any problem with that ?

    is this javascript is autogenerated ?

    What is the purpose of umbraco_client folder ? is it just contains all js file ?

     

    Thanks for your help.

     

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Nov 03, 2010 @ 09:19
    Matt Brailsford
    0

    Hey Kurniawn,

    The umbraco_client folder is, as it suggests, the folder in which all client assets for the Umbraco UI reside. There is nothing stopping you from making changed to any of these, however you should not that these are generally the folders that are updated during an upgrade, so you start to run the risk of having your changes overwitten should you ever come to upgrade.

    I'm pretty sure you should be able to write a custom action to do what you need, and therfore not affect the core. Take a look at my Doctype Extensions package as an example, as this creates custom actions which launch custom dialogs which sounds like what you are trying to achieve. 

    http://doctypeextensions.codeplex.com/SourceControl/changeset/view/54f23e58c06d

    With any custom functionality you want to add to Umbraco, the one thing you want to try and do (as much as possible) is to not update the core code itself, instead try to hook into the many events, and extension points the system makes available to you.

    All the best

    Matt

  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 11, 2010 @ 01:03
    Kurniawan Kurniawan
    0

    Thanks Matt,

     

    That's what I need

  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 11, 2010 @ 01:03
    Kurniawan Kurniawan
    0

    Thanks Matt,

     

    That's what I need

Please Sign in or register to post replies

Write your reply to:

Draft