diff --git a/src/java/fr/paris/lutece/portal/service/content/XPageAppService.java b/src/java/fr/paris/lutece/portal/service/content/XPageAppService.java index 4d3a05c479..0bd2034dea 100644 --- a/src/java/fr/paris/lutece/portal/service/content/XPageAppService.java +++ b/src/java/fr/paris/lutece/portal/service/content/XPageAppService.java @@ -247,6 +247,7 @@ public String getPage( HttpServletRequest request, int nMode ) throws UserNotSig data.setContent( page.getContent( ) ); data.setName( page.getTitle( ) ); + data.setHomePage( page.isHomePage( ) ); // set the page path. Done by adding the extra-path information to the // pathLabel. diff --git a/src/java/fr/paris/lutece/portal/web/xpages/XPage.java b/src/java/fr/paris/lutece/portal/web/xpages/XPage.java index c54375d9eb..dbc0a0daa6 100644 --- a/src/java/fr/paris/lutece/portal/web/xpages/XPage.java +++ b/src/java/fr/paris/lutece/portal/web/xpages/XPage.java @@ -53,6 +53,7 @@ public class XPage private String _strXmlExtendedPathLabel; private boolean _bStandalone; private boolean _bSendRedirect; + private boolean _bIsHomePage; /** * @@ -211,4 +212,27 @@ public boolean isSendRedirect() { public void setSendRedirect(boolean bSendRedirect) { this._bSendRedirect = bSendRedirect; } + + /** + * Returns weither the current page is an homepage or not. + * + * @return true if the page is an homepage, otherwise false. + * @since 7.1.5 + */ + public boolean isHomePage( ) + { + return _bIsHomePage; + } + + /** + * Sets the homepage indicator. + * + * @param bHomePage + * Should be true if the page is an homepage, otherwise false. + * @since 7.1.5 + */ + public void setHomePage( boolean bHomePage ) + { + _bIsHomePage = bHomePage; + } }