Easy way to mass update pages to be children of new master page?

Matt SonesMatt Sones 💎💎💎
edited October 15, 2019 in Questions
Love the new master page feature. I followed the tutorial and created a slick new header. I'd like to apply that to a bunch of pages.... maybe even everything in a certain module? Any easy way to do that, or do I have to update every one of the pages manually, one-by-one>

Comments

  • Matt SonesMatt Sones 💎💎💎
    edited February 10, 2017
    Wow, just read the last few lines on this.

    Yep... it's even worse than I thought.
  • J.J. 💎
    edited March 7, 2017
    Yeah, we hear you, Matt. Hopefully it's a one-time maintenance task for folks upgrading to Banzai. We love the concept of some sort of "adopt page" functionality, but we haven't implemented anything at this point. The tricky bit is sorting all your components into the correct Page Region. If you've only got one in your Master Page, it's straightforward, but if you've got more than one, that's a bit of a different story. We'll certainly be considering it for a future release (not necessarily a MAJOR release), but for today, that tutorial is the way to get it done.
  • Matt SonesMatt Sones 💎💎💎
    edited February 10, 2017
    Thanks, J. "Adopt page" would be awesome, but I can see how it would definitely be tricky.

    Off to copy&paste XML! :)


  • edited October 15, 2019
    I propose this work around with a "junction page" using a page include.
    Example:
    -Master page name: MasterHeader
    -Existing stand along page name: ContactDetail
    -Create a new child page named ContactDetailWithHeader that is a child of MasterHeader
    -add a page include for ContactDetail in your new ContactDetailWithHeader Page and pass in any URL Parameters needed to the ContactDetail Page include.

    There are some benefits to doing this over the standard master child page set up.
    1) it is a quick, easy, codeless upgrade of old pages.
    2) you will retain a headerless version of the stand alone pages for pop ups, drawers, and page includes
    3) using page includes can help with rendering speeds.
    4) once the initial set up is done, you don't have to ever edit the junction page. All edits are done to the master template and the stand alone page
    5) Best for Master pages that have only one child page region

    Drawbacks:
    1) each of your pages will now be a two page pair and you would have to update page overrides and redirects to the new junction page (one-time switch)
    2) you would need separate stand alone pages for each child page region on the master page which could get cumbersome if you are intermixing multiple master sections with multiple child sections.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!