Duplicating page layouts
Hi. Is there a way to duplicate page layouts? For example: I created a Custom Page and want to use it as a template to create several more formatted like it.
-
- · PavelS
- ·
Hello, I guess I don't understand you, are we talking about (Pages-Add New Page)? How do you want to make several of the same ones at once?
-
- · Gabe
- ·
I'd like to make one page.... selecting all the blocks and settings of my preference. Then use that as a template for making other pages - which would have all the same blocks, and same content. Then I can just edit the core content in one or two blocks, give the page a different URI and now I have 2 pages from a single template.
This is primarily useful in the initial design of a site - to easily attain a unified appearance as users navigate from page to page. I would then have a navigation menu that would link to several custom pages that all look alike, but feature different content an HTML block (as an example).
-
- · PavelS
-
·
In reply to Gabe
G
- ·
I understand you now, you want to make your job easier...Unfortunately, in the time I've had UNA, I haven't come across such a feature, but maybe I'm wrong.
-
-
- · PavelS
-
·
In reply to Gabe
G
- ·
ok, that's what this discussions is for so that users can ask questions when they need some info..Don't be afraid to ask :)
-
-
·
Andrey Yasko
- ·
The feature makes good sense and will be scheduled. From what I understand you need to be able to save pages as “templates” and then reuse them when creating new pages. We have a somewhat similar pattern in Permissions builder where a new level can be created with same set of permissions as another level as a starting point. Pages are more complex because of multiple attributes that must be unique to a page and effectively copying them would require checking for those attributes and iterating them safely (for example, URL can be /page/start and when copying we need to change it to something like /page/start-12345).
Does this sound right? Will create a ticket one this discussion is resolved.
-
·
Andrey Yasko
-
- · Gabe
- ·
@Andrey Yasko I think you've captured the idea correctly. Ideally one would be able to use any page as the source/template from which to make new pages. However, it may be easier/cleaner implementation from your side to build the workflow like this:
Within /studio/builder_page.php you'd have a new Page type on the left:
- System Pages (existing)
- Custom Pages (existing)
- Page Templates (NEW)
Then, within Custom Pages you'd have New Page From Template (in addition to the existing Add New Page button).
In this workflow, the user would be required to create a template first, then create new pages from it. This may allow you to mimic or parallel the block of code you have now that creates the default new page. In other words, you're already using a bare-bones template when I invoke Add New Page.
I'd like to close this thread by saying how impressed I have been with responses to my early questions in this forum. I look forward to being able to contribute some day as I learn more. Thanks!