Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
alexhenes
Experienced
Topic Author
Posts: 568
Joined: 28 Sep 2006, 16:13

Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 00:29

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?
Alex
https://www.merelyafleshwound.com
https://www.goldenbikeshop.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 03:16

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 ... ?
 
User avatar
alexhenes
Experienced
Topic Author
Posts: 568
Joined: 28 Sep 2006, 16:13

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 10:50

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
Alex
https://www.merelyafleshwound.com
https://www.goldenbikeshop.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 12:14

ok. Then use the assets setting in your parent page:
Code
gallery: assets:content/1.thispage/1.childfolder/
 
User avatar
alexhenes
Experienced
Topic Author
Posts: 568
Joined: 28 Sep 2006, 16:13

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 12:48

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?
Alex
https://www.merelyafleshwound.com
https://www.goldenbikeshop.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 13:04

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?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 13:06

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:
Code
folders: hide
gallery: assets:content/1.thispage/1.childfolder/ grid:3,2,1
 
User avatar
alexhenes
Experienced
Topic Author
Posts: 568
Joined: 28 Sep 2006, 16:13

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 13:18

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
Alex
https://www.merelyafleshwound.com
https://www.goldenbikeshop.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 13:55

Doesn't look like you have added settings correctly. If you can offer panel login, I can check ...
 
User avatar
alexhenes
Experienced
Topic Author
Posts: 568
Joined: 28 Sep 2006, 16:13

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 14:03

just sent PM
Alex
https://www.merelyafleshwound.com
https://www.goldenbikeshop.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 14:25

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 ...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 14:32

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 ...
 
User avatar
alexhenes
Experienced
Topic Author
Posts: 568
Joined: 28 Sep 2006, 16:13

Re: Parent Folder Containing 1 Gallery Folder

24 Nov 2014, 15:05

perfect... works great!

thanks for the feedback :-)
Alex
https://www.merelyafleshwound.com
https://www.goldenbikeshop.com
 
elpd
Experienced
Posts: 55
Joined: 02 Sep 2008, 06:30

Re: Parent Folder Containing 1 Gallery Folder

04 Dec 2014, 09:56

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!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Parent Folder Containing 1 Gallery Folder

04 Dec 2014, 10:13

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.