Announcement

#1 2017-06-10 15:30:27

Naunet
Member
2014-12-17
8

Inhibit display of physical albums

Hi out there!

I'm trying to install a new piwigo gallery with strange physical album names.

For most galleries photos are stored in albums with structured descriptive paths like
"/albums/paris/louvre/glas_pyramid.jpg"
or are structured by dates like
"/albums/2017/may/15/dsc_1234.jpg"
These paths are used and shown on several places in the program, like the breadcrumbs, newest albums and so on.

In my gallery I use obfuscated paths that are generated by an import program and they do not use any meta data of the photos. E.g. "/albums/j/g/m/zjhgbn.jpg". All files are attached to virtual albums, smart albums or can be accessed with the search function based on iptc meta data.

Now, how can I completely inhibit the visibility of any physical album? I do not need the physical album tree in the menu. Also I do not want the physical albums shown in the newest albums or in RSS feeds.

Thanx for reading, neda

Piwigo version: 2.9
PHP version: 7.1.1
MySQL version: 5.5.44-MariaDB
Piwigo URL: none yet

Offline

 

#2 2017-06-10 16:27:54

flop25
Piwigo Team
2006-07-06
7037

Re: Inhibit display of physical albums

Hello
you could use a custom plugin to set all physical album to private or locked in one click or triggered by a specific event
the query would be
UPDATE `piwigo_categories` SET `status` = 'private' WHERE `piwigo_categories`.`dir` IS NULL;


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

 

Board footer

Powered by FluxBB

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