Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
24 changes: 24 additions & 0 deletions src/java/fr/paris/lutece/portal/web/xpages/XPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class XPage
private String _strXmlExtendedPathLabel;
private boolean _bStandalone;
private boolean _bSendRedirect;
private boolean _bIsHomePage;

/**
*
Expand Down Expand Up @@ -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;
}
}