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.
Hi, great module!!!
I have a slideshow with some images. Some of the images have text in the title /alternative fields - but not all!!
Now I want to display the slide-text-horizontal background only, when there is text in one of the fields. Is this possible? I know, that a can generally remove the background through css - but I just want to remove the grey band, when the values are empty. Already tried to check "hide if empty" in the Views settings for these fields ...
Is there any way?
Comments
Comment #1
ppblaauw CreditAttribution: ppblaauw commentedIn the ddblock-cycle-block-content--[slideshow_theme_name].tpl.php file of the slideshow theme is checked if slidetext should be shown
you could also check if fields have content
Hope this helps you further, please let me know.
Comment #2
vistree CreditAttribution: vistree commentedHi and thank you for your fast reply. Your hint was great - I only search in the main module folder instead inside the custom -template folder.
I made the following modification to the ddblock-cycle-block-content--upright60p.tpl.php
Before line 54
<div class="slide-text slide-text-<?php print $settings['slide_direction'] ?> slide-text-<?php print $settings['slide_text_position'] ?>
I includedif (!empty($slider_item['slide_title']) && !empty($slider_item['slide_text'])) :
After the (new) line 79
</div> <!-- slide-text-->
I includedendif;
Works fine now ;-)
P.S.: A general question: Am I allowed to change the status to fixed or is this something the module maintainer has to do?
Comment #3
ppblaauw CreditAttribution: ppblaauw commentedGreat you could solve your issue with the information given.
Set status to fixed.
P.S. Yes, you can set the status to fixed yourself. (I don't think there is information who should set the status to fixed, maintainer or poster of the issue, probably most of the time a maintainer will set it to fixed)
For more information about the issue queue see: http://drupal.org/node/317 and subpages.