Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Metrik
Experienced
Topic Author
Posts: 41
Joined: 08 Jul 2010, 17:20

Can I have visible nested navigation without 1.xx, 2.xx etc?

10 Apr 2016, 13:54

Trying to get X3 up and running with my current site, which contains hundreds if not thousands of sub folders with pictures. Do I really need to prefix every folder with numbers (1.xx, 2.xx, etc) to have X3 include them nested in the Menu? That would take me ages and would also break existing site links pointing to the files and folders.

Image Image
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Can I have visible nested navigation without 1.xx, 2.xx

10 Apr 2016, 14:12

Metrik wrote:Trying to get X3 up and running with my current site, which contains hundreds if not thousands of sub folders with pictures.
I hope you have a really fast server to handle this. X3 needs to loop through all files and folders in your content folder when rendering a page. Pages get cached, but are purged every time you change something in your panel. I have seen websites on shared servers struggle with less than 100 folders.
Metrik wrote:Do I really need to prefix every folder with numbers (1.xx, 2.xx, etc) to have X3 include them nested in the Menu?
Unfortunately yes, as this was the logical way to deal with the order of pages. I can see it is a problem for you, but this is the mechanics of pages.
Metrik wrote:That would take me ages
You are not upgrading from X2? We created a convert script for that, which amongst other things adds numbers to folders.
Metrik wrote:and would also break existing site links pointing to the files and folders.
What site is that if I may ask? You can't just have folders that represent the URL ... the URL needs to be routed within an application, that deals with all the dynamic logic. Therefore, the URL will never be the same as the folder path.

Sorry, we may address numbering in the future, but for now it is part of the application logic.
 
User avatar
Metrik
Experienced
Topic Author
Posts: 41
Joined: 08 Jul 2010, 17:20

Re: Can I have visible nested navigation without 1.xx, 2.xx

10 Apr 2016, 15:15

Thanks a lot for the extensive reply, Karl.
mjau-mjau wrote:I have seen websites on shared servers struggle with less than 100 folders.
Although I love Imagevuex, maybe I should look for another image tool, that can handle all these folders, then. I wonder if there is anything out there with a different and faster approach with regards to deep nesting. Anyone?
mjau-mjau wrote:You are not upgrading from X2? We created a convert script for that, which amongst other things adds numbers to folders.
I wasn't aware of that script. I was in fact running X2, but something went really wrong when my provider upgraded their PHP to a higher version. Unfortunately, I deleted X2 (minus the content folder) a while ago from my server, in an attempt to get up and running again (with X3). I guess I can't use the script now.
mjau-mjau wrote:What site is that if I may ask? You can't just have folders that represent the URL ... the URL needs to be routed within an application, that deals with all the dynamic logic. Therefore, the URL will never be the same as the folder path.
Yes, you're probably right. I'm getting rusty at coding and the site was made years ago. I thought I would break something when renaming the folders. Here is a page from said site. When you hover over an entry in the list (and a picture pops up), there is a link underneath it, pointing to another related picture. It doesn't work anymore because I deleted X2 and I haven't fully set up X3 yet. But maybe you can derive something from it. I'm probably not making much sense, heh :)
http://audiozone.dk/index-filer/charvel ... _1986-1991
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Can I have visible nested navigation without 1.xx, 2.xx

11 Apr 2016, 00:53

Metrik wrote:Although I love Imagevuex, maybe I should look for another image tool, that can handle all these folders, then. I wonder if there is anything out there with a different and faster approach with regards to deep nesting. Anyone?
It's a good question. X3 might work well, but it all depends on the depth of your content vs speed of server. Also, even if X3 took 10 seconds to render a page after editing, pages are cached so that consecutive visitors will see fast-loading pages regardless ... Thus, having to wait a bit extra "after making a change in panel" might be worthwhile. The problem is if your content is so heavy (vs server) that page fails to renders.

As for other alternatives, database solutions would normally not require looping through your content to build the menu/content structure, and will therefore be faster. However, that means you likely have to build the menu structure manually (like in Wordpress), and it does not "reflect" your folder structure. I am not aware of any other modern folder-based gallery systems, apart from X2. It is likely X2 was more effective than X3 also, because X3 does much more in the looping process.

Just for reference, it might work fine as long as you are not operating from 2$ hosts. Likely you would need to use a proper 10$ hosts like siteground or mediatemple.
Metrik wrote:I wasn't aware of that script. I was in fact running X2, but something went really wrong when my provider upgraded their PHP to a higher version. Unfortunately, I deleted X2 (minus the content folder) a while ago from my server, in an attempt to get up and running again (with X3). I guess I can't use the script now.
Mmm maybe you could. Anyway, I am pretty sure there are batch renamer utilities that could rename folders with an incrementing number prefix. That means you would need to spend time looking for one.
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Can I have visible nested navigation without 1.xx, 2.xx

13 Apr 2016, 02:28