Comments (6)
I have been asked about this many times, as in Pixel there are multiple Home pages, and in many cases, customers intend to use alternative home pages. I was about to provide an option to facilitate the replacement, instead of time-consuming recommended copy/paste procedure.
Much obliged for this feature!
from whale_c5_cheat_sheet.
For which concrete5 version?
from whale_c5_cheat_sheet.
@mlocati the latest?
from whale_c5_cheat_sheet.
Since concrete5 8.5.0 you can use the page cloner class.
For example, when you go to the sitemap page, drag a page over another one, and choose the Copy Page / Replace "Page 1" with a copy of "Page 2"
option, here's the code that's executed: https://github.com/concrete5/concrete5/blob/8.5.1/concrete/controllers/dialog/page/drag_request.php#L248-L267
(you can use xdebug to see the actual values of the variables)
from whale_c5_cheat_sheet.
Fantastic! I haven't noticed this new feature.
from whale_c5_cheat_sheet.
The page cloner was introduced by concretecms/concretecms#7207 (and fixed by a couple of other pull requests).
Maybe it was given less emphasis than it deserved: no notes in the 8.5.0 announcement and just a bare "Added the ability to replace a page with another page" on the release notes, where it was somehow hidden because of the ton of changes in 8.5.0...
from whale_c5_cheat_sheet.
Related Issues (13)
- app() global helper function HOT 2
- Japanese branch HOT 2
- Moving this repository to concrete5-community? HOT 2
- Logging to a new channel HOT 1
- Item Lists and Pagination
- Enable block content indexing and searching
- Rich Text Editor HOT 1
- Change $page->isSystemPage() for $page->isAdminArea() HOT 1
- [suggestion] How about adding a section for v9 specific stuff? HOT 1
- General attribute checkboxes when adding attributes HOT 3
- use getUserGroupObjects() instead of getUserGroups() HOT 1
- Superglobals section HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whale_c5_cheat_sheet.