<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Archive'</title>
		<link>http://www.silverstripe.org/archive/rss</link>
		<atom:link href="http://www.silverstripe.org/archive/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: Alt text on images</title>
			<link>http://www.silverstripe.org/archive/show/212276?start=0#post212317</link>
			<description>&lt;p&gt;Thanks a lot for a quick response!&lt;/p&gt;&lt;p&gt;Your suggestion seems to work fine, except that $Title doesn't seem to be the name of the variable holding the image title (the alt field in the generated html is still blank).&lt;/p&gt;&lt;p&gt;So, anyone knows the name of the image title variable? (or where to find it in the documantation...)&lt;/p&gt;&lt;p&gt;/Jens&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Alt text on images &lt;a href=&quot;http://www.silverstripe.org/archive/show/212276?start=0#post212317&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/212276?start=0#post212317&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 22 Oct 2008 21:18:31 +1300</pubDate>
			<dc:creator>superautomatic</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/212276?start=0#post212317</guid>
		</item>
		
		<item>
			<title>Re: Alt text on images</title>
			<link>http://www.silverstripe.org/archive/show/212276?start=0#post212298</link>
			<description>&lt;p&gt;Hey superautomatic,&lt;/p&gt;&lt;p&gt;You should be able to do something like this:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if Photo %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control Photo.SetWidth(130) %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;img src=&quot;$URL&quot; alt=&quot;$Title&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Alt text on images &lt;a href=&quot;http://www.silverstripe.org/archive/show/212276?start=0#post212298&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/212276?start=0#post212298&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 22 Oct 2008 20:58:40 +1300</pubDate>
			<dc:creator>ajshort</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/212276?start=0#post212298</guid>
		</item>
		
		<item>
			<title>Alt text on images</title>
			<link>http://www.silverstripe.org/archive/show/212276#post212276</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am using resized images in a couple of templates, and was wondering how to set the alt attribute on those.&lt;/p&gt;&lt;p&gt;I've extended the Page class with &lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Photo' =&amp;gt; 'Image',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;and I call the image in the template with:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if Photo %&amp;gt;&lt;br /&gt;      $Photo.SetWidth(130)&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;And thats all fine. But say I would like to use the image title (set in Files &amp;amp; Images) as the alt text for the image - How do I do that?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Alt text on images &lt;a href=&quot;http://www.silverstripe.org/archive/show/212276#post212276&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/212276#post212276&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 22 Oct 2008 20:41:56 +1300</pubDate>
			<dc:creator>superautomatic</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/212276#post212276</guid>
		</item>
		

	</channel>
</rss>