Sean,

AllModulesNodeOperation will apply an operation on modules node, ie config:/modules/core, /modules/adminCentral and so on. What you meant was probably AllChildrenNodesOperation, but here to, you'll be stuck because it does not recurse. What you'll probably need is to implement an implementation AbstractRepositoryTask which uses info.magnolia.cms.util.ContentUtil.visit() (with a ContentFilter that does *not* exclude the MetaData node, since this is where the paragraph type is stored)

hth,

-g


On Apr 22, 2008, at 17:20 , McMains, Sean A wrote:

We have a page with several hundred links on it. We need to update these existing links (which used to rely on the sample module before we stopped including it in our build) to be a new type of paragraph, simply by changing
the template property for that paragraph from "link" to "texasLink".

We've done this with a script run through a JSP page before without any trouble, and I can do that again if need be. However, since we've been using the Delta mechanism when we upgrade our module, it has made our lives much easier when we go to deploy a new version. I've thus been trying to figure
out how to accomplish the same thing from there.

I could write a new Task from scratch to do this sort of thing, but wanted to see if it might be accomplished with the existing ones. It looks like
some combination of the AllModulesNodeOperation and
CheckAndModifyPropertyValueTask might do the trick, but I've not been able
to figure out how to wire them together.

Thanks in advance for any help,

Sean


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to