Two Type of Galleries


Adding One More Gallery
I want to have two type of galleries on the webstie utilzing the gallery module. I already have (Pet Image Gallery) for images only. Now all I need is to create (Pet Video Gallery) I know I need to add it first then edit the main_menu.1. Image gallery (only)
2. Video gallery (only)


Also notice in the main_menu the hiarchy goes like this: ( The wrong way )
Galleries
--Dogs
--Cats
--Horses
--Snakes
--Hamsters
--Rabbits
--Birds
I need it to be setup up like this below: ( The Right Way ), both Sitemap editor & main_menu showing same hiarchy.
Galleries
---- Pet Image Galleries (Images Only)
--Dogs
--Cats
--Horses
--Snakes
--Hamsters
--Rabbits
--Birds
---- Pet Videos Galleries (Videos Only)
--Dogs
--Cats
--Horses
--Snakes
--Hamsters
--Rabbits
--Birds
Needs to be setup so when members add their media they can choose from which type of media they wish to upload and place it in the appropiate location.
Accepted Media Types: I already know were to do this to ensure images go in images and videos go in videos section.
Accepted media types |
|
---|
Last edit: by vynum


Galleries are hierarchical. You can create a hierarchy representing what you described here, and make 'Pet Image Galleries' and 'Pet Videos Galleries' in the hierarchy not accept either images or videos, so that users are forced to submit images under the deeper galleries under them.
This should be reflected in the automatic menus.
If you have already edited the menus to not be automatic then I think it is possible to automatically attach the gallery hierarchy under a menu node. I'd have to run some tests to see exactly how to do that, but essentially there's an option under the Advanced options of a menu node to attach Sitemap children of it.
Otherwise you can also manually set up new nodes in the menu editor to have any depth of menu hierarchy you want.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.


I disabled it. (( I know, by disabling in midstream kinda messed things up after I then inserted a few more Galleries).
Can I re-enable it and how?
And How do you go about rearranging the Hiarchy? (Mainly editing, adding and most of all deleting) I can't do it from the site-map.
I also noticed, I could be wrong but the first gallery you insert it is the default /root gallery. In my case "Pet Image Galleries" is root.
So if im right then I set it up wrong and I should have done it this way:
IMAGES <-/root (no uploading allowed here) Only a representing image
–Pet Image Galleries <- Parented to the /root "IMAGES" above, configured for "images" only.
–Dogs
–Cats
–Horses
–Snakes
–Hamsters
–Rabbits
–Birds
VIDEOS <-/root (no uploading allowed here) Only a representing image
–Pet Video Galleries <- Parented to the /root "VIDEOS" above configured for "videos" only.
–Dogs
–Cats
–Horses
–Snakes
–Hamsters
–Rabbits
–Birds
So, when someone comes to the website the side panel menu labeled galleries will be collasped at first as such.

Only thing clickable here is (IMAGES or VIDEOS)
Once they click to view it should expand to look as such.

Only thing clickable here is (--Dogs, --Cats, --Horses, --Snakes, --Hamsters, --Rabbits, --Birds )
Last edit: by vynum


And How do you go about rearranging the Hiarchy? (Mainly editing, adding and most of all deleting) I can't do it from the site-map.
Composr is a module-based CMS, which means that hierarchies are independently organised within the particular modules involved, not via a global site-map.
In practical terms this means you edit a gallery to change its parent, i.e. its on the edit form.
The rest of what you wrote seems correct.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.


automatic menus
I disabled it. (( I know, by disabling in midstream kinda messed things up after I then inserted a few more Galleries).
Can I re-enable it and how?


Admin Zone > Setup > Configuration > Theme options > General
Change the "Header-menu call string" option to this:
site:start,include=node,title=Home,icon=menu/start + site:,use_page_groupings=1,max_recurse_depth=4,child_cutoff=15,collapse_zones=1
That's the default for the option that got changed when you overrode to a custom menu.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.




In practical terms this means you edit a gallery to change its parent, i.e. its on the edit form
"Change its parent" = Not possible. But let's try anyway.
Please note: I could be wrong, but I see no parenting capablites even under sub-galleries on the "edit form". I'm using Composr V10. Not V10x. Could this be why? Do I need to peform some patches?
There are no options on the "Edit Form" on any one of my galleries or sub-galleries, to make any type of parenting changes.
But let's try anyway.
Site Map Structure for the Module:galleries
With directory structure expanded fully.

Lets see if we can go into the "edit form" of the "Ritchie's Dogs" gallery
and make the gallery [pictures] the parent for "Ritchie's Dogs" gallery.
Currently, "Dogs" Gallery is the parent for "Ritchie's Dogs" gallery.
So lets see if we can really do this?
As you can see below in the snapshot, I have the "Edit Form" opened to edit the gallery for "Ritchie's Dogs"
I have the Edit Form open to perform a parent change, but their is no editing function on the Edit Form to make parenting changes possible.

Lets go one step further to try an parent anything.
Lets open up an image. Lets open up the Dog2 image [Edit Form] that is located in the "Ritchie's Dogs" gallery.
IMAGE LOCATION

The [Edit Form] for the Dog2 image.

Again, I see no were to make any type of parenting changes what so ever.
Oh yes…
Admin Zone > Setup > Configuration > Theme options > General
Change the "Header-menu call string" option to this:
site:start,include=node,title=Home,icon=menu/start + site:,use_page_groupings=1,max_recurse_depth=4,child_cutoff=15,collapse_zones=1
That's the default for the option that got changed when you overrode to a custom menu.
Currently my "Header-Menu call string" is the same as what you suggested me to change it to. My menu is still in manual mode.
CURRENT "Header-menu call string": site:start,include=node,title=Home,icon=menu/start + site:,use_page_groupings=1,max_recurse_depth=4,child_cutoff=15,collapse_zones=1
OFF TOPIC
Finally, I ftp'ed into the /uploads directory and noticed all gallery(s) images from anyone, anymembers is being placed
into one single /uploads folder. This in my personal opionion is a bad idea for disk seeks. I think it would be more efficient to place the images into a corresponding directory structure. This keeps structure & layout the same.
Can you imagine just 10,000 members, then 20,000 and so on, uploading on average of 150 images to that one folder? That is three million (3,000,000,000) files in one directory on the server. The same goes for videos.
I have another website that has over 60 Gigs of videos and this is how it is structured. Folder & directory are structured in an syncronized fasion. This fashion not only servers for several performance benefits, but for organization as well.
Let's not forget search queries on the SQL side of things.

Last edit: by vynum


Ah yes, sorry there's a config option you need to turn on:
Admin Zone > Setup > Configuration > Gallery options > Gallery features > Allow gallery parent selection if unneeded
I'd forgotten about it. The idea is that this simplifies the gallery edit form for the average user, but I'm going to flip the option default to off in v10.0.1.
2)
I broadly agree with you
The reason we didn't implement it with subdirectories is in the past we couldn't rely on it being possible. Servers with PHP 'Safe mode' but not suEXEC wouldn't let you create and write into subdirectories. Safe mode was removed in PHP 5.4 though.
In terms of performance, modern filesystems either use an index or an efficient tree structure, rather than a long list.
So it doesn't need to search through a whole directory to find a named file.
But I think it is messy, and it would annoying when browsing with something like FTP to have to have the whole index load up.
One workaround would be to upload to the filedump, or manually to subdirectories, then to reference the files. That's not very satisfactory though. Another would be to write a script and move stuff around, updating the references in the DB.
I'll add an issue to the tracker.
Last edit: by Chris Graham
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.


This latter would be best ! :)write a script and move stuff around, updating the references in the DB
Aw yes. This is what was needed so we can select a parent for a "new" gallery ONLY!!! —– But
Manage "Existing" Galleries
But,,,, I guess I could say this is a big BUT..lol It does nothing in helping us Manage Existing Galleries. Such as, move or (reparent) existing galleries. Another words, Managing the galleries children.
I can't give any little existing children -> New parents.
I can't assign/move children to new parentsI named the image below the only function it provides.
Filename: Select_Parent_When_Adding_New_Gallery_ONLY.png

Last edit: by vynum


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.



Thanks
But ias time goes by, if your gallery grows more complex and you need to move multiple sub galleries all at once, as far as I can see you can't do that. You have to move each gallery one at a time.
This could be very cumbersome and time consuming to manage a large & complex Hiarchy.
So the way composr is built at the time of this posting, it is best to plan ahead by laying out the structure first, then impliment it.