[themes] Help
Dennis
yuantaotao at gmail.com
Sun Dec 6 12:05:11 UTC 2009
On 12/6/09, themes-request at drupal.org <themes-request at drupal.org> wrote:
> Send themes mailing list submissions to
> themes at drupal.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.drupal.org/mailman/listinfo/themes
> or, via email, send a message with subject or body 'help' to
> themes-request at drupal.org
>
> You can reach the person managing the list at
> themes-owner at drupal.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of themes digest..."
>
>
> Today's Topics:
>
> 1. Re: how to exclude a View-field when not present? (sebastian)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 05 Dec 2009 09:25:37 -0800
> From: sebastian <inforazor at gmail.com>
> Subject: Re: [themes] how to exclude a View-field when not present?
> To: A list for theme developers <themes at drupal.org>
> Message-ID: <4B1A9791.3030603 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Yaay! This feature has now been incorporated into Views 2.8:
>
> http://drupal.org/node/649174#comment-2343654
>
> Best,
>
> Seb.
>
> sebastian wrote:
>> Hi Nat,
>>
>> Your suggestion would work, except that I am not just affecting the img
>> tag, but rather putting two divs before and after it, so that i have
>> drop shadows that do a "curl" on the left and on the right of the image
>> [so that it looks as if it is "pinched" from the page]. There is no way
>> this can be done with just targeting the img tag in CSS, one needs to
>> use two other div tags to get this to work. But thanks for the
>> suggestion! [I had omitted the complexity of what I was doing for the
>> question, because I felt it would have made it just confusing...]
>>
>> Nat Meysenburg wrote:
>>> sebastian wrote:
>>>> I have a view, and I am using the check box on the image_field:
>>>>
>>>> [x] Rewrite the output of this field
>>>>
>>>> And below it, I have wraped my output in some DIV tags that add drop
>>>> shadows.
>>>>
>>>> Only, not all my Node's have an image, which is the way it should be
>>>> [flexible]; only Drupal still renders the wrapping DIVs instead of
>>>> seeing that there is no content, and not theming the field...
>>>> consequently, I get drop shadows when it makes no sense.
>>>>
>>>> Does anyone know how to resolve this and stop Views from rendering
>>>> supporting tags when using "rewrite output"?
>>>
>>> I'm a little late on this thread, and maybe I'm overlooking something
>>> but is there a reason you can't add the CSS drop shadows to the img
>>> element itself?
>>>
>>> What I mean is that your default field output should provide a div
>>> identifier for the field, or failing that, one for the view. Within that
>>> cascade of unique and generic named elements you should be able to find
>>> the right selector to do something like ".view-field-image img" in your
>>> CSS, and have it only affect the images in the context of your view.
>>> Furthermore, since the CSS value is attached to the image tag itself,
>>> the lack of an image will mean that the rule will simply not be called -
>>> unlike your case of empty custom divs.
>>>
>>> ~~nat
>>> _______________________________________________
>>> themes mailing list
>>> themes at drupal.org
>>> http://lists.drupal.org/mailman/listinfo/themes
>>>
>>
>
>
> ------------------------------
>
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes
>
>
> End of themes Digest, Vol 40, Issue 6
> *************************************
>
--
Sent from my mobile device
Best Regards
Dennis
More information about the themes
mailing list