Pages are easy to create and super powerful. Whether you're just wanting to create a simple about-us page with text or you're wanting to create a multimedia landing page with images, social embeds and videos - Pages are able to do it all.
With integral pages you're able to set the exact path where you want the page to display. For example if you have a business which has multiple locations and you want to create a landing pages for all the locations as well as a page for each location you can do the following;
FactoryBot.create(:integral_page, path: '/locations') FactoryBot.create(:integral_page, path: '/locations/england') FactoryBot.create(:integral_page, path: '/locations/scotland') FactoryBot.create(:integral_page, path: '/locations/ireland')
Other page features include;
- WYSIWYG Editor
- Custom templates
- SEO Ready
- Drafting & archiving
- Setting a main image
- Activity tracking
Setting the homepage
The homepage can be set in Settings in the backend user area.
Configure what page paths are protected from user entry to prevent accidentally overriding.
# config/initializers/integral.rb config.black_listed_paths = [ '/admin/', '/blog/' ]
Dynamic widgets allow us to add dynamic content to a page, for example an image gallery. More information can be found within Integral Widgets
Pages which are set as draft are only viewable to logged-in users. All other users (visitors) are served a 404
You can add page templates to Integral through the Integral config.
# config/initializers/integral.rb config.additional_page_templates = [:fluid_width]
After you've added the template here add the template name in your locale files
integral: backend: pages: templates: fluid_width: Page with Fluid Width
Now if a user selects this template for a page Integral will try to render a view at
Breadcrumbs are handled by setting a parent on a Page. If a page has a parent then the breadcrumbs will be calculated and rendered. A Page can only be a parent if it is not a child and is published.
Future works for Integral Pages include adding a block editor and being able to add a preview image. More information can be found within the WishList