Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Tally CreditAttribution: Tally commentedWhich 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.
Comment #2
dddave CreditAttribution: dddave commentedSeems to be solved. If not reactivate this issue.
Comment #3
kmontyPossibly related to #531762: Cannot override gallery-cover-view.tpl.php
Comment #4
broonRemember 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.
Comment #5
streever CreditAttribution: streever commentedHmm.
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.
Comment #6
broonWell, 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.
Comment #7
kmontyComment #8
kmontyThis should have already been fixed. Please test with alpha11.