<?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: Filling in a field automatically</title>
			<link>http://www.silverstripe.org/archive/show/85210?start=0#post88374</link>
			<description>&lt;p&gt;Thanks dio5.&lt;br /&gt;That's exactly what I needed.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Filling in a field automatically &lt;a href=&quot;http://www.silverstripe.org/archive/show/85210?start=0#post88374&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/85210?start=0#post88374&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 09 Jun 2008 22:33:16 +1200</pubDate>
			<dc:creator>cerelac</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/85210?start=0#post88374</guid>
		</item>
		
		<item>
			<title>Re: Filling in a field automatically</title>
			<link>http://www.silverstripe.org/archive/show/85210?start=0#post85724</link>
			<description>&lt;p&gt;Yes, sure this is possible.&lt;/p&gt;&lt;p&gt;Just do something like this in the getCMSFields function:&lt;/p&gt;&lt;p&gt;$member = Member::currentUser();&lt;br /&gt;$fields-&amp;gt;addFieldToTab(&quot;Root.Content.Main&quot;, new TextField(&quot;Author&quot;, &quot;Author&quot;, $member-&amp;gt;FirstName . &quot; &quot; . $member-&amp;gt;Surname));&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Filling in a field automatically &lt;a href=&quot;http://www.silverstripe.org/archive/show/85210?start=0#post85724&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/85210?start=0#post85724&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 07 Jun 2008 08:18:10 +1200</pubDate>
			<dc:creator>dio5</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/85210?start=0#post85724</guid>
		</item>
		
		<item>
			<title>Filling in a field automatically</title>
			<link>http://www.silverstripe.org/archive/show/85210#post85210</link>
			<description>&lt;p&gt;Hi everyone.&lt;/p&gt;&lt;p&gt;I would like to know if it's possible to fill the Author field of the ArticlePage example (tutorial 2), automatically.&lt;br /&gt;I was thinking about some way to identify the username that is adding the content (something like a $username variable), and fill the DB field with his/her username without typing it (without filling the author field with his/her name manually).&lt;/p&gt;&lt;p&gt;Best regards.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Filling in a field automatically &lt;a href=&quot;http://www.silverstripe.org/archive/show/85210#post85210&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/85210#post85210&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 07 Jun 2008 02:37:27 +1200</pubDate>
			<dc:creator>cerelac</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/85210#post85210</guid>
		</item>
		

	</channel>
</rss>