Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

Please sign in or apply for membership to remove the ads
    • CommentAuthorcrlannen
    • CommentTimeApr 24th 2008
     
    I am working on a vacation villa site that has multiple villas. I'd like to be able to display that villa's photos on the villa's page containing all the the information pertaining to it (description, rates, etc.).

    Example: Cool Breeeze (villa name) with a page named coolbreeze.php and then display just the album for Cool Breeze.

    Is that possible?

    Thanks!!
    Chris
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 24th 2008 edited
     
    Yes, you can do this. The easiest way would be to set up each page (i.e. coolbreeze.php) using the 'plogger/index.php' file as an example (with the require gallery, the_head, and the_gallery commands). But after the initial require, add the following code:
    require("plogger/gallery.php");
    $GLOBALS['plogger_level'] = "album";
    $GLOBALS['plogger_id'] = "2";
    and change the plogger_id to the id of the album you would like to display. Keep in mind, this will pull in all of the template information as well.

    If you want to go more in depth, you can use the same theme / template functions instead of the_gallery() function to display just the thumbnails or get the full image URLs, etc. Play around with it and set it up to your liking! :)
    • CommentAuthorcrlannen
    • CommentTimeApr 24th 2008
     
    Thank you!!