Page Ordering

Search
Feedback

A Structr page can be given a position attribute to control the search order of pages when looking for a Home Page or Login Page.

Having a position is required for a page to be a candidate index or home page.

There’s an additional attribute showOnErrorCodes which can be set to a valid HTTP status code. In case the HTTP request resolves to a special (non-200) status code, the page matching this code will be displayed.

The typical usage is to set showOnErrorCodes to 404 for a “not-found” page.

Chapters

Graph-Browser

About this article
Last change 2016-03-05
Topics Structr 2.0