Traversing the folders in cascade
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
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
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
31 Posted by Ryan Griffith on 29 Sep, 2015 07:54 PM
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!
32 Posted by Maurice on 30 Sep, 2015 04:55 PM
Thank you! Working on migrating from global to site. Will let you know about the result.
33 Posted by Ryan Griffith on 30 Sep, 2015 06:14 PM
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!
34 Posted by Maurice on 09 Oct, 2015 04:09 PM
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.
35 Posted by Maurice on 09 Oct, 2015 04:49 PM
Well the problem I see now is that I dont have a DataDefinition ID and Path.
36 Posted by Maurice on 09 Oct, 2015 05:31 PM
definitionId and definitionPath*
37 Posted by Wing Ming Chan on 10 Oct, 2015 12:39 AM
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
38 Posted by Maurice on 13 Oct, 2015 03:16 PM
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.
39 Posted by Ryan Griffith on 13 Oct, 2015 04:08 PM
Hi,
Just wanted to chime in here. The
definitionId
anddefinitionPath
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'scontentTypeId
and read the page's Content Type for that information.Please let me know if you have any questions.
Thanks!
Ryan Griffith closed this discussion on 02 Nov, 2015 08:21 PM.
Wing Ming Chan re-opened this discussion on 04 Nov, 2015 08:44 PM
40 Posted by Wing Ming Chan on 04 Nov, 2015 08:44 PM
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
Ryan Griffith closed this discussion on 04 Nov, 2015 09:19 PM.