cancel
Showing results for 
Search instead for 
Did you mean: 

remove the "send to"-link in discussions

Former Member
0 Kudos

Is it possible to remove the "send to"-link in discussions?

Does anyone have expierence with this issue?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks for your help!

Your expierence is wonderful.

But I am sorry, I need a solution for the layoutset SingleDiscExplorerContributor. The problem is that I can´t see a breadcrumb there.

I hope someone can help me!

Bye Sybille

detlev_beutner
Active Contributor
0 Kudos

Hi,

this was a tough one!

OK, first for the public: The problem (just if you wonder: I just know, it's not written in here) was that within a CollRoom a standard Discussion iView has been built in (there was some reason for that). So first, we have been on the wrong track concerning the possible iView(s) and with that, concerning possible customizations via flexible UI.

The standard Discussion iView does not use FlexUI but is built on - I think - an old technique, where the screenflow is defined in a XML (Discussions.xml, if you are interested in; easy to read if you know Struts for example).

So, I'll publish the most important result right now, it is totally hard coded what action links show up. The <i>really</i> strange thing was that Robert Briese showed me a demo portal installation, where the Send To link appeared, when on my dev installation it didn't (but that was so strange that I promised to kill this open question tonight). We have different patch levels, but in the end that wasn't the difference...

OK, I went down into the dusty code some centuries old, just to give you the track: DiscussionPost[List|Tree]Control, DiscussionBaseControl, CollaborationControlUtil, DiscussionApplicationLayer. And when I arrived almost at hell, I saw this line, which definitely <i>should</i> have nothing to do with the question if the Send To link appears or not (but this line is everything in fact):

return topicSize != 1 || !discussion.isSingleTopic(discussion.getTopics().get(0));

That means... I saw no Send To link... because on my Discussion iView, there was only <i>one</i>, when on Roberts there have been three topics (and! we are talking about Send To links for postings, not for topics)! Yeah, that's evident, isn't it?! ;-[

OK, an OSS message will be opened (the <i>non</i>-appearing link violated http://help.sap.com/saphelp_nw04/helpdata/en/c7/a20741375cf16fe10000000a1550b0/frameset.htm ).

Anyhow, to get the link not appearing, as wished here, hacking into the code has to be done (delete lines 750-752 in DiscussionBaseControl). This definitely should be customizable, I think...

Hope it helps

good night

Detlev

Answers (1)

Answers (1)

detlev_beutner
Active Contributor
0 Kudos

Hi,

> Is it possible to remove the "send to"-link in discussions?

Yes.

> Does anyone have expierence with this issue?

Yes, for sure, someone will be out there who has.

Hope it helps

Detlev

OK, here comes the solution:

It depends on <i>which</i> link you want to remove. If we are talking about the same iView, there is a Send To link on the room discussion folder as well as on each discussion below (within the context menu).

For both cases, let's start with the page originally called, it is com.sap.netweaver.coll.DiscussionForum. The only iView on the page is com.sap.netweaver.coll.DiscussionGroup. In it's properties you will find DiscussionGroupsContributor as the layout set.

Now we switch to System Administration -- System Configuration -- KM -- Configuration -- CM -- UI -- Settings -- Layout Set --> DiscussionGroupsContributor. Got it.

For each of the listed CollectionRenderer you will find a set command group. "Scharfes Hinsehen" leads to realizing that the standard commands are part of the breadcrumb, so it is DiscussionGroupBreadcrumbContributorCommandGroup. Within this you will find ResourceUserRelatedActionsGroup.

Within this you will find send_to as the third command.

Now you could remove it, but think of it! This would have about 2364 side effects! So your task would be to create your ZFDiscussionGroupsContributor by going to DiscussionGroupsContributor and using Advanced Copy. In the new deep copy, now you can delete the send_to command.

For the context menu the command can be found under DiscussionGroupListContributorCommandGroup (go down the hierarchy).

And after all, don't forget to set the layout set within the iView in question... (maybe also a ZF... version).

Hope it helps

Detlev