How to embed Gallery3 into web page

Dannyo

Joined: 2013-11-13
Posts: 8
Posted: Wed, 2013-11-13 21:59

Hi All,

Newbie here feeling pretty stupid ....
I have successfully installed Gallery3 on server and uploaded photos etc.
I am totally confused on how to insert Gallery3 into a html page. :(

I have looked at the following thread and other discussions but cannot figure out what code to add to my html page.

http://galleryproject.org/node/106581

I am using Dreamweaver.
Help please before I go crazy !!!!

Thanks in advance

 
Dannyo

Joined: 2013-11-13
Posts: 8
Posted: Thu, 2013-11-14 10:57

Hi All,

Regarding the sample code below -

Quote:
$(document).ready(function(){
$('#gallery').g3rest({
url: 'http://www.flashyourweb.com/gallery3/rest',
code: 'http://www.flashyourweb.com/gallery2/embed_samples/'
});
});

Questions...

1) Is this the only way to embed Gallery3 into a html page ?
is there an easier way , such as inserting a link to : http://yourwebsite.com/gallery3/index.php ?

2)

Quote:
url: 'http://www.flashyourweb.com/gallery3/rest',

I presume I just change this to :
url: 'http://www.yourwebsite.com/gallery3/rest' ?

3)

It references Gallery 2 ...Why Gallery 2 ? do I need this?
What do I need to change to display my Gallery3 images?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-11-14 12:33
Quote:
1) Is this the only way to embed Gallery3 into a html page ?

Gallery3 currently has no external embed API.

Quote:
It references Gallery 2 ...Why Gallery 2 ? do I need this?

http://www.flashyourweb.com/gallery2/embed_samples/ just happens to be where I was hosting the code directory that you get from unzipping the archive you download from here. So my code directory is http://www.flashyourweb.com/gallery2/embed_samples/code

Quote:
I presume I just change this to :
url: 'http://www.yourwebsite.com/gallery3/rest' ?

if you are utilizing G3's rewrite module then yes. otherwise it would be http://www.yourwebsite.com/gallery3/index.php/rest

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Dannyo

Joined: 2013-11-13
Posts: 8
Posted: Thu, 2013-11-14 21:26

Thank you for the response -

It works if I point to your url: 'http://www.flashyourweb.com/gallery3/rest',

However it doesn't work if I use my own url.

I have selected the Rest API Module in the Gallery Modules.

Is there anything else I need to do to install /rest ?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-11-14 21:03

you need to set rest allow_guest_access to 1 in gallery admin -> advanced

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Dannyo

Joined: 2013-11-13
Posts: 8
Posted: Thu, 2013-11-14 22:03

Thank you so much for your help !

Gallery is now appearing on webpage - It is slow to load - is there a way to speed this up ?

now to play with settings and do more reading !)

Kind Regards,
Dan

 
mccphoto

Joined: 2013-12-01
Posts: 1
Posted: Sun, 2013-12-01 04:58

Hey Dannyo,

Did you ever find a resolution to the speed issue?