Preview button in Tailor records pointing to exact page to open

We have a Tailor blueprint with handle name: handle=“Name\BlueprintHandle”

And we have 3 pages with the component [section] and same handle=“Name\BlueprintHandle”

page_builder.htm , thanks-page.htm , 404-page.htm

Pages differ by url but some have additional compoments needed to handle logic differently.

Example:

url="/page/:slug"
[section pageData]
handle = "Name\BlueprintHandle"

url="/thank_you_page"
[section pageData]
handle = "Name\BlueprintHandle"

url="/404"
[section pageData]
handle = "Name\BlueprintHandle"

It is basicaly a blocks / page-builder pretty much same as in Demo theme.

In this setup, if I click Preview button, I’m getting 3rd /404 page with all content layedout as intended. It work, but not perfect.

We would like a way to explicitly tell october to use page_builder.htm for opening a Preview, is this possible and what could be the solution?

Thanks in advance, Max

There is a isDefault property for the section component: Section - October CMS - 4.x

Since true is the default value, I guess that the last page/component to get loaded is the truest of them all, and that is why the 404 is used to render the preview. So you’ll have to set isDefault = false to all the section components, whose page should not act as the default renderer.

1 Like

Thank you Marco, I’ve missed that part in the documentation. This works perfect!