<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unchi</title>
	<atom:link href="http://www.unchi.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unchi.co.uk</link>
	<description>Web development stuff, yeah</description>
	<lastBuildDate>Mon, 20 Feb 2012 10:57:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Forcing Paste Clean-up in TinyMCE (All Installations and MODx Evolution)</title>
		<link>http://www.unchi.co.uk/2012/02/20/forcing-paste-clean-up-in-tinymce-all-installations-and-modx-evolution/</link>
		<comments>http://www.unchi.co.uk/2012/02/20/forcing-paste-clean-up-in-tinymce-all-installations-and-modx-evolution/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 10:57:50 +0000</pubDate>
		<dc:creator>Keiron</dc:creator>
				<category><![CDATA[MODx]]></category>
		<category><![CDATA[paste]]></category>
		<category><![CDATA[tinymce]]></category>
		<category><![CDATA[word]]></category>

		<guid isPermaLink="false">http://www.unchi.co.uk/?p=1162</guid>
		<description><![CDATA[Sometimes when using the TinyMCE WYSIWYG clients will paste copy from Word but fail to use the paste from Word...]]></description>
			<content:encoded><![CDATA[<p>Sometimes when using the TinyMCE WYSIWYG clients will paste copy from Word but fail to use the paste from Word options. It is possible to force their hand buy adding this options:</p>
<blockquote><p>paste_auto_cleanup_on_paste : true,<br />
paste_remove_styles: true,<br />
paste_remove_styles_if_webkit: true,<br />
paste_strip_class_attributes: true,</p></blockquote>
<p>In MODx Evolution you can add this in the following way in Elements &gt; Manage Elements &gt; Plugins &gt; TinyMCE &gt; Configuration add this:</p>
<blockquote><p>&amp;paste_auto_cleanup_on_paste=true;<br />
&amp;paste_remove_styles=true;<br />
&amp;paste_remove_styles_if_webkit=true;<br />
&amp;paste_strip_class_attributes=true;</p></blockquote>
<div class="coffee"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="keiron@jerram.co.uk" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Buy me a coffee for Forcing Paste Clean-up in TinyMCE (All Installations and MODx Evolution)" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.unchi.co.uk/wp-content/plugins/buy-me-beer/icon_cafe.png" align="left" alt="Like this? Maybe you could buy me a coffee" title="Like this? Maybe you could buy me a coffee" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=keiron@jerram.co.uk&amp;currency_code=GBP&amp;amount=&amp;return=&amp;item_name=Buy+me+a+coffee+for+Forcing+Paste+Clean-up+in+TinyMCE+(All+Installations+and+MODx+Evolution)" target="paypal"><strong>Like this?</strong> Maybe you could buy me a coffee.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.unchi.co.uk/2012/02/20/forcing-paste-clean-up-in-tinymce-all-installations-and-modx-evolution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieving Missing Link List in MODx Evolution</title>
		<link>http://www.unchi.co.uk/2012/02/20/retrieving-missing-link-list-in-modx-evolution/</link>
		<comments>http://www.unchi.co.uk/2012/02/20/retrieving-missing-link-list-in-modx-evolution/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 10:13:20 +0000</pubDate>
		<dc:creator>Keiron</dc:creator>
				<category><![CDATA[MODx]]></category>
		<category><![CDATA[missinglink]]></category>
		<category><![CDATA[tinymce]]></category>

		<guid isPermaLink="false">http://www.unchi.co.uk/?p=1158</guid>
		<description><![CDATA[It seems it is a cache issue, what seemed to fix it was: Tools &#62; Configuration &#62; Interface and Features...]]></description>
			<content:encoded><![CDATA[<p>It seems it is a cache issue, what seemed to fix it was:</p>
<p>Tools &gt; Configuration &gt; Interface and Features &gt; Editor to Use &gt; TinyMCE<br />
Tools &gt; Configuration &gt; Interface and Features &gt; Theme &gt; Custom</p>
<p>Then, under user accounts I did the same:</p>
<p>Security &gt; Manager Users &gt; {username} &gt; User &gt; Editor to Use &gt; TinyMCE<br />
Security &gt; Manager Users &gt; {username} &gt; User &gt; Theme &gt; Custom</p>
<p>Clear cache, logout, restart browser.</p>
<p>Shouldn&#039;t need to do this again, it should be a permanent fix. It will be worth updating the account settings for any user created.</p>
<div class="coffee"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="keiron@jerram.co.uk" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Buy me a coffee for Retrieving Missing Link List in MODx Evolution" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.unchi.co.uk/wp-content/plugins/buy-me-beer/icon_cafe.png" align="left" alt="Like this? Maybe you could buy me a coffee" title="Like this? Maybe you could buy me a coffee" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=keiron@jerram.co.uk&amp;currency_code=GBP&amp;amount=&amp;return=&amp;item_name=Buy+me+a+coffee+for+Retrieving+Missing+Link+List+in+MODx+Evolution" target="paypal"><strong>Like this?</strong> Maybe you could buy me a coffee.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.unchi.co.uk/2012/02/20/retrieving-missing-link-list-in-modx-evolution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Marking Products in Magento as Pre-order</title>
		<link>http://www.unchi.co.uk/2012/02/20/marking-products-in-magento-as-pre-order/</link>
		<comments>http://www.unchi.co.uk/2012/02/20/marking-products-in-magento-as-pre-order/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 09:57:36 +0000</pubDate>
		<dc:creator>Keiron</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[preorder]]></category>

		<guid isPermaLink="false">http://www.unchi.co.uk/?p=1153</guid>
		<description><![CDATA[Sometimes you may want to feature a product in the Magento store, but mark it as pre-order. This way you...]]></description>
			<content:encoded><![CDATA[<p>Sometimes you may want to feature a product in the Magento store, but mark it as pre-order. This way you can take the order and manage the delivery expectations. To do  this I have done the following:</p>
<p>In the admin area mark each product that is to be a pre-order item not to manage to stock:</p>
<blockquote><p>Catalogue &gt; Manage Products &gt; Item &gt; Inventory &gt; Manage Stock &gt; No</p></blockquote>
<p>The reason why this is right is be cause you aren&#039;t out of stock because it just hasn&#039;t arrived yet (so you don&#039;t want the stock level set to 0) but you do need to inform the</p>
<p>Now, with that set you need to change some code to inform the user. I have done it in a few places, but this is flexible depending on requirements:</p>
<p>In /app/design/frontend/default/grayscale/template/catalog/product/view/type/default.phtml add this code to add some text below the title:</p>
<blockquote><p>$__mxwA = $_product-&gt;getStockItem()-&gt;getUseConfigManageStock();<br />
$__mxwB = $_product-&gt;getStockItem()-&gt;getManageStock();<br />
echo ($__mxwA==&#034;0&#034; &amp;&amp; $__mxwB==&#034;0&#034; ) ? $this-&gt;__(&#039;This item is available to pre-order&#039; ) : &#034;;</p></blockquote>
<p>Then, in /app/design/frontend/default/grayscale/template/catalog/product/view/addtocart.phtml alter the button label:</p>
<blockquote><p>$__mxwA = $_product-&gt;getStockItem()-&gt;getUseConfigManageStock();<br />
$__mxwB = $_product-&gt;getStockItem()-&gt;getManageStock();<br />
$buttonTitle  = ($__mxwA==&#034;0&#034; &amp;&amp; $__mxwB==&#034;0&#034; ) ? $this-&gt;__(&#039;Pre-order&#039; ) : $this-&gt;__(&#039;Add to My Bag&#039;);</p></blockquote>
<p>I also had product information tabs, so in /app/design/frontend/default/grayscale/template/catalog/product/view.phtml I also used the same code to do the following:</p>
<blockquote><p>$__mxwA = $_product-&gt;getStockItem()-&gt;getUseConfigManageStock();<br />
$__mxwB = $_product-&gt;getStockItem()-&gt;getManageStock();<br />
echo  ($__mxwA==&#034;0&#034; &amp;&amp; $__mxwB==&#034;0&#034; ) ? &#039;&lt;li&gt;&lt;a href=&#034;#preorder&#034;&gt;&#039;.$this-&gt;__(&#039;Pre-order&#039; ).&#039;&lt;/a&gt;&lt;/li&gt;&#039; : &#034;;</p></blockquote>
<p>And</p>
<blockquote><p>$__mxwA = $_product-&gt;getStockItem()-&gt;getUseConfigManageStock();<br />
$__mxwB = $_product-&gt;getStockItem()-&gt;getManageStock();<br />
echo  ($__mxwA==&#034;0&#034; &amp;&amp; $__mxwB==&#034;0&#034; ) ? &#039;&lt;div id=&#034;preorder&#034;&gt;&#039;.$this-&gt;getChildHtml(&#039;preorder&#039;).&#039;&lt;/div&gt;&#039; : &#034;;</p></blockquote>
<p>Influenced by <a href="http://www.westwideweb.com/wp/2008/12/19/magento-accepting-orders-vs-not-in-stock-vs-in-stock/" target="_blank">this article</a>, but adapted for the latest version of Magento and my own requirements.</p>
<div class="coffee"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="keiron@jerram.co.uk" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Buy me a coffee for Marking Products in Magento as Pre-order" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.unchi.co.uk/wp-content/plugins/buy-me-beer/icon_cafe.png" align="left" alt="Like this? Maybe you could buy me a coffee" title="Like this? Maybe you could buy me a coffee" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=keiron@jerram.co.uk&amp;currency_code=GBP&amp;amount=&amp;return=&amp;item_name=Buy+me+a+coffee+for+Marking+Products+in+Magento+as+Pre-order" target="paypal"><strong>Like this?</strong> Maybe you could buy me a coffee.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.unchi.co.uk/2012/02/20/marking-products-in-magento-as-pre-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Database of Countries and their ISO Codes</title>
		<link>http://www.unchi.co.uk/2012/02/16/sql-database-of-countries-and-their-iso-codes/</link>
		<comments>http://www.unchi.co.uk/2012/02/16/sql-database-of-countries-and-their-iso-codes/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 17:18:09 +0000</pubDate>
		<dc:creator>Keiron</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[country]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.unchi.co.uk/?p=1148</guid>
		<description><![CDATA[It&#039;s useful to have a current list of countries for some projects with their ISO codes. This makes populating lists...]]></description>
			<content:encoded><![CDATA[<p>It&#039;s useful to have a current list of countries for some projects with their ISO codes. This makes populating lists and select menus easier to maintain.</p>
<p>In searching I found Stefan Gabos to have a <a href="http://stefangabos.ro/other-projects/list-of-world-countries-with-national-flags/" target="_blank">useful list of countries in sql format</a> which is fairly current.</p>
<div class="coffee"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="keiron@jerram.co.uk" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Buy me a coffee for SQL Database of Countries and their ISO Codes" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.unchi.co.uk/wp-content/plugins/buy-me-beer/icon_cafe.png" align="left" alt="Like this? Maybe you could buy me a coffee" title="Like this? Maybe you could buy me a coffee" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=keiron@jerram.co.uk&amp;currency_code=GBP&amp;amount=&amp;return=&amp;item_name=Buy+me+a+coffee+for+SQL+Database+of+Countries+and+their+ISO+Codes" target="paypal"><strong>Like this?</strong> Maybe you could buy me a coffee.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.unchi.co.uk/2012/02/16/sql-database-of-countries-and-their-iso-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display all Options for an Attribute in Magento</title>
		<link>http://www.unchi.co.uk/2012/02/08/display-all-options-for-an-attribute-in-magento/</link>
		<comments>http://www.unchi.co.uk/2012/02/08/display-all-options-for-an-attribute-in-magento/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 16:13:08 +0000</pubDate>
		<dc:creator>Keiron</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.unchi.co.uk/?p=1143</guid>
		<description><![CDATA[If you want to list all of the possible options for an attribute in the front-end of a Magento site...]]></description>
			<content:encoded><![CDATA[<p>If you want to list all of the possible options for an attribute in the front-end of a Magento site use this:</p>
<p>$attribute = Mage::getModel(&#039;eav/config&#039;)-&gt;getAttribute(&#039;catalog_product&#039;, &#039;clothing_type&#039;);<br />
foreach ( $attribute-&gt;getSource()-&gt;getAllOptions(true, true) as $option){<br />
echo &#039;&lt;li&gt;&#039;.$option['label'].&#039;&lt;/li&gt;&#039;;<br />
}</p>
<p>In this example, clothing_type is the id of the attribute required.</p>
<div class="coffee"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="keiron@jerram.co.uk" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Buy me a coffee for Display all Options for an Attribute in Magento" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.unchi.co.uk/wp-content/plugins/buy-me-beer/icon_cafe.png" align="left" alt="Like this? Maybe you could buy me a coffee" title="Like this? Maybe you could buy me a coffee" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=keiron@jerram.co.uk&amp;currency_code=GBP&amp;amount=&amp;return=&amp;item_name=Buy+me+a+coffee+for+Display+all+Options+for+an+Attribute+in+Magento" target="paypal"><strong>Like this?</strong> Maybe you could buy me a coffee.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.unchi.co.uk/2012/02/08/display-all-options-for-an-attribute-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating Attributes in Magento</title>
		<link>http://www.unchi.co.uk/2012/02/06/updating-attributes-in-magento/</link>
		<comments>http://www.unchi.co.uk/2012/02/06/updating-attributes-in-magento/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 12:34:56 +0000</pubDate>
		<dc:creator>Keiron</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[shop]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.unchi.co.uk/?p=1139</guid>
		<description><![CDATA[To update values in a product attribute go here: Catalog &#62; Attributes &#62; Manage Attributes &#62; ~ Click on your...]]></description>
			<content:encoded><![CDATA[<p>To update values in a product attribute go here:</p>
<p>Catalog &gt; Attributes &gt; Manage Attributes &gt; ~ Click on your attribute ~ &gt; Manage Label / Options</p>
<div class="coffee"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="keiron@jerram.co.uk" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Buy me a coffee for Updating Attributes in Magento" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.unchi.co.uk/wp-content/plugins/buy-me-beer/icon_cafe.png" align="left" alt="Like this? Maybe you could buy me a coffee" title="Like this? Maybe you could buy me a coffee" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=keiron@jerram.co.uk&amp;currency_code=GBP&amp;amount=&amp;return=&amp;item_name=Buy+me+a+coffee+for+Updating+Attributes+in+Magento" target="paypal"><strong>Like this?</strong> Maybe you could buy me a coffee.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.unchi.co.uk/2012/02/06/updating-attributes-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Standard Footer Links From Magento</title>
		<link>http://www.unchi.co.uk/2012/01/19/remove-standard-footer-links-from-magento/</link>
		<comments>http://www.unchi.co.uk/2012/01/19/remove-standard-footer-links-from-magento/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 18:07:49 +0000</pubDate>
		<dc:creator>Keiron</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.unchi.co.uk/?p=1135</guid>
		<description><![CDATA[To remove Contact Us edit this file: /httpdocs/app/design/frontend/default/YOUR_DESIGN/layout/contacts.xml To remove Search Terms and Advanced Search edit this file: /httpdocs/app/design/frontend/default/YOUR_DESIGN/layout/catalogsearch.xml To...]]></description>
			<content:encoded><![CDATA[<p>To remove <em>Contact Us</em> edit this file:</p>
<blockquote><p>/httpdocs/app/design/frontend/default/YOUR_DESIGN/layout/contacts.xml</p></blockquote>
<p>To remove <em>Search Terms</em> and <em>Advanced Search</em> edit this file:</p>
<blockquote><p>/httpdocs/app/design/frontend/default/YOUR_DESIGN/layout/catalogsearch.xml</p></blockquote>
<p>To remove Site Map edit this file:</p>
<blockquote><p>/httpdocs/app/design/frontend/default/YOUR_DESIGN/layout/catalog.xml</p></blockquote>
<div class="coffee"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="keiron@jerram.co.uk" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Buy me a coffee for Remove Standard Footer Links From Magento" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.unchi.co.uk/wp-content/plugins/buy-me-beer/icon_cafe.png" align="left" alt="Like this? Maybe you could buy me a coffee" title="Like this? Maybe you could buy me a coffee" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=keiron@jerram.co.uk&amp;currency_code=GBP&amp;amount=&amp;return=&amp;item_name=Buy+me+a+coffee+for+Remove+Standard+Footer+Links+From+Magento" target="paypal"><strong>Like this?</strong> Maybe you could buy me a coffee.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.unchi.co.uk/2012/01/19/remove-standard-footer-links-from-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a New Block to a Magento Template</title>
		<link>http://www.unchi.co.uk/2012/01/19/add-a-new-block-to-a-magento-template/</link>
		<comments>http://www.unchi.co.uk/2012/01/19/add-a-new-block-to-a-magento-template/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 15:55:02 +0000</pubDate>
		<dc:creator>Keiron</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[page.xml]]></category>

		<guid isPermaLink="false">http://www.unchi.co.uk/?p=1132</guid>
		<description><![CDATA[Go to page.xml and below this: &#60;block type=&#034;page/html_breadcrumbs&#034; name=&#034;breadcrumbs&#034; as=&#034;breadcrumbs&#034;/&#62; Add your new code (e.g.) &#60;block type=&#034;page/html_lookbookimage&#034; name=&#034;lookbookimage&#034; as=&#034;lookbookimage&#034;/&#62; Now,...]]></description>
			<content:encoded><![CDATA[<p>Go to page.xml and below this:</p>
<blockquote><p>&lt;block type=&#034;page/html_breadcrumbs&#034; name=&#034;breadcrumbs&#034; as=&#034;breadcrumbs&#034;/&gt;</p></blockquote>
<p>Add your new code (e.g.)</p>
<blockquote><p>&lt;block type=&#034;page/html_<span style="color: #ff6600;">lookbookimage</span>&#034; name=&#034;<span style="color: #ff6600;">lookbookimage</span>&#034; as=&#034;<span style="color: #ff6600;">lookbookimage</span>&#034;/&gt;</p></blockquote>
<p>Now, to to /app/code/local/Mage/Page/Block/Html and create a new file called <span style="color: #ff6600;">Lookbookimage</span>.php with this code inside:</p>
<blockquote><p>&lt;?php<br />
class Mage_Page_Block_Html_<span style="color: #ff6600;">Lookbookimage</span> extends Mage_Core_Block_Template<br />
{<br />
function __construct()<br />
{<br />
parent::__construct();<br />
$this-&gt;setTemplate(&#039;page/html/<span style="color: #ff6600;">lookbookimage</span>.phtml&#039;);<br />
}<br />
}<br />
?&gt;</p></blockquote>
<p>Now create a file, called <span style="color: #ff6600;">lookbookimage</span>.phtml in /app/design/frontend/default/YOUR TEMPLATE/template/page/html/</p>
<p>I assume all three steps are required and the names (highlighted) need to match.</p>
<div class="coffee"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="keiron@jerram.co.uk" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Buy me a coffee for Add a New Block to a Magento Template" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.unchi.co.uk/wp-content/plugins/buy-me-beer/icon_cafe.png" align="left" alt="Like this? Maybe you could buy me a coffee" title="Like this? Maybe you could buy me a coffee" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=keiron@jerram.co.uk&amp;currency_code=GBP&amp;amount=&amp;return=&amp;item_name=Buy+me+a+coffee+for+Add+a+New+Block+to+a+Magento+Template" target="paypal"><strong>Like this?</strong> Maybe you could buy me a coffee.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.unchi.co.uk/2012/01/19/add-a-new-block-to-a-magento-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a New CMS Page Layout in Magento</title>
		<link>http://www.unchi.co.uk/2012/01/17/creating-a-new-cms-page-layout-in-magento/</link>
		<comments>http://www.unchi.co.uk/2012/01/17/creating-a-new-cms-page-layout-in-magento/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 14:05:48 +0000</pubDate>
		<dc:creator>Keiron</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.unchi.co.uk/?p=1129</guid>
		<description><![CDATA[These steps create a new page in the Magento CMS&#8230; First, create a module by creating this file: app/etc/modules/Mage_Page.xml &#60;?xml...]]></description>
			<content:encoded><![CDATA[<p>These steps create a new page in the Magento CMS&#8230;</p>
<p>First, create a module by creating this file: <em>app/etc/modules/Mage_Page.xml</em></p>
<blockquote><p>&lt;?xml version=&#034;1.0&#034;?&gt;<br />
&lt;config&gt;<br />
&lt;modules&gt;<br />
&lt;Mage_Page&gt;<br />
&lt;active&gt;true&lt;/active&gt;<br />
&lt;codePool&gt;local&lt;/codePool&gt;<br />
&lt;/Mage_Page&gt;<br />
&lt;/modules&gt;<br />
&lt;/config&gt;</p></blockquote>
<p>Then copy this folder: <em>app/code/core/Mage/Page</em> to <em>app/code/local/Mage</em></p>
<p>This takes the core module and places it into our local  module so we can update it without worrying about future updates.</p>
<p>Now we need to edit: <em>app/code/local/Mage/Page/etc/config.xml</em> to add your own layout to the xml.</p>
<blockquote><p>&lt;contact_page module=&#034;page&#034; translate=&#034;label&#034;&gt;<br />
&lt;label&gt;Contact&lt;/label&gt;<br />
&lt;template&gt;page/contact.phtml&lt;/template&gt;<br />
&lt;layout_handle&gt;page_contact&lt;/layout_handle&gt;<br />
&lt;/contact_page&gt;</p></blockquote>
<p>Now all you have to do is make a template for this page. Navigate to your theme directory: <em>app/design/frontend/YOUR_THEME/YOUR_THEME/template/page/</em> and create a new template called <em>contact.phtml</em>.</p>
<div class="coffee"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="keiron@jerram.co.uk" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Buy me a coffee for Creating a New CMS Page Layout in Magento" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.unchi.co.uk/wp-content/plugins/buy-me-beer/icon_cafe.png" align="left" alt="Like this? Maybe you could buy me a coffee" title="Like this? Maybe you could buy me a coffee" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=keiron@jerram.co.uk&amp;currency_code=GBP&amp;amount=&amp;return=&amp;item_name=Buy+me+a+coffee+for+Creating+a+New+CMS+Page+Layout+in+Magento" target="paypal"><strong>Like this?</strong> Maybe you could buy me a coffee.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.unchi.co.uk/2012/01/17/creating-a-new-cms-page-layout-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displaying Magento Configuration Details</title>
		<link>http://www.unchi.co.uk/2012/01/16/displaying-magento-configuration-details/</link>
		<comments>http://www.unchi.co.uk/2012/01/16/displaying-magento-configuration-details/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 17:59:32 +0000</pubDate>
		<dc:creator>Keiron</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[details]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.unchi.co.uk/?p=1125</guid>
		<description><![CDATA[To display information entered in the System &#62; General area of the admin area use these: Store Name &#60;?php echo...]]></description>
			<content:encoded><![CDATA[<p>To display information entered in the System &gt; General area of the admin area use these:</p>
<p><strong>Store Name</strong></p>
<blockquote><p>&lt;?php echo Mage::getStoreConfig(&#039;general/store_information/name&#039;); ?&gt;</p></blockquote>
<p><strong>Store Address</strong></p>
<blockquote><p>&lt;?php echo nl2br(Mage::getStoreConfig(&#039;general/store_information/address&#039;)); ?&gt;</p></blockquote>
<p><strong>General Email Address</strong></p>
<blockquote><p>&lt;?php echo Mage::getStoreConfig(&#039;trans_email/ident_general/email&#039;); ?&gt;</p></blockquote>
<p><strong>Custom Email Address 1</strong></p>
<blockquote><p>&lt;?php echo Mage::getStoreConfig(&#039;trans_email/ident_custom1/email&#039;); ?&gt;</p></blockquote>
<p><strong>Store Phone Number</strong></p>
<blockquote><p>&lt;?php echo Mage::getStoreConfig(&#039;general/store_information/phone&#039;); ?&gt;</p></blockquote>
<p>There will be more, but this is all I need at the moment.</p>
<div class="coffee"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="keiron@jerram.co.uk" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Buy me a coffee for Displaying Magento Configuration Details" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.unchi.co.uk/wp-content/plugins/buy-me-beer/icon_cafe.png" align="left" alt="Like this? Maybe you could buy me a coffee" title="Like this? Maybe you could buy me a coffee" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=keiron@jerram.co.uk&amp;currency_code=GBP&amp;amount=&amp;return=&amp;item_name=Buy+me+a+coffee+for+Displaying+Magento+Configuration+Details" target="paypal"><strong>Like this?</strong> Maybe you could buy me a coffee.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.unchi.co.uk/2012/01/16/displaying-magento-configuration-details/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

