<?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>Bagesh Singh&#039;s Blog &#187; Layout</title>
	<atom:link href="http://www.bageshsingh.com/bagesh-blog/tag/layout/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bageshsingh.com/bagesh-blog</link>
	<description>Shortest Distance to  Web Solutions &#38; Software Solutions</description>
	<lastBuildDate>Wed, 22 Feb 2012 18:42:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Working with AJAX in Magento</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/04/working-with-ajax-in-magento/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/04/working-with-ajax-in-magento/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 13:36:06 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP Third Party Tools]]></category>
		<category><![CDATA[tips and technique]]></category>
		<category><![CDATA[Block]]></category>
		<category><![CDATA[Controllers]]></category>
		<category><![CDATA[Layout]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=445</guid>
		<description><![CDATA[Ajax in Magento can be pretty troublesome.Because you will need to take controllers and layout into account.And I almost used up a whole day trying to make ajax work. Here are some of the steps I Posts Related to Working with AJAX in MagentoMagento: Creating Ajax Updated Tabs In Frontend, Like Product Management Tabs of [...]]]></description>
			<content:encoded><![CDATA[<p>Ajax in Magento can be pretty troublesome.Because you will need to  take controllers and layout into account.And I almost used up a whole  day trying to make ajax work. Here are some of the steps I</p>
<div id="seo_alrp_related"><h2>Posts Related to Working with AJAX in Magento</h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/06/magento-creating-ajax-updated-tabs-in-frontend-like-product-management-tabs-of-backend/" rel="bookmark">Magento: Creating Ajax Updated Tabs In Frontend, Like Product Management Tabs of Backend</a></h3><p>Magento</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/04/creating-collection-of-objects-in-magento-using-a-%e2%80%9cmagical-class%e2%80%9dvarien_data_collection/" rel="bookmark">Creating Collection of Objects in Magento using a</a></h3><p>Have you ever wondered how Collection in Magento are built, containing array of individual Entity Objects of Magento? Collections are one of the most important ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/04/adding-tabs-in-product-view-page-through-layout-in-magento/" rel="bookmark">Adding Tabs in Product View Page Through Layout In Magento</a></h3><p>One of my new colleague, today asked me how to add tabs in product view page in Magento. He told me earlier he had used ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/04/adding-custom-options-to-a-product-in-magento/" rel="bookmark">Adding custom options to a product in Magento</a></h3><p>Adding custom option in Magento is pretty easy! You just need to know the format of an array, which is taken by catalog/product_option Model to ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/02/latest-jquery-and-jquery-ui-theme-links-on-google-cdn-2/" rel="bookmark">Latest jQuery and jQuery UI Theme links on Google CDN</a></h3><p>I have often seen developers asking where to find the jQuery UI Library and the jQuery UI Themes on Google CDN. Well here’s the list ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/04/working-with-ajax-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Block From the Code in Magento</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/04/creating-block-from-the-code-in-magento/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/04/creating-block-from-the-code-in-magento/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 17:57:03 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips and technique]]></category>
		<category><![CDATA[Block]]></category>
		<category><![CDATA[Import]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Map Type]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/2010/04/creating-block-from-the-code-in-magento/</guid>
		<description><![CDATA[Here are some methods of creating block by code in Magento. This type of code can be used directly in template, not need to create a layout file or add a child node inside already existing layout file. You can use this to echo a different type of block inside already loading block and template. [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some methods of creating block by code in Magento. This type  of code can be used directly in template, not need to create a layout  file or add a child node inside already existing layout file. You can  use this to echo a different type of block inside already loading block  and template.</p>
<div id="highlighter_832981">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>// Directly in the PHTML where you want to show the block</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>&lt;?php</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>echo</code> <code>$this</code><code>-&gt;getLayout()-&gt;createBlock(</code><code>"module/block"</code><code>)-&gt;setTemplate(</code><code>"module/page.phtml"</code><code>)-&gt;toHtml();</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>?&gt;</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>What we have actually done is just load the layout and create an  instance of a block class defined inside its paramerter, then assigned a  template to the block and finally echoed as html. Simple! The code  above will be equivalent to what we do as following in layout and in  template file.</p>
<div id="highlighter_802554">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>// In layout</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>&lt;</code><code>block</code> <code>type</code><code>=</code><code>"module/block"</code> <code>name</code><code>=</code><code>"module.name"</code> <code>template</code><code>=</code><code>"module/page.html"</code><code>/&gt;</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div id="highlighter_916">
<div>
<div><a title="?" href="http://subesh.com.np/2009/12/creating-block-code-magento/#about"></a></div>
</div>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>&lt;?php</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code>// In parent PHTML</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>$this</code><code>-&gt;getChildHtml(</code><code>"module.name"</code><code>);</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code>?&gt;</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>May be helpful!</p>
<div id="seo_alrp_related"><h2>Posts Related to Creating Block From the Code in Magento</h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/05/solution-error-message-not-showing-up-in-frontend-in-magento/" rel="bookmark">Solution: Error Message Not Showing up in Frontend in Magento</a></h3><p>I recently got to a situation where I needed to add a new frontend template for some module and after some action show the error ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/10/adding-css-class-name-to-my-account-link-anchor-tag-in-magento-through-xml-layout/" rel="bookmark">Adding CSS Class name to My Account Link (Anchor Tag) in Magento through XML Layout</a></h3><p>At the first instance I thought WTH! must be pretty simple, add params in XML layout and “Voila!“. But later I found that it was ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/adding-css-class-name-to-my-account-link-anchor-tag-in-magento-through-xml-layout-at-the-first-instance-i-thought-wt/" rel="bookmark">Adding CSS Class name to My Account Link (Anchor Tag) in Magento through XML Layout</a></h3><p>At the first instance I thought WTH! must be pretty simple, add params in XML layout and “Voila!“. But later I found that it was ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/07/sliding-letters-with-jquery/" rel="bookmark">Sliding Letters with jQuery</a></h3><p>Example In the following we will go through an example and we’ll start by the html for a little menu: 1 &lt;div class="sl_examples"&gt; 2     &lt;a ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/07/jquery-thumbnail-image-with-heading-and-caption/" rel="bookmark">Jquery Thumbnail Image with Heading and Caption</a></h3><p>Let's review a topic about how to create a Jquery Thumbnail Image with Heading and Caption. Have you ever seen Jquery Thumbnail Image with Heading ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/04/creating-block-from-the-code-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Module Release: Uses Layout To List Post, made by AW Blog, on the basis of Category Identifier</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/04/magento-module-release-uses-layout-to-list-post-made-by-aw-blog-on-the-basis-of-category-identifier/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/04/magento-module-release-uses-layout-to-list-post-made-by-aw-blog-on-the-basis-of-category-identifier/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 17:44:08 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips and technique]]></category>
		<category><![CDATA[Layout]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=404</guid>
		<description><![CDATA[I Posts Related to Magento Module Release: Uses Layout To List Post, made by AW Blog, on the basis of Category IdentifierCreating Block From the Code in MagentoHere are some methods of creating block by code in Magento. This type of code can be used directly in template, not need to create ...How to add [...]]]></description>
			<content:encoded><![CDATA[<p>I</p>
<div id="seo_alrp_related"><h2>Posts Related to Magento Module Release: Uses Layout To List Post, made by AW Blog, on the basis of Category Identifier</h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/04/creating-block-from-the-code-in-magento/" rel="bookmark">Creating Block From the Code in Magento</a></h3><p>Here are some methods of creating block by code in Magento. This type of code can be used directly in template, not need to create ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/10/how-to-add-sitemap-to-a-magento-site/" rel="bookmark">How to add Sitemap to a Magento Site</a></h3><p>Most of you must be knowing the importance and use of Sitemaps on your websites, but let me make it clear for those who dont ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/05/what-are-section-categories-and-content-items-in-joomla/" rel="bookmark">What are section, categories and content items in joomla ?</a></h3><p>Joomla! is a content management system. Sections and categories allow you to organize your content. The basic structure is: Sections include Categories. Categories include content ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/10/adding-css-class-name-to-my-account-link-anchor-tag-in-magento-through-xml-layout/" rel="bookmark">Adding CSS Class name to My Account Link (Anchor Tag) in Magento through XML Layout</a></h3><p>At the first instance I thought WTH! must be pretty simple, add params in XML layout and “Voila!“. But later I found that it was ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/04/working-with-ajax-in-magento/" rel="bookmark">Working with AJAX in Magento</a></h3><p>Ajax in Magento can be pretty troublesome.Because you will need to take controllers and layout into account.And I almost used up a whole day trying ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/04/magento-module-release-uses-layout-to-list-post-made-by-aw-blog-on-the-basis-of-category-identifier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

