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 ?
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.
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.
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.
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
Thanks Matt,
That's what I need
Thanks Matt,
That's what I need
is working on a reply...