Load Album in a page

Hi,

would be great if someone can point me in the right direction.
I have a dynamic album called 'alle-bilder'.

I would like to display this album in a page.

I followed the instructions displayed under the tutorial for dynamic albums but can't get it working.

It would be great if someone can give me an advice how to get this working.

Ralf

Comments

  • vincent3569 Member, Translator
    hi

    first, you have to verify if your page.php have a line like this one :
    ` <?php printCodeblock(1); ?> `

    then, you have to insert php code in codeblock 1 (with example above).

    `

    <?php<br />
    $album = newAlbum("alle-bilder.alb");

    if (is_object($album)) {

    makeAlbumCurrent($album);

    } ?>

    <?php printPageListWithNav("« " . gettext("prev"), gettext("next") . " »"); ?>



    <?php printPageListWithNav("« " . gettext("prev"), gettext("next") . " »"); ?>

    `
  • acrylian Administrator, Developer
    An alternative would also be to use the multiple_layouts plugin and create a specific page theme page layout with the code Vincent provide. This is what I probably would do as codeblocks get a bit inconvenient on longer code parts.
  • Hi guys,

    fantastic :-)

    Thank you
  • acrylian Administrator, Developer
    Great. Maybe using pages would not have been needed at all for this.
    The first page would probably have been possible with the main gallery page as well with unpublished albums. The 2nd could have been a direct link to the dynamic album used.
    But as always whatever works ;-)
  • vincent3569 Member, Translator
    hi
    as acrylian, I don't understand your needs about album page (you have the main gallery page for that), but of course, you can do what you want :-)
    a page with all picture is a good idea (it seems inspired from koken behavior, isn't it ?)

    I did the same (dynamic album in a page) for a porfolio (selected pictures with porfolio tag), and with geotagged pictures, in order to display them in a googlemap.
Sign In or Register to comment.