CMS Development

doroness
Member

Page template options

SOLVE

I have a HUBL based page template. I need to add some options to is, so that the content editor will be able to change the design and layout of the page, e.g - set BG images for sections or toggle sections on and of.

 

What is the best way to achieve that? 

 

Thanks!

0 Upvotes
1 Accepted solution
Chris-M
Solution
Top Contributor

Page template options

SOLVE

Hello @doroness,

 

The best way for me is: 

for the parts where you want to give the editor options for changing elements.

You need to embed a module or build one, with your desired options.

You have to embed the module with the "template usage" snipped (in your module on the buttom) 

module.PNG

Just paste the code in your HUBL/HTML template.

 

So now the editor can use the default page edit; They see the module in the list and can edit it.

 

If the template has a bit more freedom, you could make use of Drag and Drop Areas:

https://developers.hubspot.com/docs/cms/hubl/tags/dnd-areas

 

- Chris

View solution in original post

0 Upvotes
1 Reply 1
Chris-M
Solution
Top Contributor

Page template options

SOLVE

Hello @doroness,

 

The best way for me is: 

for the parts where you want to give the editor options for changing elements.

You need to embed a module or build one, with your desired options.

You have to embed the module with the "template usage" snipped (in your module on the buttom) 

module.PNG

Just paste the code in your HUBL/HTML template.

 

So now the editor can use the default page edit; They see the module in the list and can edit it.

 

If the template has a bit more freedom, you could make use of Drag and Drop Areas:

https://developers.hubspot.com/docs/cms/hubl/tags/dnd-areas

 

- Chris

0 Upvotes