Keep content when changing template

Jan's Avatar

Jan

05 Jan, 2011 09:57 PM

It would be nice that -at least the main- content isn't deleted when you choose another template for a page.

  1. 1 Posted by Wolf on 06 Jan, 2011 08:09 AM

    Wolf's Avatar

    +1, my idea about this was to reorder the old content into the new blocks with smart ordering, basically the old content is on the left side and the new content on the right side. A drag and drop interface would allow you to choose what the new content should be.

  2. Support Staff 2 Posted by tijs on 30 Jan, 2011 03:34 PM

    tijs's Avatar

    @Jan: the problem is that code can't tell which item is the main-content @Wolf: I like the idea, but this is something that isn't done in a few minutes. I will pass this to the usability people so they can think of the needed interaction.

  3. 3 Posted by Jan on 31 Jan, 2011 09:24 AM

    Jan's Avatar

    I'm working for some time with Silverstripe-cms. There the content-blocks are not numbered, but named. So it's clear when you change the template that the main content (which is $content there) remains main content in another theme.
    I'm not sure what happens with old contentblocks which are not used anymore in the new template.
    I understand it's not easy to implement my question when the concept of contentblocks is setup different. Except when you have clear agreements that main content is always content block 1.

  4. Support Staff 4 Posted by tijs on 29 Jul, 2011 06:24 PM

    tijs's Avatar

    @Jan: good news, we're working on this issue. We think we found a nice solution to this problem. All "blocks" will be saved when switching between templates, so you don't lose any data. If the block can't be placed in the new template you'll be able to place it in the new template yourself.
    But as you stated yourself, it isn't something that will be done in a few minutes.

  5. Support Staff 5 Posted by tijs on 18 Sep, 2011 03:22 PM

    tijs's Avatar
  6. tijs closed this discussion on 18 Sep, 2011 03:22 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac