Add pages

Hello I want to create and add pages; Most visited, best rated, recent photos and put the links in the header of my site. Home|Most visited|Best rated|Recent photos|
As on the default theme at piwigo:

Can anyone help me please?


  • acrylian Administrator
    Create so called "static theme pages" or those within your theme:
    - (assumes you are familiar with part 1 and 2 already)

    Enable the image_album_statistics plugin and add the related functions
    - You might need to update your theme's css so it really looks like you wish.
    - Then modify the theme used to have links. Statically via html might be the easiest for you. Otherwise setup the theme with a menu via the menu manager plugin.

    For some of these "categories" we call "statistics" dynamic albums may also a be a way.
  • Ok thank you but what are the php features that displays the best pictures, the latest.

    This is my header

    <meta charset="<?php echo LOCAL_CHARSET; ?>">
    <?php zp_apply_filter('theme_head'); ?>
    <?php printHeadTitle(); ?>
    <link rel="stylesheet" href="<?php echo $_zp_themeroot; ?>/style.css" type="text/css" />
    <?php if (class_exists('RSS')) printRSSHeaderLink('Album',getAlbumTitle()); ?>
  • acrylian Administrator
    See the doc link for the image_album_statistics plugin I already posted.

    `printRSSHeaderLink('Album',getAlbumTitle()); ?>`
    That line will not work as static theme pages are outside of any album or else context. Use something like `printRSSHeaderLink('Gallery', gettext('Gallery RSS'));` instead. Please take the time to read the theming basics if you haven't already and also look at the official themes for some examples. There are also basic example theme pages available within the tutorial.
Sign In or Register to comment.