<?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: Blog - show full post</title>
			<link>http://www.silverstripe.org/archive/show/156177?start=0#post159727</link>
			<description>&lt;p&gt;Played some more and found that &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function mytlittletest() {&lt;br /&gt;              return this-&amp;gt;ParsedContent()  ;&lt;br /&gt;      }&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;returned my the full blog entry  but&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function mytlittletest() {&lt;br /&gt;              return this-&amp;gt;ParsedContent()  ;&lt;br /&gt;      }&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;Always returned 4 for ALL the entries on my summary page (maybe just coincidence but that was the number of characters in my very short test post.&lt;/p&gt;&lt;p&gt;Anyway playing about a bit&lt;/p&gt;&lt;p&gt;and changing the original ParsedContent() function from&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function ParsedContent() {&lt;br /&gt;                $parser = new BBCodeParser($this-&amp;gt;Content);&lt;br /&gt;                $content = new Text('Content');&lt;br /&gt;                $content-&amp;gt;value =$parser-&amp;gt;parse();&lt;br /&gt;                return $content;&lt;br /&gt;        }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;to &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function ParsedContent() {&lt;br /&gt;                $parser = new BBCodeParser($this-&amp;gt;Content);&lt;br /&gt;                $content = new Text('Content');&lt;br /&gt;                $content-&amp;gt;value =  Convert::raw2xml($this-&amp;gt;Content);&lt;br /&gt;                return $parser-&amp;gt;parse();&lt;br /&gt;        }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;seemed to cure the problem and I was able to use &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function ShowFullPost() {&lt;br /&gt;      if ($this-&amp;gt;ParsedContent() == $this-&amp;gt;ParagraphSummary()) {&lt;br /&gt;         return false;&lt;br /&gt;      } else {&lt;br /&gt;         return true;&lt;br /&gt;      }&lt;br /&gt;   }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Apart from the fact I have changed the released code, can anyone see any other issues with this solution??&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Blog - show full post &lt;a href=&quot;http://www.silverstripe.org/archive/show/156177?start=0#post159727&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/156177?start=0#post159727&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 03 Sep 2008 09:35:31 +1200</pubDate>
			<dc:creator>planetbrain</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/156177?start=0#post159727</guid>
		</item>
		
		<item>
			<title>Re: Blog - show full post</title>
			<link>http://www.silverstripe.org/archive/show/156177?start=0#post159688</link>
			<description>&lt;p&gt;Well I struggled to get any of the previous suggestions to work and ended up with the following rough and ready solution.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class BlogEntry extends Page {&lt;br /&gt;   .&lt;br /&gt;   .&lt;br /&gt;   . &lt;br /&gt;        function ShowFullPost() {&lt;br /&gt;                if ( strlen($this-&amp;gt;Content) &amp;gt; ( strlen($this-&amp;gt;ParagraphSummary()) -7 )   )  {&lt;br /&gt;                        return true;&lt;br /&gt;                } else {&lt;br /&gt;                        return false;&lt;br /&gt;                }&lt;br /&gt;        }&lt;/p&gt;&lt;p&gt;.&lt;br /&gt;.&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;This assumes (probably incorrectly) that the ParagraphSummary is simply the first paragraph wrapped in a &amp;lt;p&amp;gt;....&amp;lt;/p&amp;gt; tag, hence the -7&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Blog - show full post &lt;a href=&quot;http://www.silverstripe.org/archive/show/156177?start=0#post159688&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/156177?start=0#post159688&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 03 Sep 2008 08:41:36 +1200</pubDate>
			<dc:creator>planetbrain</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/156177?start=0#post159688</guid>
		</item>
		
		<item>
			<title>Re: Blog - show full post</title>
			<link>http://www.silverstripe.org/archive/show/156177?start=0#post157552</link>
			<description>&lt;p&gt;I think the problem is in the fact that the FirstParagraph() function in the Text class does all sorts of fancy substrings and stuff like that - so it will return a slightly different result. I think something like this would be a better solution, as it uses the same logic checking as the FirstParagraph() function when checking for new paragraphs:&lt;/p&gt;&lt;p&gt;Note I havent tested it with the blog module, but the algorithim itself should work.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class BlogEntry&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function ShowFullPost()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(self::$allow_wysiwyg_editing) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(strpos($this-&amp;gt;Content, '&amp;lt;/p&amp;gt;') === false) return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(strpos($this-&amp;gt;Content, '&amp;lt;/p&amp;gt;') == (strlen($this-&amp;gt;Content) - 4)) return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(strpos($this-&amp;gt;Content, &quot;\n\n&quot;) ===  false) return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(strpos($this-&amp;gt;Content, &quot;\n\n&quot;) == (strlen($this-&amp;gt;Content) - 2)) return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Edit: fixed up formatting&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Blog - show full post &lt;a href=&quot;http://www.silverstripe.org/archive/show/156177?start=0#post157552&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/156177?start=0#post157552&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 31 Aug 2008 11:16:01 +1200</pubDate>
			<dc:creator>ajshort</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/156177?start=0#post157552</guid>
		</item>
		
		<item>
			<title>Re: Blog - show full post</title>
			<link>http://www.silverstripe.org/archive/show/156177?start=0#post157526</link>
			<description>&lt;p&gt;That gives the same result.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Blog - show full post &lt;a href=&quot;http://www.silverstripe.org/archive/show/156177?start=0#post157526&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/156177?start=0#post157526&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 31 Aug 2008 09:41:45 +1200</pubDate>
			<dc:creator>planetbrain</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/156177?start=0#post157526</guid>
		</item>
		
		<item>
			<title>Re: Blog - show full post</title>
			<link>http://www.silverstripe.org/archive/show/156177?start=0#post157520</link>
			<description>&lt;p&gt;Try using $this-&amp;gt;ParsedContent() instead of $this-&amp;gt;Content()&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Blog - show full post &lt;a href=&quot;http://www.silverstripe.org/archive/show/156177?start=0#post157520&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/156177?start=0#post157520&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 31 Aug 2008 09:26:24 +1200</pubDate>
			<dc:creator>simon_w</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/156177?start=0#post157520</guid>
		</item>
		
		<item>
			<title>Re: Blog - show full post</title>
			<link>http://www.silverstripe.org/archive/show/156177?start=0#post157483</link>
			<description>&lt;p&gt;This doesn't quite seem  to work for me!&lt;/p&gt;&lt;p&gt;It always returns true , and displays the link&lt;/p&gt;&lt;p&gt;The ShowFullPost function is definitely being called, as if I reverse the true/false return values then it always returns false.&lt;/p&gt;&lt;p&gt;Any ideas what might be wrong?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Blog - show full post &lt;a href=&quot;http://www.silverstripe.org/archive/show/156177?start=0#post157483&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/156177?start=0#post157483&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 31 Aug 2008 08:36:58 +1200</pubDate>
			<dc:creator>planetbrain</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/156177?start=0#post157483</guid>
		</item>
		
		<item>
			<title>Re: Blog - show full post</title>
			<link>http://www.silverstripe.org/archive/show/156177?start=0#post157005</link>
			<description>&lt;p&gt;Thanks, I'll give that a try.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Blog - show full post &lt;a href=&quot;http://www.silverstripe.org/archive/show/156177?start=0#post157005&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/156177?start=0#post157005&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 30 Aug 2008 08:44:42 +1200</pubDate>
			<dc:creator>planetbrain</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/156177?start=0#post157005</guid>
		</item>
		
		<item>
			<title>Re: Blog - show full post</title>
			<link>http://www.silverstripe.org/archive/show/156177?start=0#post156794</link>
			<description>&lt;p&gt;Hi-&lt;/p&gt;&lt;p&gt;You certainly can!  I tried this...&lt;/p&gt;&lt;p&gt;In your BlogEntry.php file:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class BlogEntry extends Page {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function ShowFullPost() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ($this-&amp;gt;Content == $this-&amp;gt;ParagraphSummary()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;In your /templates/Includes/BlogSummary.ss file:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;p class=&quot;blogVitals&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;a href=&quot;$Link#PageComments_holder&quot; class=&quot;comments&quot; title=&quot;View Comments for this post&quot;&amp;gt;$Comments.Count comments&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% if ShowFullPost %&amp;gt; | &amp;lt;a href=&quot;$Link&quot; class=&quot;readmore&quot; title=&quot;Read Full Post&quot;&amp;gt;Read the full post&amp;lt;/a&amp;gt;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/p&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Blog - show full post &lt;a href=&quot;http://www.silverstripe.org/archive/show/156177?start=0#post156794&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/156177?start=0#post156794&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 30 Aug 2008 02:21:32 +1200</pubDate>
			<dc:creator>SmartPlugsDesign</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/156177?start=0#post156794</guid>
		</item>
		
		<item>
			<title>Blog - show full post</title>
			<link>http://www.silverstripe.org/archive/show/156177#post156177</link>
			<description>&lt;p&gt;Does anyone know if there is a way to have the blog summary page only display the &quot;show full post&quot; link only if there is more to display than what is already being displayed.&lt;/p&gt;&lt;p&gt;many thanks&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Blog - show full post &lt;a href=&quot;http://www.silverstripe.org/archive/show/156177#post156177&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/156177#post156177&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 29 Aug 2008 09:46:17 +1200</pubDate>
			<dc:creator>planetbrain</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/156177#post156177</guid>
		</item>
		

	</channel>
</rss>