DrupalBin
Submit Code
About
Recent Posts
TwitterFeed for D4D review
text
rewrite
Module to overrule the save settings of the "new node" form
Code
apidoc
Empty DateTime Object
Fix for listcars_manufacturer.module
listcars_manufacturer.info
listcars_manufacturer.module
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
test
theme
user
views
more tags
Home
Fix for Fix for chipt4's views block problem
View
Fix
December 17, 2008 - 10:08am — Anonymous
This is the HTML generated by Views [1.x-dev on D5] for my block:
<
div
id
=
"block-views-newreleases"
class
=
"block block-views region-even odd region-count-2 count-5 collapsiblock-processed"
>
<
div
class
=
"block-top"
/
>
<
div
class
=
"block-inner"
>
<
h2
class
=
"title"
>
New Releases
<
/
h2
>
<
div
class
=
"content"
>
<
div
class
=
"view view-newreleases"
>
<
div
class
=
"view-content view-content-newreleases"
>
<
div
class
=
"item-list"
>
<
ul
>
<
li
>
<
div
class
=
"view-item view-item-newreleases"
>
<
div
class
=
"view-field view-data-node-title"
>
<
a
href
=
"/book/local-history/secret-life-and-brutal-death-mamie-thurman"
>
The Secret Life and Brutal Death of Mamie Thurman
<
/
a
>
<
/
div
>
<
/
div
>
<
/
li
>
<
li
>
<
div
class
=
"view-item view-item-newreleases"
>
<
div
class
=
"view-field view-data-node-title"
>
<
a
class
=
"active"
href
=
"/book/local-history/feuding-hatfields-and-mccoys"
>
The Feuding Hatfields and McCoys
<
/
a
>
<
/
div
>
<
/
div
>
<
/
li
>
<
li
>
<
div
class
=
"view-item view-item-newreleases"
>
<
div
class
=
"view-field view-data-node-title"
>
<
a
href
=
"/book/paranormal/legends-mountain-state"
>
Legends of the Mountain State
<
/
a
>
<
/
div
>
<
/
div
>
<
/
li
>
<
li
>
<
div
class
=
"view-item view-item-newreleases"
>
<
div
class
=
"view-field view-data-node-title"
>
<
a
href
=
"/book/paranormal/legends-mountain-state-2"
>
Legends of the Mountain State 2
<
/
a
>
<
/
div
>
<
/
div
>
<
/
li
>
<
/
ul
>
<
/
div
>
<
/
div
>
<
/
div
>
<
/
div
>
<
div
class
=
"edit"
>
<
a
class
=
"block-config"
title
=
"configure this block"
href
=
"/admin/build/block/configure/views/newreleases?destination=node%2F7"
>
<
/
a
>
<
a
class
=
"block-edit-view"
title
=
"edit the view that defines this block"
href
=
"/admin/build/views/newreleases/edit?destination=node%2F7#edit-block"
>
<
/
a
>
<
/
div
>
<
/
div
>
<
div
class
=
"block-bottom"
/
>
<
/
div
>
This is the CSS that applies to the link that behaves correctly:
wp.css (line 1183)
.block-views a:hover {
text-decoration:underline;
}
wp.css (line 1097)
.block .view-field a, .block .view-field a:active, .block .view-field a:visited {
color:#333333;
font-size:1.1em;
text-decoration:none;
}
This is the CSS that applies to the links that behave incorrectly:
wp.css (line 1097)
.block .view-field a, .block .view-field a:active, .block .view-field a:visited {
color:#333333;
font-size:1.1em;
text-decoration:none;
}
css
ff3
views
Submit Fix
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Show summary in full view
This is the HTML generated by Views [1.x-dev on D5] for my block: <div id="block-views-newreleases" class="block block-views region-even odd region-count-2 count-5 collapsiblock-processed"> <div class="block-top"/> <div class="block-inner"> <h2 class="title">New Releases</h2> <div class="content"> <div class="view view-newreleases"> <div class="view-content view-content-newreleases"> <div class="item-list"> <ul> <li> <div class="view-item view-item-newreleases"> <div class="view-field view-data-node-title"> <a href="/book/local-history/secret-life-and-brutal-death-mamie-thurman">The Secret Life and Brutal Death of Mamie Thurman</a> </div> </div> </li> <li> <div class="view-item view-item-newreleases"> <div class="view-field view-data-node-title"> <a class="active" href="/book/local-history/feuding-hatfields-and-mccoys">The Feuding Hatfields and McCoys</a> </div> </div> </li> <li> <div class="view-item view-item-newreleases"> <div class="view-field view-data-node-title"> <a href="/book/paranormal/legends-mountain-state">Legends of the Mountain State</a> </div> </div> </li> <li> <div class="view-item view-item-newreleases"> <div class="view-field view-data-node-title"> <a href="/book/paranormal/legends-mountain-state-2">Legends of the Mountain State 2</a> </div> </div> </li> </ul> </div> </div> </div> </div> <div class="edit"> <a class="block-config" title="configure this block" href="/admin/build/block/configure/views/newreleases?destination=node%2F7"> </a> <a class="block-edit-view" title="edit the view that defines this block" href="/admin/build/views/newreleases/edit?destination=node%2F7#edit-block"> </a> </div> </div> <div class="block-bottom"/> </div> This is the CSS that applies to the link that behaves correctly: wp.css (line 1183) .block-views a:hover { text-decoration:underline; } wp.css (line 1097) .block .view-field a, .block .view-field a:active, .block .view-field a:visited { color:#333333; font-size:1.1em; text-decoration:none; } This is the CSS that applies to the links that behave incorrectly: wp.css (line 1097) .block .view-field a, .block .view-field a:active, .block .view-field a:visited { color:#333333; font-size:1.1em; text-decoration:none; }
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal 5
Drupal 6
HTML
INI
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.
See Also:
Order
Title:
URL:
-1
0
1
Title:
URL:
-1
0
1
Any links you'd like to have associated with the post (Drupal.org issue, Wikipedia article, etc).
File attachments
Changes made to the attachments are not permanent until you save this post. The first "listed" file will be included in RSS feeds.
Attach new file:
The maximum upload size is
1 MB
. Only files with the following extensions may be uploaded:
jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp
.