Integrating just the gallery part in to a HTML website

philuk123

Joined: 2006-03-30
Posts: 2
Posted: Thu, 2006-03-30 13:29

Hi everyone.

Just installed version 2.1 - absolutely suberb!

I wish to be able to integrate only the main gallery part (eg. not the navigation on the left hand side or anything else - just the photo section) in to an extrenal standard HTML page.

I've tried loading the gallery URL in to a new frame of this HTML page but this will of course load the whole page with the all the navigation links on the left etc...

One option would be to remove the left hand navigation on the theme template but ideally I wish to keep this for admin purposes (updating the gallery). This way I can update the gallery using the gallery URL but the external HTML page will just display the main gallery section.

Is there anyway I can load JUST the main gallery part of the page in to a seperate HTML page?

Thanks in advance for your time and advice! :-)
Phil

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Thu, 2006-03-30 15:30

Have you tried this?

http://codex.gallery2.org/index.php/Gallery2:How_to_visually_embed_G2_in_your_own_website_using_embedded_mode

Then you can add the line

GalleryCapabilities::set('showSidebar', false);

right under

GalleryCapabilities::set('login',true);

and it won't show the sidebar while in embedded mode in your website. Also take a look at http://codex.gallery2.org/index.php/Gallery2:Integration_Howto and look inside the file modules/core/classes/GalleryCapabilities.class for other GalleryCapabilities settings.

Steve Lineberry

 
philuk123

Joined: 2006-03-30
Posts: 2
Posted: Fri, 2006-03-31 11:54

Hi Steve

Thank you so much for the reply. I was aware of the embed page and code but I did not know about the following code line: GalleryCapabilities::set('shosSidebar', false);

This is ideal for me!

Thanks again Steve, ;-)
best wishes
Phil

 
ame_s

Joined: 2006-12-01
Posts: 3
Posted: Fri, 2007-04-20 16:10

Thanks for this code.
There is something wired about it though ( or i am not capable ;)

I use it in one website with success (gallery 2.2) http://rotaryclub.porto-foz.org/galeria.php

Now i tried to implant it to another one but downloaded the latest gallery 2.2.1 and

Quote:
GalleryCapabilities::set('showSidebar', false);

does not show any effect.

Quote:
modules/core/classes/GalleryCapabilities.class

says it is deprecated.

So i changed the call to

Quote:
$gallery->setConfig('showSidebar', false);

which as well does not work.

Hope you can help me
Thanks
Andreas

 
drewactual

Joined: 2007-04-23
Posts: 21
Posted: Tue, 2007-04-24 23:26

if you run it as simple as I do mine, I may be able to help. check it:
http://www.downeastcyclingclub.com/pLog/index.php

requires a little coding but not much. it is real simple to do and you can be up in no time. let me know!

 
ame_s

Joined: 2006-12-01
Posts: 3
Posted: Wed, 2007-05-02 13:13

thanks,

Quote:
GalleryCapabilities::set("showSidebarBlocks", false);

solved all my problems.