MarionRaven Posted August 20, 2012 Posted August 20, 2012 I wonder, how you can enable a client to copy or move content from one page to another. I'm aware, that template constraints my be a hindrance, since what is a valid element on the source page may not be valid on the target page. Is this simply a task, which is not in concord with the spirit of PW?
ryan Posted August 21, 2012 Posted August 21, 2012 Are you talking about copying/cloning an entire page? If so, install the ProcessPageClone module, which is included with the core (just click install from the Modules screen. But if you are talking about cutting/copying a block of text and putting it somewhere else, then of course nothing can beat your browser's built-in copy/paste.
MarionRaven Posted August 21, 2012 Author Posted August 21, 2012 I agree with both your claims. My case is just between. As an example: I'm using a repeater field for an accordion (perhaps 20 items). How can I shift the accordion (and only the accordion) to another page?
Soma Posted August 21, 2012 Posted August 21, 2012 I agree with both your claims. My case is just between. As an example: I'm using a repeater field for an accordion (perhaps 20 items). How can I shift the accordion (and only the accordion) to another page? Only way: API, or module using API
slkwrm Posted August 22, 2012 Posted August 22, 2012 Are you sure you really need to duplicate your content? Maybe there's a better way to solve this task.
ryan Posted August 22, 2012 Posted August 22, 2012 My case is just between. As an example: I'm using a repeater field for an accordion (perhaps 20 items).How can I shift the accordion (and only the accordion) to another page? If you clone the page with the repeater, it should make a copy of the repeater items as well. But if you need to take that repeater and literally put it on another page, then ask yourself: is this a one-time thing, or something I need to do multiple times? If multiple times, then consider adding a page reference field so that one page can opt to choose the repeaters from another, rather than maintaining duplicate entries across pages. But if it's just a one-time thing, then I don't have an easy answer outside of using the API to do it.
MarionRaven Posted August 22, 2012 Author Posted August 22, 2012 I think the answers sum up to: If you need to shift content around, then it should be organized as pages, which can even have templates attached. My understanding therefore is, that I really tried it the wrong way, since repeaters are not exactly the same as page references.
ryan Posted August 23, 2012 Posted August 23, 2012 Repeaters are still pages, but I agree with what you say: content that needs to be moved around a lot will be more accessible outside of a repeater.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now