I'm currently migrating an existing Website to Drupal. Every article node should have an optional block on the right sidebar for displaying context related nodes such as internal/external links, downloads and videos. The editor should be able to select the related nodes and to set the label for the displayed link.

My problem is I can't find appropriate modules to implement this.
Does anybody has an idea how to solve this?

Thx in advaance
-Alex

Comments

mpare’s picture

I can't think of a module right off that does this, though there are so many that one may exist that I don't even know about. However, this would be relatively simple to build your own custom module that would query the necessary database tables and theme the content links accordingly. A great place to start for module development is the drupal module hand books, and IBM has had a series of nice articles that walk you through the steps, though the IBM articles were build on Drupal 4.7 most of the information transfers rather nicely though some minor changes would be necessary.

Sorry I didn't have you an instant answer but I hope the above mentioned information helps in some way.

Cheers,
-mpare
--
Pare Technologies
Drupal Consulting, Themeing, and Module Development
806.781.8324 | 806.733.3025
www.paretech.com

Figure Something Out? Document Your Success!

al.ex’s picture

Thank you for the quick response mpare. I was afraid that there's probably no tailored solution to my problem.

The Attachments module is pretty ok for most of the stuff like downloads and videos, but it logically requires a file to be uploaded for every item, so this is not really the best way to add URLs for context links. You could just always upload a dummyfile for every link and then use the title or description field for the URL, but I think this could be worked around with a little hack, to permit storing such link-attachments without files, if the title field contains "http://" or "ftp://".

I usually prefer to avoid workarounds in modules, cause it's always annoying me to update them later on...

-Alex

klapper’s picture

Take a look at the CCK module and its Add-Ons. Together with Views this should be possible without a line of code.

mimhakkuh’s picture

I'm currently also trying to get link fields (cck) displayed via context-related sidebar blocks. This means that one block with e.g. 3 links would show only next to one single node - the node inside which the links were entered.

Did someone manage to actually realise this using views & cck? Some help would be appreciated as I actually don't have a clue on how to set up views for this.

EDIT: I've moved this question onto following URL:
http://drupal.org/node/338573#comment-1125216

mimhakkuh’s picture

I think this module should fit some of yr needs - though its not ported to D6 yet:

http://drupal.org/project/relatedlinks