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

ppblaauw’s picture

In the ddblock-cycle-block-content--[slideshow_theme_name].tpl.php file of the slideshow theme is checked if slidetext should be shown

         <?php if ($settings['slide_text'] == 1) :?>

you could also check if fields have content

         <?php if ($settings['slide_text'] == 1 && isset($slider_item['slide_text'])) :?>

Hope this helps you further, please let me know.

vistree’s picture

Hi 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 included

if (!empty($slider_item['slide_title']) && !empty($slider_item['slide_text'])) :

After the (new) line 79 </div> <!-- slide-text--> I included

endif;

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?

ppblaauw’s picture

Title: Is there a way to hide text background if there is no text? » Is there a way to hide text background if there is no text? (Fixed)
Status: Active » Fixed

Great 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.