Hi,

Is it possible to customize the output of this module? I'm trying to get rid of the link below the image in the galleries but I can't do it via css since the link is not classed.

Thanks!

regards,
CH

Comments

kmonty’s picture

What link specifically are you trying to get rid of?

FYI - I'm going back through now and starting to put more of the links / output in theme functions, so eventually you will have complete control of the node_gallery output.

kmonty’s picture

Status: Active » Postponed (maintainer needs more info)
NiHL’s picture

Hi, thanks for the prompt reply. Let me give you an example:

From the demonstration.

The first item is

<li class="first">
  <div class="image-thumbnail">
    <a href="/nodegallery/gallery-image/neuerlamgorgini2jpg">
      <img src="http://neweonmedia.com/nodegallery/sites/default/files/imagecache/gallery-thumb/NeuerLamgorgini2.jpg" alt="NeuerLamgorgini2.jpg" title="NeuerLamgorgini2.jpg"  width="100" height="100" />
    </a>
    <a href="/nodegallery/gallery-image/neuerlamgorgini2jpg">NeuerLamgorgini2.jpg</a>
  </div>
</li>

As you can see, the link is right next to the name. As the link is not classed, it is impossible to apply a css display: none to it. I would prefer not to hack the module if I can. I'm glad to hear about the theme functions. Thanks!

kmonty’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

You can already customize that output by overriding the theme function theme_gallery_image_thumbnail() from the file node_gallery.themes.inc You can just remove the link line completely!

If you are unfamiliar with how to do this there is a great page on the Drupal Handbook on how to do this: http://drupal.org/node/11811

broon’s picture

I'm currently struggling with theming, too.
In your case, there are CSS selectors which give you the possibility to address the link, i.e.

div.image-thumbnail img + a { display: none; }

should do the job.
However, I'd prefer overriding the theming functions.