<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
 <title>Drupal High</title>
 <link>http://drupalhigh.onsugar.com</link>
 <description>Simple musings of a Drupal developer.</description>
 <language>en</language>
 <atom:link href="http://drupalhigh.onsugar.com/tag/cck/rss" rel="self" type="application/rss+xml" />
<item>
 <title>link fields and tokens</title>
 <link>http://drupalhigh.onsugar.com/2672729</link>
 <description>&lt;a href=&quot;http://drupalhigh.onsugar.com/2672729&quot;&gt;&lt;img  width=160 height=68  src=&#039;http://media.onsugar.com/files/ons/205/2054838/02_2009/afd951c32ad50771_Picture_4.large.jpg&#039;&gt;&lt;/div&gt;&lt;/a&gt;&lt;p&gt;Did you know the CCK Link field can accept tokens in the link title? I didn&#039;t. Now the link module provides all kinds of ways to format the combination of url + title that get entered, but when asked to have the actual &lt;b&gt;node title&lt;/b&gt; link to the given url - I thought for sure I would have to resort to writing some code, either in template.php or in a tpl file.&lt;/p&gt;
&lt;p&gt;But the Link module and Token module together made it easy. Set the Title to &quot;static title&quot; - this way the user will never be prompted when creating a node, and remember this is the link title, not the node title. Then set it to the token [title-raw] and you&#039;re done! CCK and possibly Views will all work together to get you something like &amp;lt;a href=&quot;[user entered url]&quot;&amp;gt;[node title]&amp;lt;/a&amp;gt;!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description>
 <comments>http://drupalhigh.onsugar.com/2672729#comment</comments>
 <category domain="http://www.teamsugar.com/category/drupal">drupal</category>
 <category domain="http://www.teamsugar.com/tag/cck">cck</category>
 <pubDate>Wed, 07 Jan 2009 22:30:13 -0800</pubDate>
 <dc:creator>krs</dc:creator>
 <guid>http://drupalhigh.onsugar.com/2672729</guid>
</item>
</channel>
</rss>
