Community

Unlimited text field type and unordered list with links

I'm continually amazed at how powerful drupal can be. Im using Drupal 7 and right now I am curious to see if its possible to create a field for a custom content type where I enter text that becomes links via an unordered list. I would love if I could enter this into the CMS without having to go into the code.

I managed to find a way of creating the unordered list by customizing the field template file (field.tpl.php) which is great, but curious if there is a way to wrap the text items in an href.

<ul>
<li><a href="link1.com">Link 1</a></li>
<li><a href="link2.com">Link 2</a></li>
<li><a href="link3.com">Link 3</a></li>
</ul>

I tried to add the links in drupal and then have it show up in the front end, but the code was output in the browser.

<a href="link1.com">Link 1</a>
<a href="link2.com">Link 2</a>
<a href="link3.com">Link 3</a>

It would be nice to have it be with no code in case anyone without knowing how to do that could enter it at a later date.

Thanks all!

Comments

Found a perfect module

After a bit more searching I found a perfect module to do this called Link.

nobody click here