It's common practice on "stuff" blogs to reference where you found something. These links are usually labeled source, or VIA. I'm trying to set up something similar on my drupal install.

When creating content, a user should be able to enter a website name, and url, and I'd like to have this link at the bottom, below their post.

I'm sort of on my way. Right now I've created two fields: SourceName and SourceURL. I can get both of these to display below the post, but obviously I want to plug the SourceURL field into an anchor so that it becomes an actual link.

How can I get these fields to display as

VIA <a href=SourceURL>SourceName</a>

Is this even the "right way" to be implementing this feature?

Comments

hansyg’s picture

You can add this
http://drupal.org/project/link

It will give you options for a link field, with title, source URL and options for external linking. Install and then recreate your field for your content type.

convoke’s picture

That's perfect. Thanks man!