When I copy the files from the module/theme folders to my theme folder, it breaks image display: I think it is because it is no longer in the same folder as the theme.inc file that ships with this.

Does anyone have a work-around?

thanks

Comments

Tally’s picture

Which file are you trying to customize?

Are you leaving the original files in the Node Gallery themes folder? I follow the instructions in Overriding themable output to override themeing.

I copied gallery-images-list.tpl.php file to my theme folder and the changes I made the tpl.php show up on my site with no problems. You need to remember to clear the cache so the changes can be seen.

dddave’s picture

Category: bug » support
Status: Active » Fixed

Seems to be solved. If not reactivate this issue.

kmonty’s picture

broon’s picture

Remember to rename template files, if applicable.
For example, if you try to change image detail page, you'll want to copy the file theme/node-image-default.tpl.php to your templates folder and rename it according to your gallery image node type. With a standard installation it should be node-node_gallery_image.tpl.php.

streever’s picture

Status: Fixed » Needs review

Hmm.

So, what I am looking to do, is put the Description of a gallery in it's own DIV: Because for my layout, I need the images to float, which causes the Description to run alongside them.

I copied gallery-image-thumbnail.tpl.php to my theme folder and renamed it node-node_gallery_image_thumbnail.tpl.php.

It's a standard installation so I believe it should be node-node_gallery_image_thumbnail.tpl.php? Is that not right? I am a bit confused as to which theme displays the list of images in a gallery, because none of the themes seem to display the "Description" field that I'd like to theme.

broon’s picture

Well, I am using alpha10 and there the description is in an own div. In gallery-image-thumbnail.tpl.php, line 4 it reads:

<div class="image-title"><?php print $title_output;?></div>

The title of the gallery is printed inside a div with the class 'image-title'. However, this line is only active if mode is set to 'NODE_GALLERY_VIEW_IMAGE_LIST', so you may want to check the settings, too.

kmonty’s picture

Status: Needs review » Active
kmonty’s picture

Version: 6.x-2.0-alpha9 » 6.x-2.x-dev
Status: Active » Closed (fixed)

This should have already been fixed. Please test with alpha11.