Hi to all!
I'm having a time with this issue and I'm really lost. Maybe you can give me an advice?
After updating my gallery with subcategories in an existing category, as:
PHOTOS
PHOTOS / TRAVELS
PHOTOS / TRAVELS / SPAIN
PHOTOS / TRAVELS / SPAIN / GRANADA
by creating the sub-sub-albums inside SPAIN: GRANADA, VALENCIA...etc.
I noticed that the first level (in this case, TRAVELS) displays only the sub-albums as expected; but in the second level (TRAVELS / SPAIN) it displays the albums and then all the individual files, as in the "/flat" option.
https://www.elece.net/galeria/index.php … ory/espana
I want to hide the photos belonging to sub-sub-albums for easy browsing; eventually, all of them will be moved to albums. But I can't see the way to do it.
As SPAIN this is the only third-level album existing, I don't know if it is a known issue or there is an option. I checked all and even deactivated themes and plugins but without results.
The source code displays a first list of:
<!-- Start of categories -->
and then:
<!-- End of categories -->
<!-- Start of thumbnails -->
Piwigo version: 2.9.4
PHP version: 7.1
MySQL version: 5.6.40
Piwigo URL: https://www.elece.net/galeria/
Offline
I didn't understand exactly what you are saying but Piwigo displays albums and pictures located at the level in the hierarchy tree on the same page
Offline
Salut, Flop!
For example: in your gallery, anime/manga / BD, you can see 3 items belonging to sub-categories:
http://www.planete-flop.fr/gallerie/ind … tegory/504
And in / Franquin there are 28 items (Franquin est-il vraiment celui de la quatrième photo?)
But they are hidden in the upper level, as they belongs to Franquin sub-album.
In my Spain gallery, Piwigo displays first the sub-albums (7 actually, last one is "Valencia" with the Alien head) and then all the images, even those that are inside sub-albums (for example the first 8 images are inside the /Almeria and /Granada sub-albums):
https://www.elece.net/galeria/index.php … ory/espana
My goal is to display only the first 7 items.
Now I see that is not the regular Piwigo behavior, as your gallery have even more branches (sub-albums) than mine... but I can't see where is the difference. I tried to move images, delete them, changing album parameters, deactivating themes and plugins, but nothing works.
Offline
what's inside the themeconf.inc.php file of your theme?
Offline
and what happens with antoher theme?
You can post in the french forum if you prefer
Offline
Merci! J'écris le français aussi mal que l'anglais, alors ... :P
I used "Dark" and "Bootstrap default" theme but the display is the same. In "Dark" the difference is more obvious between albums and photo thumbnails, but that's all.
The themeconf.inc.php file is really short. Two other files are linked, but I cannot see where ends the display of categories and start the thumbnails (as in the <!-- comment source code that appears in my gallery)
I can not upload files here, but if you want to check:
https://drive.google.com/open?id=1OZE8e … HNulICcsc3 is config.php
https://drive.google.com/open?id=1z5kb6 … QRogTTX8IX is themecontroller.php
require_once(PHPWG_THEMES_PATH . 'bootstrap_darkroom/include/themecontroller.php');
require_once(PHPWG_THEMES_PATH . 'bootstrap_darkroom/include/config.php');
$themeconf = array(
'name' => 'bootstrap_darkroom',
'parent' => 'default',
'load_parent_css' => false,
'load_parent_local_head' => true,
'local_head' => 'local_head.tpl',
'url' => 'https://kuther.net/'
);
//debug
//$conf['template_combine_files'] = false;
// always show metadata initially
pwg_set_session_var('show_metadata', true);
// register video files
$video_ext = array('mp4','m4v');
$conf['file_ext'] = array_merge ($conf['file_ext'], $video_ext, array_map('strtoupper', $video_ext));
$controller = new \BootstrapDarkroom\ThemeController();
$controller->init();
Offline
could you try with a piwigo core theme such as Elegant?
Offline
Hello!
Yes, it's the same thing.
I don't understand why the upper level /VIAJES/ displays only -and correctly- the code
<ul class="thumbnailCategories">
and /VIAJES/ESPAÑA/ displays both
<ul class="thumbnailCategories">
<ul class="thumbnails" id="thumbnails">
(being "thumbnails" ALL the photos and not only the ones out of sub-albums)
I'll try to start a new branch of albums/subalbums for testing...
Offline
may i have an admin acess plz?
Offline
Bien sûr!
Mais comment puis-je vous envoyer le mot de passe?
Offline
SOLVED! :-)
The thing is: my album is old, from various photo catalog systems before Piwigo. And the albums (galleries) are physical folders in the server.
When I tried to move photos from a physical album to a virtual children album, Piwigo created an "alias" but the photo remained in the upper level album -and so, it appeared twice: in the child album and as an orphan image (appearing before the albums as thumbnails)
I used the Virtualize plugin by plg to convert all physical albums and now the images move correctly between albums without duplicate.
(I tried first the VirtualizeAlbumById plugin by abravorus but it doesn't worked for some reason)
Thank you flop25 for the help!
Offline