Announcement

#1 2018-09-17 22:06:11

elece
Member
2016-10-23
13

Sub-albums in "flat mode" - can change it?

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

 

#2 2018-09-18 22:53:03

flop25
Piwigo Team
2006-07-06
7037

Re: Sub-albums in "flat mode" - can change it?

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2018-09-19 21:28:59

elece
Member
2016-10-23
13

Re: Sub-albums in "flat mode" - can change it?

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

 

#4 2018-09-19 21:31:27

flop25
Piwigo Team
2006-07-06
7037

Re: Sub-albums in "flat mode" - can change it?

what's inside the themeconf.inc.php file of your theme?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2018-09-19 21:32:07

flop25
Piwigo Team
2006-07-06
7037

Re: Sub-albums in "flat mode" - can change it?

and what happens with antoher theme?
You can post in the french forum if you prefer


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#6 2018-09-19 22:48:08

elece
Member
2016-10-23
13

Re: Sub-albums in "flat mode" - can change it?

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

 

#7 2018-09-20 18:56:23

flop25
Piwigo Team
2006-07-06
7037

Re: Sub-albums in "flat mode" - can change it?

could you try with a piwigo core theme such as Elegant?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2018-09-21 21:05:50

elece
Member
2016-10-23
13

Re: Sub-albums in "flat mode" - can change it?

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

 

#9 2018-09-21 21:17:01

flop25
Piwigo Team
2006-07-06
7037

Re: Sub-albums in "flat mode" - can change it?

may i have an admin acess plz?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#10 2018-09-21 21:39:26

elece
Member
2016-10-23
13

Re: Sub-albums in "flat mode" - can change it?

Bien sûr!
Mais comment puis-je vous envoyer le mot de passe?

Offline

 

#11 2018-09-25 23:05:48

elece
Member
2016-10-23
13

Re: Sub-albums in "flat mode" - can change it?

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact