tag:help-archives.hannonhill.com,2010-02-09:/discussions/web-services/711-bulk-change-content-type-gives-error-having-to-do-with-configurationCascade CMS: Discussion 2014-03-25T20:54:24Ztag:help-archives.hannonhill.com,2010-02-09:Comment/265878882013-04-26T18:42:31Z2013-04-26T18:42:31Zbulk change "Content type" gives error having to do with "Configuration" <div><p>btw, it's an easy workaround to set page->pageConfigurations
to null. Then the new Content type populates teh Config set. Works
for me.</p></div>christiancotag:help-archives.hannonhill.com,2010-02-09:Comment/265878882013-04-26T19:14:56Z2013-04-26T19:14:56Zbulk change "Content type" gives error having to do with "Configuration" <div><p>Hm, so if I'm following correctly, you're nulling out/removing
the <em>pageConfigurations</em> that is returned from the read
operation?</p>
<p>Let me check with the developers to see if I can get some
additional information, but I'm wondering if this is a result of
some legacy behavior where going from Global to Sites drops the
ability to modify Configuration Sets at the Page level, but the
data is still returned through Web Services.</p>
<p>What version of Cascade are you experiencing this behavior
with?</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265878882013-04-26T20:44:30Z2013-04-26T20:44:30Zbulk change "Content type" gives error having to do with "Configuration" <div><p>yes I'm nulling out pageConfigurations... oi, ok i realize I'm
assuming that in order to save operation on a page that I have to
use all the page returned from a read so that I don't lose data.
Are you saying there's some minimum I can use to perform this edit?
that would be great as I'm operating on thousands of pages, so if
possible I'd like to avoid the chance of deleting content.</p>
<p>btw, nulling out the Config section works.</p></div>christiancotag:help-archives.hannonhill.com,2010-02-09:Comment/265878882013-04-26T21:09:40Z2013-04-26T21:09:40Zbulk change "Content type" gives error having to do with "Configuration" <div><p>hmm, when I only use the minimum info required to edit a page
without throwing a WS error, the page content gets deleted. That is
why I'm using a read op, and then saving that object with some
changes. Imagine deleting all the content on all the hundreds of
sites in my system. it's too bad tho that there isn't an edit mode
that does not do this.</p>
<p>BTW, just curious, is there a way to revert to a past version of
a page though WS? Looked around but found nothing on this.</p></div>christiancotag:help-archives.hannonhill.com,2010-02-09:Comment/265878882013-04-29T12:56:32Z2013-04-29T12:56:32Zbulk change "Content type" gives error having to do with "Configuration" <div><p>Hi Christian,</p>
<p>Thank you for the additional information.</p>
<p>I am going to speak with the developers to see if I can get back
to you with some additional information regarding nulling out the
Configuration portion of the read response. In the meantime, it
sounds like nulling out the Configuration would be your
workaround/solution.</p>
<blockquote>
<p>hmm, when I only use the minimum info required to edit a page
without throwing a WS error, the page content gets deleted. That is
why I'm using a read op, and then saving that object with some
changes.</p>
</blockquote>
<p>You were doing this correctly, where you want to update the
elements that need to change and keep the other portions intact
(other than the Configuration since that seems to be causing
issues); at least this is the way I have always seen/done updates
on assets. Like you said there is a minimum, but you do risk the
chance of nulling out/clearing content somewhere.</p>
<blockquote>
<p>is there a way to revert to a past version of a page though WS?
Looked around but found nothing on this.</p>
</blockquote>
<p>I am pretty sure this functionality is not currently available
through Web Services. I would suggest posting something on the
<a href="http://ideas.hannonhill.com/">Idea Exchange</a> if you
feel this would be a good feature to implement in a future release
of Cascade.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265878882013-04-30T13:30:13Z2013-04-30T13:30:13Zbulk change "Content type" gives error having to do with "Configuration" <div><p>Hi Christian,</p>
<p>After speaking with on of the developers, I was able to clarify
the behavior you are experiencing regarding the Configurations.</p>
<p>Through the UI, when you change a Page's Content Type to one
with a different Configuration Set, there will be different Page
Configurations available; the same concept applies to Web Services
as well. So, if you submit a new Content Type that uses a new
Configuration Set, but still provide the old old Configuration IDs,
that is going to be invalid and throw the error you mentioned
above.</p>
<p>If you change the Content Type to one that uses a similar
Configuration Set (ie has Configurations and Regions with the same
names) and want to preserve the Block and Format assignments at the
Page level, then you could null out the Page Configuration IDs and
Page Region IDs. At that time, Cascade will locate the new Page
Configurations and new Page Regions by name. However, if you do not
want to preserve the Page level Block and Format assignments, then
you should null out the Page Configurations, which you have
done.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265878882013-04-30T16:05:17Z2013-04-30T16:05:17Zbulk change "Content type" gives error having to do with "Configuration" <div><p>Ryan,<br>
Yeah I figured as much, thanks for the confirmation.</p>
<p>Been thinking of putting up an idea in the ideas list - to me,
it makes a lot of sense for their to be a second kind of edit
operation in WS. Currently when I want to make a small change
somewhere in the page, I have to save the entire page contents.
That pretty much means a read and then a write.</p>
<p>It would be great if there was a type of edit operation that
allowed a small change to one part of an asset, so that I could for
example create an object that contained only the edits to the page
that I wanted, and save it with the page id and type, and the rest
of the page data would remain.</p>
<p>does that make sense? I'd like to get your opinion.</p>
<p>thanks</p></div>christiancotag:help-archives.hannonhill.com,2010-02-09:Comment/265878882013-04-30T16:47:30Z2013-04-30T16:47:30Zbulk change "Content type" gives error having to do with "Configuration" <div><p>Hi Christian,</p>
<p>Yes that does make sense. A suggestion on the Idea Exchange is a
great idea, I am sure others (including myself and one of our
developers) have thought the same thing.</p>
<p>This would also allow us to track and see how popular of an idea
it is to see if it would be worthwhile to implement in a future
release of Cascade.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Have a great day!</p></div>Ryan Griffith