Converting configuration set pages to

Myers, Zedric's Avatar

Myers, Zedric

04 Dec, 2015 06:13 PM

Hi,

We are currently doing a large redesign for a client in Cascade7.12.5.

Is there a web service code you all can provide that updates pages hooked to a specific configuration and change it to a specific content type instead?

Currently the client has over 14,000 pages and doesn't want to have to change every page manually to a content type hookup.

We have also checked the discussion board, but couldn't find anything specific to it, so any code or help would be great.

Thanks,

Zedric Myers
UI Web Developer
Beacon Technologies, Inc.
Direct: 336.232.5683 | Mobile: 336.978.3546

website<http://www.beacontechnologies.com/> | blog<http://blog.beacontechnologies.com/> | facebook<https://www.facebook.com/beacontechnologies> | twitter<https://twitter.com/beacontec>

  1. 1 Posted by Ryan Griffith on 04 Dec, 2015 07:58 PM

    Ryan Griffith's Avatar

    Hi Zedric,

    Unfortunately, we do not have a specific script to point you to; however, I can summarize what you will want to do:

    • Use the listSubscribers operation to list the subscribers of the Configuration Set
    • Loop over the subscribers and check for type page
    • Perform a read of the asset in each result
    • Clear out the Configuration Set, Data Definition, and Metadata Set entries in the read result
    • Add the Content Type's ID to the read result
    • Perform an edit operation using the updated read result

    Please let me know if you have any questions.

    Thanks!

  2. 2 Posted by Myers, Zedric on 04 Dec, 2015 08:15 PM

    Myers, Zedric's Avatar

    Thanks Ryan, we appreciate it. Will take a look at these things and if any questions come up, we can let you know.

    Thanks,

    Zed

  3. 3 Posted by Ryan Griffith on 04 Dec, 2015 08:20 PM

    Ryan Griffith's Avatar

    Not a problem at all, Zed. Keep me posted on how things go with the conversion.

    In the meantime, let me go ahead and make this public and move it to the Web Services section. Wing may be able to follow up with a simpler solution using his library.

    Please let me know if you have any questions.

    Thanks!

  4. 4 Posted by Myers, Zedric on 04 Dec, 2015 08:27 PM

    Myers, Zedric's Avatar

    We sure will. That sounds good on moving it to the Web Services section.

  5. 5 Posted by Wing Ming Chan on 04 Dec, 2015 08:37 PM

    Wing Ming Chan's Avatar

    Hi Zed,

    Switching content type is never a simple matter. If not planned and done carefully, most of the data on a page will be lost.

    Start with Switching Content Type and see if the code makes sense to you. After reading the page, if you still think you want to proceed, let me know. We will then talk about page structure, data definition, blocks and formats, etc.

    If you want to try my library, start with Basic Setup. You might also want to watch An Introduction to Dr. Scriptlove's Web Services Library: Part 1 of 3 and check out Online Tutorials.

    Wing

  6. 6 Posted by Myers, Zedric on 04 Dec, 2015 08:46 PM

    Myers, Zedric's Avatar

    Thanks Wing,

    I agree with that.

    We would be setting up a plan to go through all existing configuration setups, mapping the new setup for every block, format, data definition and Template regions to the new content types, so that the content stays intact.

    We actually do that on all of our redesign sites, so we do have experience there. It’s now throwing in this addition of changing them to the content types from their old setup.

    We will review this setup and let you know. Really appreciate this information. Will be in touch.

    Thanks,

    Zed

  7. 7 Posted by Myers, Zedric on 09 Dec, 2015 01:57 PM

    Myers, Zedric's Avatar

    Hi Ryan,

    Just as a quick follow up, we will be trying this process after the client approves some other preliminary items. It may be in the next couple of months, but will keep you all posted.

    Thanks,

    Zed

  8. Support Staff 8 Posted by Tim on 09 Dec, 2015 02:00 PM

    Tim's Avatar

    Hi Zed,

    Ryan is out of the office at the moment, but we appreciate the update! Just let us know how things go when you get around to working on this.

    Take care!

  9. Tim closed this discussion on 09 Dec, 2015 02:00 PM.

  10. Myers, Zedric re-opened this discussion on 09 Dec, 2015 02:01 PM

  11. 9 Posted by Myers, Zedric on 09 Dec, 2015 02:01 PM

    Myers, Zedric's Avatar

    Hi Wing,

    Just as a quick follow up, we will be trying this process after the client approves some other preliminary items. It may be in the next couple of months, but will keep you all posted.

    Thanks,

    Zed

  12. 10 Posted by Myers, Zedric on 09 Dec, 2015 02:03 PM

    Myers, Zedric's Avatar

    Thanks Tim, we appreciate the update. Will definitely do that. Take care, too!

  13. 11 Posted by Wing Ming Chan on 09 Dec, 2015 02:08 PM

    Wing Ming Chan's Avatar

    Zed,

    Just want to keep you in the loop. My online tutorials will start next Monday. It will take a long while, if it ever does, before we can tackle content types. But it would not hurt to join us by watching.

    Wing

  14. 12 Posted by Myers, Zedric on 09 Dec, 2015 02:12 PM

    Myers, Zedric's Avatar

    Thanks Wing, we appreciate it.

    If it involves converting configuration driven pages to convert to content types dynamically with a web service, we can do that. We may have someone else on the team to take a look at the tutorial that will do the actual work. We understand the general setup for content types and usage.

    Zed

  15. Ryan Griffith closed this discussion on 22 Dec, 2015 08:05 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac