I am hoping someone can help me understand how something works with Gallery3. I downloaded and installed the album tree module. I actually really like it in dtree mode except for one thing: many of my items do not have a value for relative_url_cache and therefore the links in the tree do not work. I've tried to poke around in the code a bit on my own, but I don't understand how/when the value for this field is supposed to be generated. I get it that when I visit a page, the value for this field is set, but is there some function to call to set this value without visiting the page? I don't know where the "problem" lies: if it is specific to the album tree module, or if it is a Gallery 3 issue, but I'm hoping someone could point me in the right direction!
Actually, what I'd love to do is use album tree as a starting point, but create a nested menu system for gallery navigation. I think I can use a few different modules for example code and put it together, but I just can't seem to make it past this hurdle first.
Thanks!
Posts: 2
I am having the same issue.
I have several thousand pictures in several hundred folders, for some reason only the first level directories have working links.
Interesting note, the directories previously worked on the second, and in some folders even the third level ...
/folder1/folder2/Folder3
folder1 is the first level, folder2 the second, etc...
But after running 'Fix your Gallery' in Maintenance mode the links stopped working on almost all the deeper levels.
I say almost because there are 7 folders (albums) in my root directory, and the very first one on the list (at the top of album tree) still has working links at the second level. All of the others do not work beyond first level still.
Any help would be greatly appreciated.
Thanks,
James
Posts: 7985
That's a cache that's only populated when you visit the folder. There's currently no task to get to it, which is why you shouldn't use relative_url_cache directly. I just pushed a fix to the albumtree module that should resolve this - try the latest code.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!
Posts: 2
Thank you very much, the issue is resolved.
The only problem is after applying the new version of albumtree my images are broken for the module. The URL is correct and the images are present... any idea why they are not appearing?
I am referring to the little pluses and minuses to expand and collapse the albumtree.
I have done a temporary fix on the issue by hardcoding the path to the images in albumtree_block_dtree.php on var albumtree_images
Thanks again,
James