Collections icon indicating copy to clipboard operation
Collections copied to clipboard

Feature Request - Automatically add a child resource to a resource group

Open pepebe opened this issue 10 years ago • 4 comments

Not sure, if this is already in the core, but it would be wonderful to have a setting for collections to add a child resource automatically to one or more resource groups.

pepebe avatar Feb 11 '15 16:02 pepebe

http://modx.com/extras/package/defaultresourcegroups

theboxer avatar Feb 11 '15 16:02 theboxer

Hi,

you have a black belt in closing my issues ;)

Thanks for the link, but this is not the kind of solution I'm looking for. As far as I can see this plugin moves resources into a resource group depending on the context the resource was created in.

What I have in mind, moves a resource into one or more resource groups depending on the template of the parent resource.

Doing this with a plugin should be piece of cake, but I think that setting it for child resources in Collections would be a nice feature.

I don't have much experience with using resource groups, so I might be something terribly wrong about having resources with different resource groups in a single context. If this is the case, I would appreciate some enlightenment on this topic. I don't mind looking this up myself. Just tell me to do my homework.

Cheers

P.S.: For anyone with similar problems, there is a MODx plugin that can be easily modified to fit ones need: InheritResourceGroup - https://github.com/travisbotello/InheritResourceGroup. This one copies the resource group of the parent resource to a child.

pepebe avatar Feb 11 '15 16:02 pepebe

Will look at it ;)

theboxer avatar Feb 11 '15 16:02 theboxer

You have two black belts in replying to our issues. Thanks for listening!

pepebe avatar Feb 11 '15 17:02 pepebe