Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

PrettyPhoto install


Reply

3 Posts   2407 Views

Avatar
Edward Cutty

18 May 2010 at 8:41pm Community Member, 4 Posts

Hi all, i'm new here, hope this is the right section.

I'm trying to install PrettyPhoto module to add lightbox style to my images. The README file is not so clear; i've install the module, run dev/build and added the following code to my Page.php

public function init()
{
parent::init();
PrettyPhoto::include_code();
}

To my <a> tag i've also added:

<a href="$MyGalleryImage.URL" rel="prettyPhoto[gallery]"><img src="$MyGalleryImage.URL" width="120" /></a>

but it doesn't work.

I've also add this to my _config.php file (as suggested in the config file in the module)

PrettyPhoto::set_theme("dark_rounded");
PrettyPhoto::set_more_config("AnimationSpeed: 'slow', opacity: 0.30, showTitle: false");

Any suggestion?

Thanks

ed

Avatar
Edward Cutty

19 May 2010 at 9:28pm Community Member, 4 Posts

solved: the PrettyPhoto.php file doesn't include jquery, so i've included it by myself.

bye

Avatar
Wil

27 May 2010 at 3:36am Community Member, 15 Posts

Hello:

How did you include the jquery in the prettyphoto.php? I am totally green with PHP and wouldn't know how to do this.

tx

Wil