<updated> Displaying only one album and tags embedded in another webpage?

jennp

Joined: 2014-03-24
Posts: 5
Posted: Mon, 2014-03-24 20:26

My apologies if this has already been discussed! I peeked through the forum, but I can tell that you guys are quite advanced compared to where I am, and nothing stood out directly.

Here's my question:
I really like the functionality of gallery, but I want it to blend into my website seamlessly. Is there some way I can input the code on my website's gallery page and it would display JUST my gallery, and my tag cloud?

This way I can still manage the gallery from my gallery3 installation location, but the end-user doesn't see anything different?

I guess the alternative would be to go into the Gallery3 installation files and try to modify the CSS etc to make it match, but I'm not sure which css file to modify. If someone could point me in the right direction there, I'd love to just dive in and see if I can make it match.

Thank you!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-03-25 01:49

Tag cloud:
http://codex.galleryproject.org/Gallery3:Modules:tag_cloud_html5#Embed_feature

and just the items/albums on a page use the REST interface and here is an example:
http://www.flashyourweb.com/gallery2/embed_samples/g3_ajaxGallery.php
just add some html, css and js to your page you want the items to show.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jennp

Joined: 2014-03-24
Posts: 5
Posted: Tue, 2014-03-25 13:46

That perfect! Thank you so much!

 
jennp

Joined: 2014-03-24
Posts: 5
Posted: Thu, 2014-03-27 21:06

Ok, maybe I was a little eager!

So I figured out how to embed gallery, for the most part, but I cannot get the embedded tags to show up.

This is the page I am trying to embed: http://www.mindwarpfx.com/dir/index.php/tag_cloud/embed/wholecloud/maxtags/100/outlineColour/00FF00/textHeight/18
I tried to follow the example, using a relative url, but I'm not getting anything.

I've tried to use:
<div id="example-name" style="width: 500px; height: 500px">
<?= file_get_contents("../dir/index.php/tag_cloud/embed/wholecloud/maxtags/100/outlineColour/00FF00/textHeight/18"); ?>
</div>

and:
<div id="tagcloud" style="width: 200px; height: 200px">
<?php

file_get_contents("../dir/index.php/tag_cloud/embed/wholecloud/maxtags/100/outlineColour/00FF00/textHeight/18");
?></div>

but nothing shows up on the page at all. If you click on the link above you can see the cloud - I feel like I'm close, but I'm just not entering the link correctly, or something.

Does anyone have any ideas what I can do? Thanks!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2014-03-28 13:36

I have never used the tag_cloud_html5 Embed_feature but the docs say to use the full url not a relative url.
See if file_get_contents function works with just a text file first.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team