Create Pages From Patterns
You can leverage Redwood resources in your application to create pages based on Redwood patterns.
Redwood provides several page templates, some of which are also available as patterns. A pattern defines the basic constructs of a page for common use cases and adds variables, actions, and event listeners to your page. Such patterns make it easier for you to create pages by eliminating time-consuming and error-prone work, where you might need to add individual components to a page and manually wire up the necessary actions.
Note:
Creating a page based on a pattern is supported only if your app is leveraging version 2301 or later of the Redwood components.- To add a pattern to your application:
- To create a page based on a pattern:
A new page, with the contents of the pattern added to it, opens in the Page Designer. The page contains all the variables, events, listeners, and action chains required by the pattern to work and can now be customized as needed.
If the page doesn't open in the Page Designer and instead you see only a spinning icon, the page template might be outdated. To fix this, you can:
- Update your Redwood components to the latest version.
- Upgrade Your App.
- Clear your browser cache.