craftsmancoding / assetmanager

Asset Manager for MODX Revolution
36 stars 15 forks source link

Error output groups when you save the resource #58

Open Ruslan-Aleev opened 9 years ago

Ruslan-Aleev commented 9 years ago

If on page connect two snippets, for example: [[getPageAssets? &group=New]] and [[getPageAssets? &group=Old]]

then when you save the resource with active tab in AssetManager, for example, of "New" - on site pictures with a group of "Old" will not be displayed (need to save with the group "All")

fireproofsocks commented 9 years ago

I'm sorry, I don't follow this. Could you explain a bit more?

Ruslan-Aleev commented 9 years ago

Look at the screenshots, I hope you will understand :) group_1_0 group_1_1 group_2_0 group_2_1

Ruslan-Aleev commented 9 years ago

Need to save resource with the group "All"

dadaniels commented 9 years ago

@Ruslan-Aleev First, I tried to setup a sample template with 2 getPageAssets snippet call, each has a different value for group and it's working

[[!getPageAssets? &group=`Default` &outerTpl=`[[+content]]` &innerTpl=`asset-list`]]
[[!getPageAssets? &group=`Print` &outerTpl=`[[+content]]` &innerTpl=`asset-list`]]

All images and both Group are showing.

With regards to the Group controls on top of the assets tab, it's purpose is just for filter. It doesn't work like what you might expect for now which will save an image/images based on current tab, Is that how you expect it to work?. The only way to classify the image is to click it and assign it to a group, then save. "All" is not included as a Group -- it's just a filter to show all images.

Sorry I got confused on your concern, you shown a screenshot of your site front end, that's why I setup a sample template for the frontend. But then the title is "Error output groups when you save the resource". So what really is your concern? images not being display on the frontend? or cant Group an image when the resource is save?

Ruslan-Aleev commented 9 years ago

1) "With regards to the Group controls on top of the assets tab, it's purpose is just for filter. It doesnt work like what you expect for now which will save an image/images based on current tab, Is that how you expect it to work?. The only way to classify the image is to click it and assign a group on it, then save. All is not included as a Group, again it's just a filter to show all images."

2) Images not being display on the frontend. Title "Error output groups when you save the resource" I never saw.

p.s. Try to select a group, then save the resource and refresh manager-panel, it is possible you will be able to do this bug. If not, I don't even know why it works for me (tried it Asset Manager to reinstall - did not help).