ibmverse / verse-developer

https://doc.cwpcollaboration.com/verse-developer/
MIT License
13 stars 14 forks source link

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

Open RayWeb123 opened 7 years ago

RayWeb123 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

@DanieleVistalli thank you!

BerndGewehr commented 6 years ago
            {
      "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 commented 5 years ago

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

icestone2k commented 5 years ago

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 commented 5 years ago

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.