Each page within the rental app has its own template to display that page's content.
Template files will go in a folder that has the same name as the app instance key. For example, if the rental app instance key is "rental" then you would put all of your template files within the rental folder inside the templates folder.
If your theme was called "Custom" then this would be an example folder structure:
- themes
- custom
- theme.json
- templates
- home.twig
- one-column.twig
- two-column.twig
- rental
- account.twig
- account-edit.twig
- account-login.twig
- account-password-reset.twig
- account-register.twig
- available-properties.twig
- categories.twig
- category.twig
- home.twig
- property.twig
- properties.twig
- property-unit.twig
- search.twig
- search-results.twig
- custom
Below is the list of rental app pages and the name of the template file that you should create.
The app home page often shows the properties and/or categories.
Template name: home.twig
This page shows the list of properties that have units that are available for rent.
Template name: avaiable-properties.twig
This page shows the list of categories.
Template name: categories.twig
This page shows the detail information for an individual category. The properties assigned to the category are often shown.
Template name: category.twig
This page shows the full details for an individual property.
Template name: property.twig
This page shows a paginated list of properties.
Template name: properties.twig
This page shows the detail information for the property unit.
Template name: property-unit.twig
The search page can be used to show the form to search for properties.
Template name: search.twig
The search results page can show the results of an app search. It can show a paginated list of matching properties or property units.
Template name: search-results.twig
Public users can log into the website to manage their rental accounts. Below is the list of account specific rental app pages.
This is where they will log into their account.
Template: account-login.twig
This page is the landing page for the account. It's where they go when they log in if they weren't coming from a password protected page or another page that requires a login. If they were coming from a password protected page or another page that requires a login, then they would be redirected back to that page.
Template: account.twig
The account edit page shows a form that allows an account holder to update their profile and login information.
Template: account-edit.twig
This page allows the account holder to request a password reset if they are having trouble logging in.
Template: account-password-reset.twig
Shows a form to allow new account holders to register themselves.
Template: account-register.twig