Modify Link Appearance

ram0135 - December 26, 2007 - 09:13
Project:LinksDB
Version:5.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:patch (code needs review)
Description

Is there any way to make the link just say "Click for Link" or any other text, linking it to the URL instead of posting the entire URL for each entry?

When it displays the entire URL it shifts the boxes & makes them look weird.

Thanks.

#1

BradM - April 30, 2008 - 19:48
Status:active» patch (code needs review)

I've modified my linksdb.module file to include the following changes

* applied steve7946's patch to include the text import of links (http://drupal.org/node/217055)
* modified above so text import now has the option to include a link description
* modified link output so it all appears on one line, to conserve space
* category names now include a count of the number of active links they contain (e.g. Movies and TV (32))

The modified link output only applies to the limited display -- for the full page category display, the links display on multiple lines. Also, the one-line display is a little messy still for those who have the option to edit links, but for anon visitors it looks not too bad.

I'm not much of a coder so this is quite hacked and should be tested before use. Also, I'm sure there are better ways to accomplish what I did so I hope at least these ideas can be patched in to future releases.

I've attached the actual linksdb.module file, I have no idea how to make a patch file.

Brad

AttachmentSize
screenshot.jpg37.35 KB
linksdb.module.txt22.93 KB
 
 

Drupal is a registered trademark of Dries Buytaert.