[development] Altering links
nan wich
nan_wich at bellsouth.net
Thu Nov 18 18:57:26 UTC 2010
You can do it in the CSS. Something like:
.infoAndActions ul li.comment_add,
.infoAndActions li.comment_comments {
background:
url(/sites/all/themes/forresterblogs/images/infoAndActions_commentCount.gif)
no-repeat left 8px;
padding-left: 29px;
margin-left: .3em;
}
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________
From: Salvatore De Paolis <iwkse at gmx.com>
To: development at drupal.org
Sent: Thu, November 18, 2010 1:30:30 PM
Subject: [development] Altering links
Hi all,
I need to alter some node links, in the specific I'd like some icon near
comment link.
Right now I'm doing it using the hook, link_alter but since it's basically
something related to the theme, I'd like to do it within the theme.
I'm trying with template_preprocess_block but it does not seems ti work.
Code looks briefly like:
$node = $vars['node'];
$node->links['comment_comments']['title'] = '<img src="foo"/>';
..
$vars['links'] = $node->links;
I suppose this is not the correct way, any hints?
regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20101118/54a9bd7a/attachment.html
More information about the development
mailing list