Hey All,

I'm trying to create a facility for my users to post interesting links to our company website. The behaviour I'm looking for is:

1. User posts custom title for the link and the URL into a custom piece of content "Interesting Link" (created with CCK)
2. Using views, a list of these titles is outputted to a block - the titles are only displayed and linked to the page specified in the HREF
3. A site view can browse this list and go to any of the links displayed by clicking on it (the link then opens in a new window)

This should be simple to do, but for the life of me, I can't see a way to it - especially the linking of the title and the custom field of the url.

Any ideas anybody?

Thanks!

Comments

pixelz’s picture

Hey all - sorry if this is a stupid question, but I really need some help on this - any ideas?

MidGe48’s picture

Web Links module does jallow you to do just that if I understand you needs correctly.

www.ZuNOB.com

jtolj’s picture

Hi pixelz,

I would use the contemplate module (or interesting_links-node.tpl.php) to format the node body or teaser the way you want, then just display it in your view.

With contemplate, it would look something like: (replace $node_field_url with your cck field)

<?php
print '<a href="' .  $node_field_url[0]['view'] . '" target="_BLANK">' . $node->title . '</a>';
?>

Hope that helps...

nancydru’s picture

Web Links will do this and more. And all the maintenance and permission stuff is already taken care of for you.