Theme weblink?

majnoona - June 12, 2007 - 19:04
Project:Links Package
Version:6.x-1.0-beta6
Component:Code: links_weblink.module
Category:feature request
Priority:normal
Assigned:syscrusher
Status:active
Description

Hi, I'm having a hard time theming the way weblinks look -- specifically the link part (ie "Visit TheSite"). Could someone throw me an example?

Thanks
maj

#1

Summit - February 13, 2008 - 09:25
Version:5.x-1.7» 5.x-1.8

Hi, Very interested in this also!, subscribing, greetings Martijn

#2

Summit - October 31, 2008 - 08:57

Hi,

Anyone having some css stuff related to this question to theme the Visit .. peace of weblink please?

Thanks a lot in advance for your reply!

greetings,
Martijn

#3

syscrusher - November 14, 2008 - 21:50
Version:5.x-1.8» HEAD
Category:support request» feature request
Assigned to:Anonymous» syscrusher

I've improved the theme-ability of links_weblink quite a bit in the Drupal 6 version, just released in beta this week. I never made a specific CSS class for the "visit..." link because it defaults to the same theme behavior as the rest of the Drupal-provided links. But I don't think it would be hard to do so. I'll look into implementing this for the Drupal 6 branch in the next release.

Scott

#4

syscrusher - December 30, 2008 - 20:04
Version:HEAD» 6.x-1.0-beta6

@Summit....

Now that the Drupal 6 version is nearing release, could you please take a look (at your convenience) and see what you think of its themeability? I'm open to suggestions of additional theming classes or IDs that might be needed, but I think you'll find this version is more themeable than the D5 version. Comments welcome.

#5

renee - March 23, 2009 - 21:49

@Summit - that "Visit..." is a pain, because it appears as class='0' which is not XHTML valid, and impossible to theme. I want the related links box in the content but I DON"T want the Visit... links at the bottom, but I can't theme them away and they're breaking my accessibility! :)

UPDATE: Ok, it looks like this is actually a bug, I will open a separate issue.

#6

Summit - May 5, 2009 - 11:05

Hi,
The themebility in D6 looks ok, thank you! Would really like to have this in D5 also.
Can;t get the hands on theming links_weblink_list in D5. Is it possible to overrule item-list for links_weblink_list in style.css to NOT get the disc somewhere with D5?

EDIT I got it hacky way, would be great if having an extra option for using title in list or not, now I deleted the

Before deletion code:
line 475 of 5.dev:

<?php
$output
= '<p><ul id="links_weblink_list"><li>' . l($link['title'], $link['href'], $link['attributes']) . '</li></ul></p>';
?>

After deletion:

<?php
$output
= '<p>' . l($link['title'], $link['href'], $link['attributes']) . '</p>';
  
?>

greetings, Martijn

 
 

Drupal is a registered trademark of Dries Buytaert.