Needs review
Project:
Views Slideshow: Dynamic Display Block
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 May 2010 at 12:26 UTC
Updated:
29 Oct 2010 at 12:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
ppblaauw commentedMaybe you have a wysiwyg editor enabled and it places <p></p> in the slide_title or slide_body field, which is the reason the slidetext box shows up.
When there is no slidetext or the slidetext checkbox is not checked in the configuration page, the box should not show up.
Hope this helps you further, please let me know.
Comment #2
SweeneyTodd commentedI have set up a test:
Case 1) Nothing mapped to slide-title and Body mapped to slide-text. The "Use Slide Text" box is ticked. I do not use a wysiwig editor - I use the native Drupal forms to build nodes. I have checked the page source and there is nothing in the slide-text div (see typical below):
The grey slide text box still appears on top of the slide image. I have tested this in Zen and Garland and it appears in both themes.
Case 2) Nothing mapped to slide-title and nothing mapped to slide-text. The "Use Slide Text" box is ticked. This is probably not a normal situation but it should display ok.
The css produced and the display are the same - I still have the grey slide text box appearing on top of the slide image.
I will leave the ddb block like this for a few days in case you want to have a look (http://www.sourcebottle.com/).
This is a test site I am using at the moment so there are other views-based image display blocks on the front page I am also testing so it looks a mess.
Comment #3
ppblaauw commentedWhen you don't want slidetext, you need to unset the slidetext checkbox in the configuration page.
Hope this helps you further, please let me know.
Comment #4
SweeneyTodd commentedI have modified the views-slideshow-ddblock-cycle-block-content-vsd-upright-60p.tpl file to fix this problem. I have added a comment so you can see which line I have changed.
Now you can mix slide without text along with those with text and not have an empty text box shown on the slide.
This will have to be fixed for each of the themes that uses slide text.
Comment #5
ppblaauw commentedThanks for the solution not to show the slidetext block when the slide_title and slide_text variables don't have a value, so a mix of slides with and without a slide-text block can be used .
The problem is when the slide_title and the slide_text variables have no content also the read more button is not shown.
Will spend more time on this later, to find a good solution to implement.
Make this a feature request.
Comment #6
SweeneyTodd commentedAnother way to achive this (and be able to see the Read More link) would be to change the div class if it was empty rather than removing it. It could then be given no background instead of opaque grey. You would then not see the text container but could display the Read More link.
Comment #7
ppblaauw commented#6, Do you have code for post #6
Comment #8
SweeneyTodd commentedSorry for the delay, I though I had created this patch and submitted it a while ago.
This patch is for the vsd-upright-60p theme only. Anyone who is interested should be able to patch other themes in a similar way or ask for help on specific cases.
If there is no text (title or slide text) then the grey/opaque text background is not shown.
The div container is still there (but with a different class - 'slide-text-read-more-only') so the Read More can still be shown and the background for this can be themed separately if required.
Comment #9
mandreato commentedHi,
I've tried a simple view slideshow DDB setting just an image field as slide image target; the slide text container is shown (a dark gray band on the bottom).
After un-checking the "Use slide text" option, the band is still there.
Comment #10
ppblaauw commented#8 for now you can delete the transparent image of the slide-text in CSS
hope this helps you further, please let me know.