function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ramlakhanramlakhan 

How can we rename a standerd related list?

How can we rename a standerd related list on a  particular page layout?This is auto created activity(task) related list on opportunity.

Ways to do this:
renaming via relationship field: this is not applicable as changes will appear across entire org.
translation using translation  workbench :this can be helpful.but i see this is not available in this case. (task are created due to workflow on opportunity and apper under activity history or Open activity related list.these two realted list are standerd one and not avilable  in workbench ).
visulaforce section: is this possible or best solution if we want just to rename related list?
javascript component: no idea ,how to do tht?
Thanks in advance.
Best Answer chosen by ramlakhan
Shingo YamazakiShingo Yamazaki
Hello ramiakhan,

Here is one possible solution.

Create a visualforce page like following
<apex:page standardController="Opportunity">
    <apex:relatedList title="[The name you want to show]" list="ActivityHistories"/>
</apex:page>
(ActivityHistories or OpenActivities)

And edit Opportunity's page layout.
1. Add the visualforce page
2. Remove the standard related list

A problem is that the visualforce component doesn't adjust its height automatically with the content.

All Answers

Shingo YamazakiShingo Yamazaki
Hello ramiakhan,

Here is one possible solution.

Create a visualforce page like following
<apex:page standardController="Opportunity">
    <apex:relatedList title="[The name you want to show]" list="ActivityHistories"/>
</apex:page>
(ActivityHistories or OpenActivities)

And edit Opportunity's page layout.
1. Add the visualforce page
2. Remove the standard related list

A problem is that the visualforce component doesn't adjust its height automatically with the content.
This was selected as the best answer
Marko LamotMarko Lamot
Yes. Via translation workbench.

ramlakhanramlakhan
Thanks Marko and  Shingo.Translation workbench cannot be used as standered related list are not available for translation!!
James LoghryJames Loghry
You can only do this configuratively as an "all or nothing approach".  For instance, you could change the plural label of your related object via Setup->Customize->Tab Names and Labels->Rename Tabs and Labels.  However, this will effect all page layouts, list views, etc.

If you want to only change it for a particular page layout, then you're looking at implementing your own, custom, VF related list, which has it's own drawbacks (like having to hack the quicklink to the related list at the top of the detail page, for instance)
James LoghryJames Loghry
Another, albeit horribly sloppy solution would be to create a second relationship to the same parent object, and copy the relationship to the second field.  You would give the second relationship a different api name and the desired related list label.  Then you could add that particular related list to your page layout.  Again, it's a horrible solution, but those are your "best" options.
ramlakhanramlakhan
Hi James ,you are right .On vf related list ,on clicking the links  for records,its opening the detail page and every page navigated from there in that small section.Quite horrible!! yes i guess it possible to solve these problems  but code wont be   of just few lines as mentioned  above  by @ Shingo.Thanks.