<?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>Page comments</title>
		<link>http://www.ssbits.com/home/</link>
		<atom:link href="http://www.ssbits.com/home/" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_2591</link>
			<description>Is there an SS3 tutorial version of this? Or similar?</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_2591</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1979</link>
			<description>Hi theRoom

Add your images to the $has_one relation, rather than the has_many, as technically it has one 'Photo_1' and one 'Photo_2'.

Aram</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1979</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1978</link>
			<description>Hi Aram, thanks for the great tutorial, I've used it many times already!
Now I'm trying to use it again having 2 images per staff member, how do I do it? I've tried this but doesn't really work:

//Relations
    static $has_one = array (
        'ProductPage' =&gt; 'ProductPage',
    );

    static $has_many = array (
        'Photo_1' =&gt; 'Image',
        'Photo_2' =&gt; 'Image'
    );

Any advice please?
Thanks a lot</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1978</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1834</link>
			<description>You can move Breadcrumbs() into model if you replace $this-&gt;getStaffMember() with $this-&gt;CurrentPage()-&gt;getStaffMember() .</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1834</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1828</link>
			<description>Ok ignore the above - I have this working using Files as pages instead of DataObjects (because I'm using Uncle Cheese's KickAssets) - the details are on this post:
http://www.silverstripe.org/general-questions/show/19748

Along with a couple of questions that I think experienced Silverstripers might be able to help me with. </description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1828</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1827</link>
			<description>Any tips on getting this to work with many_many files?
I'm using Uncle Cheese's KickAssets module which makes adding multiple files (photos) to each page in the CMS nice and easy... but I'd like to be able to show these on the front end on individual page if clicked. eg. /show/ID

But can't get this to work and I think it's because my dataobjects (Files) are many_many instead of has_many. 

My Page.php uses:

static $many_many = array (
'Photos' =&gt; 'File'
);

public function ShowPhotos($limit = null) {
$data = $this-&gt;getManyManyComponents('Photos', '', 'ManyManySort', '', $limit); 
return $data; 
}

Any ideas or tips would be appreciated - thanks!</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1827</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1813</link>
			<description>Hi Aram, 
What if the staffmember should have many images ? like mulitple uploads, what should i do ?

use ImageField with hasmany photos ?
Please advise :)
</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1813</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1313</link>
			<description>Hi Thomas, that is going to be pretty tricky to achieve. The best way to do this would be to build the form in the Controller rather than trying to use the UserForms module. You will need to create a hidden field with the ID of the staff member you are currently viewing so that when you process the form submission you know who to send it to.

Have a look at the Contact Form Tutorial to get you started: http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1313</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1312</link>
			<description>Hi Aram,

i simple want to provide a contactform on the staffdetailspage (staff_show.ss). but i dont get a clue how to stick togehter the userform/form and this fine piece of code. I guess i need to build the form in the StaffMember.php and not in the StaffPage.php. Or am i wrong? And how to pass the mailvariable to the form? 

Can you give me a tip or point to a tutorial/snippet, please. Thanks a lot. </description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1312</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1263</link>
			<description>Got it to work, by changing &lt;% control StaffMembers.groupBy(Role) %&gt;
to &lt;% control StaffMembers.GroupedBy(Role) %&gt;</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/#PageComment_1263</guid>
		</item>
		

	</channel>
</rss>