Revert Page to Default Design

Permalink
Dear all

First, I would like to thank you for the very cool CMS. I started using it just days ago and I am very happy with the results.

I have one question though, which I need to find an answer to before I can start using the CMS. I googled for a answer and searched locally, but sadly could not find an answer with the keywords I've been using.

I have a page very similar to the default Elemental design set-up. I am using portfolio project types. Now I have edited some project pages. My first question is, is there a way to "reverse" or reset them to the default template? I know that I can go back in history, but since the template changed since I created the page, that won't help. The second question is if there is a way that pages are transferred from an "old" template into a new template. I tried copying the new template and give it a new name. But If I do that, the page still has the old form of the template.

My workflow was as follows
> Set Up Homepage
> Create Portfolio Project Page
> Edit 1 Portfolio Project Pages in Page Edit
> Update Portfollio Project Page Template
> Copy Protfolio Projet Page to create new Template
> Changing Page Type of Pages to new Template
(I would expect the new pages to show the new design but they seem to be stuck to their initial version.)

You can see examples on:

(Created with the original template, design changed to new, copied template)
http://wry.ch/dev5p8/concrete5-8.3.2/index.php/portfolio/tenner-ren...
(Created with new template (note side bar))
http://wry.ch/dev5p8/concrete5-8.3.2/index.php/portfolio/massivholz...

Any help would be apreciated.

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi wrych,

Page types represent a type of page (stored in the database) and page templates are PHP files.

The two examples you provided use different page types and the same page template (Left Sidebar).
-http://wry.ch/dev5p8/concrete5-8.3.2/index.php/portfolio/tenner-ren... - This page uses the "Projekt v1" page type and "Left Sidebar" page template.
-http://wry.ch/dev5p8/concrete5-8.3.2/index.php/portfolio/massivholz... - This page uses the "Portfolio Projekt" page type and "Left Sidebar" page template.
wrych replied on at Permalink Reply 1 Attachment
Hi MrkDilkington

Thank you for your answer!

I understand and seem to have miss used some of the common terms. But your comment was very useful in the way that it allows me to illustrate the issue more precise now. I set the page type of both of those pages to "Portfolio Projekt*". The page for the benches (http://wry.ch/dev5p8/concrete5-8.3.2/index.php/portfolio/massivholz-baenke) has the same design and blocks* as the template (see attached screenshot, updated part marked in red). The sledge page (http://wry.ch/dev5p8/concrete5-8.3.2/index.php/portfolio/tenner-renner) is based on the same page type ("Portfolio Projekt"). However, if you have a look at the left column below the slide show you will note that some blocks** are missing. I created this specific page (sledge) before adapting the page type "Portfolio Projekt" to my requirements. Now my question would be if there is a way to update, reset or revert (I don't know which word applies best here) the sledge page so it would look exactly like the page type (Portfolio Projekt). I do NOT mind losing "local" changes to the individual "Portfolio Projekt" page (i.e. sledge).

I am aware that I could achieve that effect by just deleting the page an recreating it with the same values. However, this seems to be rather cumbersome if one wants to have a homepage that scales. Right now I could recreate all pages without much hassle. However, once the site has 30 plus products it seems highly inefficient to have to delete and recreate every page or add a field on every pages manually if I would like to add a field (e.g. page attribute) on every "Porfolio Projekt" page. Please note that I have only started working with concrete5 a few days ago and that I might be missing a very basic step here.

Best regards

Andy

* Projekt is the German translation for project.
** I refer to block when I am talking about elements that I can add to pages. For example an image, a page attribute reference etc.
MrKDilkington replied on at Permalink Reply
MrKDilkington
@wrych

If I understand your question correctly, there is currently no way to update existing pages by updating the page type.

When you update a page type, it will not affect existing pages. Pages created after the page type was updated will reflect the changes.

There is a GitHub pull request to add this feature.
"Fix composer publish to child pages #6207"
https://github.com/concrete5/concrete5/pull/6207...

I recommend leaving a thumbsup and a comment of encouragement on the pull request.
wrych replied on at Permalink Reply
Dear MrKDilkington

Thank you for the answer. I suppose the features of the pull request would meet my requirements exactly. I left feedback that I would be thankful for such functionality.

I have started asking myself how other people handled situations similar to mine up until now? Did everybody know all they wanted on the product pages before they added products or did they use custom designed code to cover similar cases?

Well, thank you again for the feedback. I highly appreciate it. Best regards

Andy