Traversing the folders in cascade

Maurice's Avatar

Maurice

11 Sep, 2015 04:26 PM

Hi, I am currently trying to change all the contentType for all the pages, but so far I can only do it by manually inputting the link
eg. test/test2/test_3. I am having trouble on just traversing through the folder so I can check if it is a PAGE or a FILE. Thank you! Also another thing, is it safe to just change the contentTypeId to change the content type?

Showing page 2 out of 2. View the first page

  1. 31 Posted by Ryan Griffith on 29 Sep, 2015 07:54 PM

    Ryan Griffith's Avatar

    Hi Maurice,

    In order to go from Global to Sites, you would need to either use the Site Migration Wizard or recreate the assets within a new Site. Once the Site has been created you should be able to export it as per Wing's request.

    Please let me know if you have any questions.

    Thanks!

  2. 32 Posted by Maurice on 30 Sep, 2015 04:55 PM

    Maurice's Avatar

    Thank you! Working on migrating from global to site. Will let you know about the result.

  3. 33 Posted by Ryan Griffith on 30 Sep, 2015 06:14 PM

    Ryan Griffith's Avatar

    Not a problem at all, Maurice, glad to hear you are working on migrating away from Global.

    Please let me know if you have any questions or issues during the migration.

    Thanks!

  4. 34 Posted by Maurice on 09 Oct, 2015 04:09 PM

    Maurice's Avatar

    Hello Dr. Wing, I finished moving from global to site yet the same problem occurs when trying to run the function $cascade->getAsset for the page.

  5. 35 Posted by Maurice on 09 Oct, 2015 04:49 PM

    Maurice's Avatar

    Well the problem I see now is that I dont have a DataDefinition ID and Path.

  6. 36 Posted by Maurice on 09 Oct, 2015 05:31 PM

    Maurice's Avatar

    definitionId and definitionPath*

  7. 37 Posted by Wing Ming Chan on 10 Oct, 2015 12:39 AM

    Wing Ming Chan's Avatar

    Maurice,

    How do you set up your content types? You are supposed to use a content type to tie three things together: a configuration set, a metadata set, and a data definition. Are you still using XHTML pages instead of pages with data definitions?

    Wing

  8. 38 Posted by Maurice on 13 Oct, 2015 03:16 PM

    Maurice's Avatar

    Hello Dr. Wing,
    Yes I do have the configuration set, metadata set, and data definition all tied up in a content type. Sorry for the misunderstanding, I meant the Page has a null definitionId and definitionPath.

  9. 39 Posted by Ryan Griffith on 13 Oct, 2015 04:08 PM

    Ryan Griffith's Avatar

    Hi,

    Just wanted to chime in here. The definitionId and definitionPath properties at the page level is more of a legacy thing for the Global area, for pages that do not use a Content Type. Instead, you would want to use the page's contentTypeId and read the page's Content Type for that information.

    Please let me know if you have any questions.

    Thanks!

  10. Ryan Griffith closed this discussion on 02 Nov, 2015 08:21 PM.

  11. Wing Ming Chan re-opened this discussion on 04 Nov, 2015 08:44 PM

  12. 40 Posted by Wing Ming Chan on 04 Nov, 2015 08:44 PM

    Wing Ming Chan's Avatar

    Hi Cascade Web Service Developers,

    Will you be interested in a 3-part tutorial on Google Hangout? I am going to give an introduction to my library and show how to perform simple tasks like creating and editing assets. Details can be found on Online Tutorials.

    If you are interested, send me an email. You can find my email address on Web Services: Encapsulation, Reusability, and Simplicity.

    Wing

  13. Ryan Griffith closed this discussion on 04 Nov, 2015 09:19 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