What is a general-page and how detect via code

Deleted user November 19, 2018

Hallo, 

in the scroll-position.js there is this statement in a comment

 // scrollPosition.getPosition is only available for general-pages

My questions are:

  1. what is exactly a general page?
  2. is it possible to identify them via code (for example in Javascript, with a property) ?

Thanks

1 answer

1 accepted

2 votes
Answer accepted
Einar Pehrson
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 22, 2018

Hi Francesco,

a General Page is an Atlassian Connect module type that you declare in your app descriptor. General Page is documented along with other module types with the same format and behavior as simply Page in our developer documentation.

We don't provide a way for apps to detect where in the product UI one of their app iframes has been embedded, because there are other ways for you to do that.

For example, if you use the same contents for more than one iframe in your app, you could simply add a query parameter to your iframe URL to include any additional context that you need, e.g. /iframe.html?type=general-page.

The AP.scrollPosition module has not yet been documented publicly. Publishing that documentation is tracked on ACJS-907.

Oh, and for other questions about Atlassian's APIs, please use the Atlassian Developer Community.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events