<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Writing a CMS/Community with Smarty and the Zend Framework: Part 6</title>
	<link>http://www.prodevtips.com/2007/12/07/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-6/</link>
	<description>Dev related notes, tutorials and anecdotes</description>
	<pubDate>Thu, 24 Jul 2008 23:43:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Henrik</title>
		<link>http://www.prodevtips.com/2007/12/07/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-6/#comment-182</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Fri, 21 Dec 2007 05:12:47 +0000</pubDate>
		<guid>http://www.prodevtips.com/2007/12/07/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-6/#comment-182</guid>
		<description>The view gallery logic didn't work as expected, I've had to change it some. Here is the current version with a spacer at the bottom and the inclusion of dimensions:
&lt;pre&gt;&lt;code class="html"&gt;
{config_load file="$config_file"}
&lt;script src="{$baseUrl}/js/jquery.js" language="JavaScript"&gt;&lt;/script&gt;
&lt;script language="JavaScript" src="{$baseUrl}/js/dimensions.js"&gt;&lt;/script&gt;
&lt;script src="{$baseUrl}/js/scrollTo.js" language="JavaScript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
	  // &lt;![CDATA[
	  var galleryDir 	= "{$baseUrl}"+"/{$gallery_dir}";
	  {literal}
	  function showMainPic(pic){
	  	var inner_html = '&lt;img src="'+galleryDir+pic+'"/&gt;';
		$("#mainPic").html(inner_html);
		var scroll_to = $("#mainPic").position();
		$.scrollTo(scroll_to.top + ( $("#mainPic").height() / 2 ), {speed:500});
	  }
	  {/literal}
	  // ]]&gt;
&lt;/script&gt;

&lt;div id="thumbs"&gt;
	{if !empty($thumbs)}
		{foreach from=$thumbs item=thumb}
			&lt;a href="javascript:showMainPic('{$thumb}')"&gt;
				&lt;img class="gallery_thumb" src="{$baseUrl}/{$thumb_dir}{$thumb}"/&gt;
			&lt;/a&gt;
		{/foreach}
	{else}
		{#no_pics#}
	{/if}
&lt;/div&gt;
&lt;div id="mainPic"&gt;&lt;/div&gt;
&lt;div style="height:500px"&gt;&#160;&lt;/div&gt;
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>The view gallery logic didn&#8217;t work as expected, I&#8217;ve had to change it some. Here is the current version with a spacer at the bottom and the inclusion of dimensions:</p>
<pre><pre><code class="html">{config_load file="$config_file"}
&lt;script src="{$baseUrl}/js/jquery.js" language="JavaScript"&gt;&lt;/script&gt;
&lt;script language="JavaScript" src="{$baseUrl}/js/dimensions.js"&gt;&lt;/script&gt;
&lt;script src="{$baseUrl}/js/scrollTo.js" language="JavaScript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
	  // &lt;![CDATA[
	  var galleryDir 	= "{$baseUrl}"+"/{$gallery_dir}";
	  {literal}
	  function showMainPic(pic){
	  	var inner_html = '&lt;img src="'+galleryDir+pic+'"/&gt;';
		$("#mainPic").html(inner_html);
		var scroll_to = $("#mainPic").position();
		$.scrollTo(scroll_to.top + ( $("#mainPic").height() / 2 ), {speed:500});
	  }
	  {/literal}
	  // ]]&gt;
&lt;/script&gt;

&lt;div id="thumbs"&gt;
	{if !empty($thumbs)}
		{foreach from=$thumbs item=thumb}
			&lt;a href="javascript:showMainPic('{$thumb}')"&gt;
				&lt;img class="gallery_thumb" src="{$baseUrl}/{$thumb_dir}{$thumb}"/&gt;
			&lt;/a&gt;
		{/foreach}
	{else}
		{#no_pics#}
	{/if}
&lt;/div&gt;
&lt;div id="mainPic"&gt;&lt;/div&gt;
&lt;div style="height:500px"&gt;&amp;nbsp;&lt;/div&gt;</code></pre></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://www.prodevtips.com/2007/12/07/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-6/#comment-73</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Sat, 08 Dec 2007 02:24:22 +0000</pubDate>
		<guid>http://www.prodevtips.com/2007/12/07/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-6/#comment-73</guid>
		<description>After the next part which will deal with the blog requirements I will clean up the code and do some refactoring, when that is done I will post the whole thing with database and all.

And no we don't have svn or cvs here yet, we're not that advanced or big at the moment :)</description>
		<content:encoded><![CDATA[<p>After the next part which will deal with the blog requirements I will clean up the code and do some refactoring, when that is done I will post the whole thing with database and all.</p>
<p>And no we don&#8217;t have svn or cvs here yet, we&#8217;re not that advanced or big at the moment <img src='http://www.prodevtips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chauncey Thorn</title>
		<link>http://www.prodevtips.com/2007/12/07/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-6/#comment-70</link>
		<dc:creator>Chauncey Thorn</dc:creator>
		<pubDate>Fri, 07 Dec 2007 18:11:50 +0000</pubDate>
		<guid>http://www.prodevtips.com/2007/12/07/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-6/#comment-70</guid>
		<description>Never mind - notice you answered my question is Part 1. Now the question is do you have this setup in svn or cvs - so we can follow the progress there...?

Thanks.</description>
		<content:encoded><![CDATA[<p>Never mind - notice you answered my question is Part 1. Now the question is do you have this setup in svn or cvs - so we can follow the progress there&#8230;?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: developercast.com &#187; ProDevTips.com: Writing a CMS/Community with Smarty and the Zend Framework: Part 6</title>
		<link>http://www.prodevtips.com/2007/12/07/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-6/#comment-69</link>
		<dc:creator>developercast.com &#187; ProDevTips.com: Writing a CMS/Community with Smarty and the Zend Framework: Part 6</dc:creator>
		<pubDate>Fri, 07 Dec 2007 15:48:45 +0000</pubDate>
		<guid>http://www.prodevtips.com/2007/12/07/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-6/#comment-69</guid>
		<description>[...] has posted the sixth part of their series using the Zend Framework to create a CMS/Community website with Smarty. This time [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] has posted the sixth part of their series using the Zend Framework to create a CMS/Community website with Smarty. This time [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chauncey Thorn</title>
		<link>http://www.prodevtips.com/2007/12/07/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-6/#comment-68</link>
		<dc:creator>Chauncey Thorn</dc:creator>
		<pubDate>Fri, 07 Dec 2007 15:12:57 +0000</pubDate>
		<guid>http://www.prodevtips.com/2007/12/07/writing-a-cmscommunity-with-smarty-and-the-zend-framework-part-6/#comment-68</guid>
		<description>Will the code for this tutorial be made available?</description>
		<content:encoded><![CDATA[<p>Will the code for this tutorial be made available?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
