<?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: How do I get the Page Type of the Parent.</title>
			<link>http://www.silverstripe.org/archive/show/237597?start=0#post240987</link>
			<description>&lt;p&gt;Thank you for your answer. I am still trying to get a handle on PHP classes and how inheritance works. I assume that $this is a reference to the current page being displayed. However it seems that if I get the value of $this in the page, it is different than if I get the value in the page_controller. In the  case of &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$this-&amp;gt;Parent()-&amp;gt;ClassName&lt;/p&gt;&lt;/div&gt;, &lt;/p&gt;&lt;p&gt;do I call it in the page or controller and why?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How do I get the Page Type of the Parent. &lt;a href=&quot;http://www.silverstripe.org/archive/show/237597?start=0#post240987&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/237597?start=0#post240987&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 02 Dec 2008 06:36:41 +1300</pubDate>
			<dc:creator>micahsheets</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/237597?start=0#post240987</guid>
		</item>
		
		<item>
			<title>Re: How do I get the Page Type of the Parent.</title>
			<link>http://www.silverstripe.org/archive/show/237597?start=0#post238535</link>
			<description>&lt;p&gt;&amp;lt;% control Parent %&amp;gt; just calls $this-&amp;gt;Parent() if that method exists, or $this-&amp;gt;Parent if the method doesn't.&lt;/p&gt;&lt;p&gt;So, to do what you want, use:&lt;/p&gt;&lt;p&gt;$this-&amp;gt;Parent()-&amp;gt;ClassName&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How do I get the Page Type of the Parent. &lt;a href=&quot;http://www.silverstripe.org/archive/show/237597?start=0#post238535&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/237597?start=0#post238535&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 28 Nov 2008 10:31:12 +1300</pubDate>
			<dc:creator>Sam</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/237597?start=0#post238535</guid>
		</item>
		
		<item>
			<title>How do I get the Page Type of the Parent.</title>
			<link>http://www.silverstripe.org/archive/show/237597#post237597</link>
			<description>&lt;p&gt;I would like to know how to get the Page Type of the Parent of the current page. All my level(2) pages are of the same page type, however the parent pages are of various types. I need to make changes in the child pages based on what the parent page's page type is.&lt;/p&gt;&lt;p&gt;I want to do this in the Class php file not in the template so &amp;lt;% control Parent %&amp;gt; won't work for me.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How do I get the Page Type of the Parent. &lt;a href=&quot;http://www.silverstripe.org/archive/show/237597#post237597&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/237597#post237597&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 27 Nov 2008 11:20:05 +1300</pubDate>
			<dc:creator>micahsheets</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/237597#post237597</guid>
		</item>
		

	</channel>
</rss>