cancel
Showing results for 
Search instead for 
Did you mean: 

Removing share-header in iframe.

wayzz1992
Champ in-the-making
Champ in-the-making
Hi I am new to programming and alfresco. I have a project where I am using alfresco share inside an iframe and in a normal browser page.
What I wish to do is when alfresco is displayed in the iframe I remove the share-header feature (Menu and page name). I have tried to add a script in the 'share-header.get.js' <javascript>if (self !== top)</javascript> to check if the page is displayed in iframe but I get the error 'self' not defined. I know I might be doing everything wrong here and appreciate if you point me to the right direction.

1 REPLY 1

eswbitto
Confirmed Champ
Confirmed Champ
What version of alfresco are you using?

To clarify what header are you wanting to remove?

For example: in 4.2.f the header contains "Home, MyFiles, SharedFiles, Sites, Tasks, People, Repository"

Is this what you are wanting to remove?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.