Extensions

multiple_layouts

    Provides functionality to select individual templates files to items additionally to the standard theme pages album.php, image.php and for Zenpage pages.php and news.php (articles and categories).

    The additional files have to be clones of the standard theme pages which must be kept as default ones. The file names of these additional files must match these patterns and should not include special characters or characters with diacritical marks:

    Zenphoto gallery items:


    For albums: albumcustomname.php
    For images : imagecustomname.php

    "use image layout equivalent" checkbox: If you want to avoid selecting a specific layout for all images in an album you can check this option on the album's edit page. Then for the images automatically a layout is assigned as well.

    Example: You select an album layout page named "album_test.php" for an album. If you select that option mentioned above an image layout named "image_test.php" will be used for the direct images of this album if it exists. Otherwise the standard image.php is used or if set an individual image layout page. Selecting this option will not clear already individually set image layouts!

    Zenpage CMS items:


    For Zenpage pages: pagescustomname.php
    For Zenpage news articles and news categories: newscustomname.php.

    The main news page and the news archive can't be assigned to layout pages.

    Layout selection inheritance:


    The layout selection of a parent album (images see above), page or category is inherited by its sub items on all levels without their own db entry if no specific layout is seleced. News articles don't inherit anything because they don't directly belong to any parent item.

    Usage information

    Included in the Zenphoto release.

    For questions and comments please use the forum or discuss on the social networks.


    More by author:

    Related items