How to add page content as a dynamic content?

I need to create a new template for specific content pages.

Each page needs a button to a form page.

This should be simple but its turned into a nightmare!

I’ve created a new template. The only section which includes a button for this theme is ‘Image and Text’.

But I can only add the title as dynamic content.

There is no option to add the content of the page as dynamic content.

Am I missing something here? How do I add the actual page content as dynamic content to the new template?

Any advice gratefully received as I’ve spent ages on this and got nowhere.

1 Like

To be able to use all your liquid sections with all their block, the page has to be a JSON page and not a liquid page. If you want to create your own section it then has to be a liquid page that has a schema of what you want to customize there like text, richtext, image_picker and above it u need html with simple rules for it. Here u have a very simple example of a section file:

{{ section.settings.title }}

{% style %}{% render “button.css” %}{% endstyle %}

{% schema %}{
“name”: “Button”,
“settings”: ,
“blocks”: [

{
“type”: “button”,
“name”: “Button”,
“settings”: [
{
“type”: “text”,
“id”: “button_text”,
“label”: “Button text”
},
{
“type”: “image_picker”,
“id”: “button_arrow”,
“label”: “Button arrow”
} ,
{
“type”: “url”,
“id”: “button_url”,
“label”: “Button url”
}
]
}

],
“presets”: [
{
“name”: “Button”,
“category”: “text”
}
]
}
{% endschema %}

@blueskies

create custom page and custom template

@jakubhalik Thank you for your reply. Its working now :blush:

This reply was not needed in the end and is edited

I noticed ur reply that it works now. Great! Happy about that! :slightly_smiling_face: