Page 1 of 2
Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 00:29
by alexhenes
I have a couple of situations where I have the following folder scheme and with just one child folder under a parent.
Parent Folder (no images)
Child Folder (contains images)
Does X3 have a setting that will display the child folder's gallery when the parent folder is clicked on in the mega menu?
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 03:16
by mjau-mjau
You can use the assets setting to display the child folders gallery within the parent page. However, I am curious why you would want to do it like that instead of simply adding the image to the parent folder from the beginning ... ?
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 10:50
by alexhenes
The reason I took this approach was for naming consistency... for example...
I have only kayaked one river in Mexico... El Salto. On the mega menu I want users to see that there are rivers in Mexico... not just a river called El Salto. So I created a parent folder called Mexico and put the folder El-Salto in it. El-Salto contains the pictures.
will play around with this and see what is optimal.
I like the assets concept... didn't think to use it this way
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 12:14
by mjau-mjau
ok. Then use the assets setting in your parent page:
gallery: assets:content/1.thispage/1.childfolder/
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 12:48
by alexhenes
when I do that it opens to a page that lists the one child folder vs. displaying the gallery contents of the child folder. Is there a way to open the contents of the child folder directly from the top level parent?
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 13:04
by mjau-mjau
alexhenes wrote:when I do that it opens to a page that lists the one child folder vs. displaying the gallery contents of the child folder. Is there a way to open the contents of the child folder directly from the top level parent?
What do you mean? What does it show when you DONT add the assets setting?
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 13:06
by mjau-mjau
Just because you are assigning an assets setting for the gallery module, doesn't mean it will automatically know that you want to hide subfolders (even though there is only 1). Try setting:
folders: hide
gallery: assets:content/1.thispage/1.childfolder/ grid:3,2,1
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 13:18
by alexhenes
check out the following example...
on
www.merelyafleshwound.com
under Road Biking...
The gallery setting in the Utah parent folder looks like this...
gallery : assets:content/1.Utah/1.la-sal-loop/
now compare this to the New Zealand parent folder which has nothing in the gallery setting
they both behave the same way
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 13:55
by mjau-mjau
Doesn't look like you have added settings correctly. If you can offer panel login, I can check ...
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 14:03
by alexhenes
just sent PM
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 14:25
by mjau-mjau
Better?
http://merelyafleshwound.com/Road-Biking/Utah/
First of all, you forgot that assets path is relative to the content folder, which would require the path
assets:6.Road-Biking/1.Utah/1.la-sal-loop (you forgot road-biking segment). You can also ignore the numbers
assets:Road-Biking/Utah/la-sal-loop because unlike the image setting which requires an exact path, the assets settings "gets" a page and its assets.
Next up, I noticed an extreme slowness to your server, and couldn't get anything working for a few minutes ... I checked your settings, and you had
preload:true, and with your massive structure that is bound to create extreme slowdowns and possible timeouts ... This is why you need to be incredibly cautious about enabling this setting only when you are "done" editing ...
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 14:32
by mjau-mjau
The assets setting is an advanced setting, and we didn't predict anyone would be adopting it this early. Having a nice option like this to inherit "assets" from other galleries- and folders certainly offers some nice functionality, but this setting is not extremely intuitive for now ...
Re: Parent Folder Containing 1 Gallery Folder
Posted: 24 Nov 2014, 15:05
by alexhenes
perfect... works great!
thanks for the feedback

Re: Parent Folder Containing 1 Gallery Folder
Posted: 04 Dec 2014, 09:56
by elpd
Is this also possible if there are multiple sub-folders to include and not just one?
The reason I want this is because I want to use it as a filter. For example:
Porftolio
----Buisines Photograpy
-------Speciality 1 (for example portraits)
-------Speciality 2 (for example products)
-------Speciality 3 (for example architecture)
-------Etc...
----Photograpy for Individuals
-------Speciality 1
-------Speciality 2
-------Speciality 3
-------Etc...
If somebody clicks on Buisines Photograpy I want to show a random collection of all the pictures inside the subfolders and not just the folders themselves. But if somebody clicks on Speciality it only shows the pictures inside that specific folder/level.
Now I can only make this happen by uploading all the pictures twice. Once into the correct Speciality folder and once tot the Buisines Photograpy folder.
I hope you can help me out with this, thanks!
Re: Parent Folder Containing 1 Gallery Folder
Posted: 04 Dec 2014, 10:13
by mjau-mjau
elpd wrote:If somebody clicks on Buisines Photograpy I want to show a random collection of all the pictures inside the subfolders and not just the folders themselves. But if somebody clicks on Speciality it only shows the pictures inside that specific folder/level.
I would be very careful with mixing folders+images in the same page ... I have yet to see someone set up a page which display images AND albums on the without it becoming confusing.
As for
"random collection", what exactly did you have in mind? But yes, you can set your parent folder to read images from a subfolder, but there is no pick-n-mix setting to get "some" photos from "each" subfolder ... I am not sure how we could even make the logic behind a setting like that ...
elpd wrote:Now I can only make this happen by uploading all the pictures twice. Once into the correct Speciality folder and once tot the Buisines Photograpy folder.
Yes, as mentioned, you can get images from a child folder into the parent folder. You can even set a "limit" so to only display a "handful" ... furthermore, you can even choose which images from the subfolder! But as mentioned, you cannot randomly get a bunch of mixed images from all the subfolders.