Re: custom page template

Solved

How can I prevent content changes affecting all pages with the same template?

zyla999
Shopify Partner
13 0 6

Hello, I have created a new page template and I tried to built a few pages based on that template. I have added some sections, but every time I add content to those sections the content changes on all of the pages assigned to that template. 

Do I need a separate template for each page?  

Accepted Solution (1)

suyash1
Shopify Partner
9545 1193 1531

This is an accepted solution.

@zyla999 - yes you either need separate templates for each page or you need a page builder app like pagefly

Support me | To build shopify pages use pagefly | You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.

View solution in original post

Replies 9 (9)

suyash1
Shopify Partner
9545 1193 1531

This is an accepted solution.

@zyla999 - yes you either need separate templates for each page or you need a page builder app like pagefly

Support me | To build shopify pages use pagefly | You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
zyla999
Shopify Partner
13 0 6

Thank you for your reply, just to clarify. What is the purpose of templates for Pages in Shopify?

suyash1
Shopify Partner
9545 1193 1531

@zyla999 - templates are the foundation og pages, the content you add to pages is shown as per the coding in template and shopify uses shared template approach

Support me | To build shopify pages use pagefly | You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
zyla999
Shopify Partner
13 0 6

Shopify uses shared template approach, but I can not share a template between 2 pages?

suyash1
Shopify Partner
9545 1193 1531

@zyla999 - it is shared between not only 2 but all pages, that is why you are facing issue

but every time I add content to those sections the content changes on all of the pages assigned to that template. 
Support me | To build shopify pages use pagefly | You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
zyla999
Shopify Partner
13 0 6

So that I am 100% clear on this ... Templates work differently for Collections, Products and Blogs ... As I can base those pages on on same respective template aka content is separate from design. 

For Pages the content will be copied from page to page, therefore each Page needs its own template?

suyash1
Shopify Partner
9545 1193 1531

@zyla999 - yes, if you want separate content on separate pages then need different templates else you will need to use some page builder app like pagefly

Support me | To build shopify pages use pagefly | You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Natural_Native
Visitor
1 0 0

I am having this issue also and am unsure how to make a separate template for each page

suyash1
Shopify Partner
9545 1193 1531

@Natural_Native - it will need knowledge of template structure and liquid coding, are you familiar with it?

Support me | To build shopify pages use pagefly | You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.