Jump to content

Replacing one field with another and retaining/transferring the data - possible?


Rob
 Share

Recommended Posts

I'm sure this sounds like a stupid question, but I'd like to replace a number of fields that make up part of a repeater with different fields that are of the same type, but without losing the data they contain.

To put it another another way, I want to swap field X for field Y on a template, and then for each page that uses that template, the data that was in field X be copied into field Y.

I feel fairly confident that this is going to be a complete pain or simply not possible!

Link to comment
Share on other sites

What field type are they? X and Y?

I don't see any problems doing so what you're saying. Add the fields to the repeater, loop the repeater and assign values from one to the other field and save them.

Link to comment
Share on other sites

Ah....I think I just had a lightbulb moment.

So you're saying that the easiest thing would be to iterate the repeater pages (under admin) therefore avoiding the issue of having to iterate the parent pages themselves filtered by those using the repeater.

I'll give it a try!

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