Jump to content

move or copy content between pages


MarionRaven
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...