zenphoto forums » General Zenphoto Discussion

Hide empty folder

(4 posts)
  1. fhesse

    Apprentice
    Joined: May '17
    Posts: 2

    Hi,
    we have a weekly activity report with jpgs from our club.
    To ease the upload - just ftp to a folder - I would like to prepare all folders in advance and give the folder the naming "M├╝hlenputz" as wanted and the date as the activity is like "2017-05-06".
    All empty folders should be invisible for guests.

    Posted 3 months ago #
  2. Zenphoto development team
    acrylian

    Zenphoto team
    Joined: Jul '07
    Posts: 16,848

    Unpublish the folders (we call them "albums") so only logged in users with the appropiate rights will see them unless they know the link.
    http://www.zenphoto.org/news/an-overview-of-zenphoto-users/

    You can also set unpublished as the default state for newly discovered albums on Options > Gallery.

    Don't forget to read the Forum rules and usage resources
    Posted 3 months ago #
  3. fhesse

    Apprentice
    Joined: May '17
    Posts: 2

    I see from your answer you got not my intension.

    I would like to prepare several empty albums - with a different name as the folder.
    One album for each Saturday = 52 per year.

    Invisible until the first content a jpg is stored to the folder, which should contain all jpgs take during the week.

    Posted 3 months ago #
  4. Zenphoto development team
    acrylian

    Zenphoto team
    Joined: Jul '07
    Posts: 16,848

    Probably I did indeed not understand ;-)

    I would like to prepare several empty albums - with a different name as the folder.

    Maybe you have a misunderstanding here. Zenphoto's gallery is file system based so the folder name is the name of an album (plus parent levels). Not to be confused with the title of an album which is independent of the name.

    You cannot create empty albums via the backend upload except using the elFinder plugin which is a way to directly edit (this bypasses certain gallery functions). Or you could do that via FTP or via the object model via code.

    There is also no facility to publish albums once they have content. It would probably be possible but you would have to create e.g. a plugin using some filter hooks to do so.

    Edit: Seems there is a third party plugin doing this:
    http://www.zenphoto.org/news/unpublish_empty_albums/
    Never tried it and cannot tell if it still works.

    Don't forget to read the Forum rules and usage resources
    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.