goldsky / Easy-2-Gallery

MODx Evolution's image gallery
7 stars 4 forks source link

Opening an enclosed folders when sorting folders by tags #6

Closed SashBats closed 13 years ago

SashBats commented 13 years ago

Ok, i relax with russian tags - they'll be in english. One more qwestion: f.e. i have gallery structure like this.

|-BMW (tag bmw) |-Audi (tag audi) |-Mersedes (tag mers) |-bus (no tags) |-traks (no tags)

And i select folders by tag mers. In result at the page i have one folder Mersedes. If i open it there are pics and two folders bus and tracks. But i can't open last ones. Its understandible - they have no tag mers. Is there any way to open them in this case? If i add tag mers to them - at the page i have 3 folders Mersedes (with included bus, tracks) and bus, tracks. It's not convenient for me.

SashBats commented 13 years ago

Mtrsedes is parent folder for (bus) and (tracks)

goldsky commented 13 years ago

I guess it's already fixed. But there is one condition matters: the SQL applies the " LIKE %string% " comparison, so mers and mersedes tagged pictures will come together. You can avoid this by using &where_dir or &where_file wild parameters. See the Help section on your module.