This is a beautiful way of showing pictures! I was wondering if you are considering the use case of embedding Gallerias into normal nodes (page, story, blog, etc.)? Essentially, I want to use them as a replacement for a "normal" image display (like you would add them to a node with the Image Assist module).

One way to do this would be through adding a new imput filter for a "Galleria". Then, while writing a page/story/blog node, a Galleria could be inserted with a [galleria|option1=foo|option2=bar] tag (perhaps code for this could be re-used from the Image Assist module?).

Comments

Mark Theunissen’s picture

Hi rene_w,

Yeah it's a great effect! Credit to the creators ... ;)

If you just want a quick fix for this, you can use the following PHP snippet:

print node_view(node_load(94), FALSE, TRUE, FALSE);

Where '94' is the node id of the galleria you want to load.

Obviously this will only work where PHP input filter is enabled, and you don't want to give your normal users access to executing PHP code!

I will try find time to implement this input filter. I would probably give Inline API a bash when it's ready, but it's Drupal 5 only at the moment.

Cheers
Mark

rene_w’s picture

Hi Mark,

Thanks for the php workaround. I'll try it out, but as you say, it's not really suitable for production use (e.g., I want to allow users to embed Gallerias into their blog posts, and "Full HTML" is as far as I'd want to go for the Input Format).

I'll be happy to test drive the "Galleria Input Filter" if you get around to adding it.

byronic’s picture

Mhh, can someone edit the JS code? I would like to display multiple galleries at the same time!

fallsemo’s picture

I tried that snippit of code in a block.

<?php
print node_view(node_load(1), FALSE, TRUE, FALSE);
?>

It works fine but ONLY if you have it printed once on a page. What do you do if you want more than one gallery printed on a page?

I tried printing it twice and only the thumbnails for each gallery appear.
Is there a fix for this?

Thanks!

Mark Theunissen’s picture

Having multiple Gallerias on one page isn't supported. I will gladly add this feature if someone can investigate whether the original plugin can be adapted to this purpose and how the changes should be implemented, but I don't really have time at the moment.

escoles’s picture

Look into Replacement Tags ("Rep[lacement] Tags", I think, is how it's actually spelled). It will allow you to insert a node's output into a node without exposing the PHP filter to lower-privilege users. Haven't tried it for this, but it works fine for Webforms.

Mark Theunissen’s picture

Status: Active » Fixed

Thanks, looks like a great solution!

http://drupal.org/project/reptag

Mark Theunissen’s picture

Status: Fixed » Closed (fixed)