Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.ibm.action.delete - Deletes an existing link or menu container provided by IBM - Example/Documentation? #1

Open
RayWeb123 opened this issue Mar 31, 2017 · 7 comments

Comments

@RayWeb123
Copy link

We are looking for a example or additional documentation about the way to hide existing items in the top navigation bar using "com.ibm.action.delete - Deletes an existing link or menu container provided by IBM" as documented in the ibm wiki:
https://www-10.lotus.com/ldd/appdevwiki.nsf/xpDocViewer.xsp?lookupName=Dev+Guide+topics#action=openDocument&res_title=Managing_applications_for_Verse_or_the_Top_Navigation_Bar&content=sdkcontent

For example we would like to remove "Communities" from the Top Navigation.

Does anyone have an example or additional information?

@BerndGewehr
Copy link

You have to ask the curious 3rd party experts like Daniele Vistalli:
https://github.com/Factor-y/ConnectionsCloudHowTo/tree/master/cloud/extensions/navigationbar

The docs from IBM are not very helpful, but it seems hard to explain why. They don't get it.

@RayWeb123
Copy link
Author

Thank you Bernd, with Danieles Example we got it to work. It is a pity that IBM does not provide better examples. Thanks for your help!

@BerndGewehr
Copy link

@DanieleVistalli thank you!

@BerndGewehr
Copy link

		    {
      "type": "com.ibm.action.delete",
      "name": "Delete predefined organization",
      "path": ".org",
      "application": "Branding App",
      "title": "Delete predefined organization",
      "description": "Delete predefined organization"
    },

Does not work at the moment while in Verse, only works in CNX!

@icestone2k
Copy link

Thanks for feedback! Verse team will provide more samples in future.

@icestone2k
Copy link

To delete some default links, you can try:
{
"type": "com.ibm.action.delete",
"path": ".org",
"name": "Delete Org App",
"description": "Delete Org App",
"title": "Delete Org App"
},
{
"type": "com.ibm.action.delete",
"path": ".apps",
"name": "Delete More",
"description": "Delete More",
"title": "Delete More"
}

To add new links/menus:
{
"type": "com.ibm.action.link",
"name": "HCL logo",
"title": "HCL",
"path": "com.ibm.navbar.order.1000",
"description": "HCL",
"payload": {
"link": "http://www.hcl.com",
"title": "HCL",
"icon": "https://mk0globalbankin3xg02.kinstacdn.com/wp-content/uploads/2013/08/HCL_Logo.jpg",
"window_features": "target=_blank"
}
},
{
"type": "com.ibm.action.link",
"name": "Sample Link in Right side",
"title": "Sample Link in Right side",
"path": "com.ibm.navbar.order.100000",
"description": "After more menu Test",
"payload": {
"link": "http://www.hcl.com",
"title": "Sample Menu in Right side",
"window_features": "target=_blank"
}
},
{
"type": "com.ibm.action.link",
"name": "Sample Link After Help",
"title": "Sample Link After Help",
"path": "com.ibm.navbar.order.400000",
"description": "After more menu Test",
"payload": {
"link": "http://www.hcl.com",
"title": "After Help",
"window_features": "target=_blank"
}
},
{
"type": "com.ibm.action.link",
"name": "New Org text",
"title": "HR System",
"path": "com.ibm.navbar.order.20000",
"description": "Add a new org",
"payload": {
"link": "http://www.hcl.com",
"title": "HCL",
"window_features": "target=_blank"
}
},
{
"ext_id": "ibm.news.menu",
"type": "com.ibm.action.menu",
"path": "com.ibm.navbar.order.3500",
"applications": [
"News Menu"
],
"name": "NewsMenuContainer",
"description": "Menu of news sites",
"payload": {
"id": "Podio",
"topMenu": "PodioMenu",
"class": "feature",
"iconUrl": ""
},
"title": "News"
},
{
"ext_id": "ibm.navbar.news.menu.cnn",
"type": "com.ibm.action.menu.link",
"path": "NewsMenuContainer.1",
"applications": [
"News Menu"
],
"name": "News.CNN",
"description": "CNN",
"payload": {
"link": "http://cnn.com",
"target":"_blank"
},
"title": "CNN"
},
{
"ext_id": "ibm.navbar.news.menu.bbc",
"type": "com.ibm.action.menu.link",
"path": "NewsMenuContainer.2",
"applications": [
"News Menu"
],
"name": "News.BBC",
"description": "BBC news",
"payload": {
"link": "http://bbc.com/news",
"target":"_blank"
},
"title": "BBC"
}

@panpan-lin
Copy link
Contributor

The gh-pages branch of this repo is where the documentations are stored. Should be able to create PR against that branch to update the existing documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants