0

I wrote a VF page which I use as a VF Homepage Component on the Narrow Side (Side bar). Showheader and sidebar page attributes are set to FALSE. My page uses the standard controller of one of my custom objects.

When I'm on the homepage or any tab the component displays properly BUT when I navigate to any record detail page the component is showing the header and sidebar as well (it seems as the entire SF homepage is showing in the space I allocated to the component)

Why is this happening? How can I solve this?

2
  • Dedo, did you ever find a resolution to your problem? I am experiencing exactly the same problem.
    – John
    Commented Sep 26, 2014 at 4:41
  • No, I didn't find...
    – Dedo
    Commented Sep 26, 2014 at 9:53

3 Answers 3

2

It is happening because the links open within the iframe component. You need redo your vf page to change the links to call a Javascript function on the page that then sets the

window.parent.location

= to the actual url of the clicked link. Then the main window should navigate to the link

1

If you can get access to the links as HTML instead of relying on the SFDC links, you can put a "target" element in them to open in the whole window.

So instead of

<apex:outputField value="{!Account}" />

you can do like:

<apex:outputLink value="/{!Account.Id" target="_top">
    <apex:outputText value="{!Account.Name}">
</apex:outputLink">
2
  • I don't have links in on my page - only labels, input fields and 2 buttons
    – Dedo
    Commented Aug 5, 2014 at 8:14
  • Are you still having this problem? Can you post some screenshots and the code? If you've fixed it, can you post the solution?
    – Dominic
    Commented Aug 8, 2014 at 10:21
1

The reason was found; I cannot explain why but removing the standard controller and writing a custom one solves the problem

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .