goldsky / GridClassKey

A custom class key for MODX Revolution's Manager to hide child resources inside container's grid.
8 stars 7 forks source link

Allow setting of resource type for children #34

Closed isaacniebeling closed 10 years ago

isaacniebeling commented 10 years ago

Right now, you can choose a specific template for children. It'd be great if you could also specify a class key -- I'm using ModMore's MoreGallery extra, and I'd love to be able to have this module automatically create any children as Galleries.

adamwintle commented 10 years ago

You can achieve this by using the Form Customiser, first setup a new rule for Create Resource and select your template, then set class_key = mgResource and it will automatically be changed to the MoreGallery.

isaacniebeling commented 10 years ago

Yeah, I know. Was hoping to do it in the settings -- in large part because the form customization is so cumbersome. Not only do all your settings need to be done for create, but they also need to be set up for update. :p In any case, that's what I ended up doing as an interim (and possibly long-term) solution.

adamwintle commented 10 years ago

Yeah the Form Customization system is very cumbersome! But the functionality is there so I'm not sure if this would be worth implementing. But down to @goldsky at the end of the day.

I recently started a Trello board for MODX Projects and Initiatives, it might be better to raise the Create/Update problem with Form Customizer to see if someone wants to discuss the issue: https://trello.com/b/0myRdhw4/modx-projects-and-initiatives

goldsky commented 10 years ago

FR is accepted

hephaestoskin commented 10 years ago

I agree, this would be very handy and save me a lot of time fiddling with form customization.

goldsky commented 10 years ago

https://github.com/goldsky/GridClassKey/commit/9d15fd2d7c5449183900769fb45ed2581629f045