How to create a custom block of links

dhar - April 26, 2007 - 14:33

Hi,

I would like to create a custom sidebar block that consists of links to external pages. It should consist of a list of only titles of the linked pages. The administrator enters/creates the titles for the pages.The user is taken to a particular page on clicking on the title in this custom sidebar block. These kinks would not be related to any node etc. Its just a list of links.

I've created a CCK content type to capture the info. It has a CCK link data field type that requests the user to enter a title(eg. Google Homepage) for the link and the related ur(www.google.com). However, only the actual url (google.com) gets displayed in a list or table view.

Has anyone had a similar issue ? Is there a better way to do this. I've looked at the related links modue. not inclined to use it..

Any ideas ?

No good module solution?

ow1n - April 26, 2007 - 15:22

There's a real hodgepodge of not-quite-usable links management stuff around for Drupal, but none really seem perfect to me. The biggest problem seems to be the tendency to display a link title as a link to the node, and the link URL as the link to the destination. What I ended up doing was creating an additional field to hold the URL (rather than use the CCK link type) so that I could create a custom template and wrap the URL around the link title. Maybe someone can chime in with a better suggestion if there is one.

rap the URL around the link title.

dhar - April 26, 2007 - 15:32

I'm a relative newbie...not sure what you mean by "wrap the URL around the link title". Would you be able to elaborate ?

userlinks module

pban02 - November 12, 2007 - 22:17

The userlinks module does exactly what you are looking for

 
 

Drupal is a registered trademark of Dries Buytaert.