Two pages use the same template but want different banner

Kayla Johnson asked on August 18, 2014 21:57

I have three pages all on the same level that are using the same template. The nesting is only taking from the root level. Because I also have two text areas on each page and if I changed it on one, it changed it on all. And changing that nesting setting fixed that but it's still happening that if I change the banner on one page, it changes the banner on all pages. I want three pages to use this template but have different banners on each. I tried putting the banner web part in the template and just creating an empty zone and putting the web part in later for the banner on each page. Both methods have this issue.

Correct Answer

Debayo Graham answered on August 18, 2014 22:00

Go to properties then templates and create an adhoc template. When this is done you can make changes to the adhoc template without changing all page templates

0 votesVote for this answer Unmark Correct answer

Recent Answers


Ilesh Mistry answered on August 19, 2014 08:42

Hello

I am not exactly sure how you have your pages set up, but I have a few options that might help.

Kentico Widgets One option is to use Kentico Widgets.

This way you can use the same template, but only have the banner as a widget. This will enable you to have different pages with different banners.

Kentico Document Types Another option, again depends how you have set things up, is to use Kentico Document Types.

This would mean you can again use the same template, but have a banner document type underneath the page level and you can pick this out on to the page.

Hope this help.

Thanks

Ilesh Mistry

0 votesVote for this answer Mark as a Correct answer

Kayla Johnson answered on August 19, 2014 19:18

The kentico widget still had the same issue.

The ad-hoc template thing worked. Thanks. Doesn't that make each page have a separate template though? Which is what I was trying to avoid with making the overarching template..

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 19, 2014 22:29

I'd suggest as Ilesh did and use a doc type and a repeater. Creating ad-hoc templates is an option, although should be a last resort similar to using a single page template for your whole site with an editable text webpart on it. That defeats the purpose of a dynamic website.

0 votesVote for this answer Mark as a Correct answer

Marcel Guldemond answered on May 4, 2016 17:30 (last edited on May 4, 2016 17:50)

I have a similar problem, but for some reason, if I create an ad-hoc template, all the other pages using the same template also get the same ad-hoc template. Our structure is like this:

  • Project Index (menu item page type with repeater)
    • project 1 (custom page type)
    • project 2
    • ...
    • project n

The problem is that the project index and each project page (the client has already created 100s of them) are using the same template. We need to get the Project Index page to have a separate template.

Do I just create a new Project Index page from scratch with its own template, and then move all the project pages over into that one?

Update so I've just discovered that all of the pages that we're having trouble with are set to "Inherit from parent" under the Template tab. Is there any way to change this setting in bulk, instead of having to change it on 100s of individual pages?

Thanks

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.