This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = $.ajax({ | |
url: "/api/v2/admin/sites/current/webapps/Some_sample_app/items", | |
type: "POST", | |
headers: { | |
"Authorization": access_token | |
}, | |
contentType: "application/json", | |
data: '{ "name": "MyWebAppItem" }' | |
}); // Request successful, response is in "msg" variable | |
request.done(function (msg) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.min.js"></script> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.1/underscore-min.js"></script> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script> | |
<script type="text/javascript" src="//cdn.worldsecuresystems.com/bcapi/bcapi-0.0.1.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"menu-customers": { | |
"title": "Members" | |
}, | |
"menu-useful_stuff": { | |
"weight": 11000, | |
"icon": "/AdminConsole/static/images/icons/webforms.png", | |
"title": "Useful links" | |
}, | |
"menu-useful_pages": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"menu-webapps-posts": { | |
"visible": false, | |
"applyIf": { | |
"menusExist": ["menu-webapps-posts"], | |
"userHasRoles": ["Business Owner"] | |
} | |
}, | |
"menu-webapp-authors": { | |
"visible": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"menu-my_agency_blog": { | |
"weight": 25200, | |
"icon": "/blog/icons/blog.png", | |
"title": "Blog" | |
}, | |
"menu-my_agency_blog-posts": { | |
"parent": "menu-my_agency_blog", | |
"weight": 10, | |
"title": "Posts", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"menu-my_agency_blog-authors": { | |
"parent": "menu-my_agency_blog", | |
"weight": 20, | |
"title": { | |
"en": "Authors", | |
"fr": "Les authors" | |
}, | |
"attr": { | |
"href": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"menu-settings-site-map": { | |
"visible": false | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"menu-**Existing menu item name**": { | |
"visible": false | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"menu-reports": { | |
"weight": 11000 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"menu-": * * Existing menu item name * * { | |
"weight": * * 1234 * * | |
} | |
} |
NewerOlder