<?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>Kdecom</title>
	<atom:link href="http://www.kdecom.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kdecom.com</link>
	<description>Your path to magento solution</description>
	<lastBuildDate>Tue, 21 May 2013 22:17:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to use Wysiwyg editor in magento2</title>
		<link>http://www.kdecom.com/how-to-use-wysiwyg-editor-in-magento2/</link>
		<comments>http://www.kdecom.com/how-to-use-wysiwyg-editor-in-magento2/#comments</comments>
		<pubDate>Tue, 21 May 2013 03:02:26 +0000</pubDate>
		<dc:creator>kdecom</dc:creator>
				<category><![CDATA[magento]]></category>
		<category><![CDATA[magento-extension]]></category>
		<category><![CDATA[magento2]]></category>
		<category><![CDATA[magento2-tutorial]]></category>
		<category><![CDATA[magento2-grid]]></category>
		<category><![CDATA[wysiwyg]]></category>

		<guid isPermaLink="false">http://www.kdecom.com/?p=349</guid>
		<description><![CDATA[<p>How to use Wysiwyg editor in magento2 I was having trouble when i was developing my magento2 blog extension because i get stuck at the point when i need to [...]</p><p>The post <a href="http://www.kdecom.com/how-to-use-wysiwyg-editor-in-magento2/">How to use Wysiwyg editor in magento2</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></description>
				<content:encoded><![CDATA[<h1>How to use Wysiwyg editor in magento2</h1>
<p>I was having trouble when i was developing my magento2 blog extension because i get stuck at the point when i need to use wysiwyg editor for magento2. It is little bit different then magento1 i guess.</p>
<p>Before we start i hope you all knows how to do magento2 grid with form. If you are not sure read this blog <a title="How to create a Magento2 Admin Grid" href="http://www.kdecom.com/how-to-create-a-magento2-admin-grid/">How to create a Magento2 Admin Grid</a></p>
<p>To make it work what i did is:-</p>
<p>Step1:-</p>
<p>Open your layout file. In my case it is located here:</p>
<p>Kdecom/Blog/view/adminhtml/layout.xml</p>
<p>&nbsp;</p>
<pre class="brush: xml; gutter: true">&lt;adminhtml_blog_blog_edit&gt;
        &lt;update handle=&quot;editor&quot;/&gt;
        &lt;reference name=&quot;content&quot;&gt;
            &lt;block type=&quot;Kdecom_Blog_Block_Adminhtml_Blog_Edit&quot;  name=&quot;blog.post.edit&quot; /&gt;
        &lt;/reference&gt;
&lt;/adminhtml_blog_blog_edit&gt;</pre>
<p>&lt;update handle=&#8221;editor&#8221;/&gt; tag included all necessary Java Script file related to Wysiwyg editor.</p>
<p><strong>Only for reference. Do not add the below line in your xml.</strong></p>
<p>If you want to know which file gets included in magneto admin. Here is the list ()</p>
<pre class="brush: xml; gutter: true">&lt;editor&gt;
        &lt;reference name=&quot;head&quot;&gt;
            &lt;action method=&quot;setCanLoadExtJs&quot;&gt;&lt;flag&gt;1&lt;/flag&gt;&lt;/action&gt;
            &lt;action method=&quot;addJs&quot;&gt;&lt;file&gt;Mage_Adminhtml::variables.js&lt;/file&gt;&lt;/action&gt;
            &lt;action method=&quot;addJs&quot;&gt;&lt;file&gt;mage/adminhtml/wysiwyg/widget.js&lt;/file&gt;&lt;/action&gt;
            &lt;action method=&quot;addJs&quot;&gt;&lt;file&gt;lib/flex.js&lt;/file&gt;&lt;/action&gt;
            &lt;action method=&quot;addJs&quot;&gt;&lt;file&gt;lib/FABridge.js&lt;/file&gt;&lt;/action&gt;
            &lt;action method=&quot;addJs&quot;&gt;&lt;file&gt;mage/adminhtml/flexuploader.js&lt;/file&gt;&lt;/action&gt;
            &lt;action method=&quot;addJs&quot;&gt;&lt;file&gt;mage/adminhtml/browser.js&lt;/file&gt;&lt;/action&gt;
            &lt;action method=&quot;addJs&quot;&gt;&lt;file&gt;prototype/window.js&lt;/file&gt;&lt;/action&gt;
            &lt;action method=&quot;addCss&quot;&gt;&lt;file&gt;prototype/windows/themes/default.css&lt;/file&gt;&lt;/action&gt;
            &lt;action method=&quot;addCss&quot;&gt;&lt;file&gt;Mage_Core::prototype/magento.css&lt;/file&gt;&lt;/action&gt;
        &lt;/reference&gt;
    &lt;/editor&gt;</pre>
<p>Open your form.php file . In my case location of the file was:-</p>
<p>Kdecom/Blog/Block/Adminhtml/Blog/Edit/Form.php</p>
<p>Add this method.</p>
<pre class="brush: php; gutter: true">protected function _prepareLayout() {
        parent::_prepareLayout();
        if (Mage::getSingleton(&#039;Mage_Cms_Model_Wysiwyg_Config&#039;)-&gt;isEnabled()) {
            $this-&gt;getLayout()-&gt;getBlock(&#039;head&#039;)-&gt;setCanLoadTinyMce(true);
        }
    }</pre>
<p>Here is the code to add the element</p>
<pre class="brush: applescript; gutter: true">$fieldset-&gt;addField(
                &#039;post_content&#039;, &#039;editor&#039;, array(
            &#039;label&#039; =&gt; $this-&gt;__(&#039;Post Content&#039;),
            &#039;class&#039; =&gt; &#039;required-entry&#039;,
            &#039;style&#039; =&gt; &#039;width:725px;height:460px&#039;,
            &#039;required&#039; =&gt; true,
            &#039;force_load&#039; =&gt; true,
            &#039;config&#039; =&gt; Mage::getSingleton(&#039;Mage_Cms_Model_Wysiwyg_Config&#039;)-&gt;getConfig($config)
                )
        );</pre>
<p>As a Zend Framework developer i was thinking it why magento using Editor as an element but not the TextArea so just in that case i would like to say magento has list of the Element that you can use in your form.</p>
<p>Here is the list of the magento element that you can use in your magento form.</p>
<ul>
<li>Button</li>
<li>Checkbox</li>
<li>Checkbboxes</li>
<li>Collection</li>
<li>Column</li>
<li>Date</li>
<li>EditableMultiSelect</li>
<li>Editor</li>
<li>Fieldset</li>
<li>File</li>
<li>Gallery</li>
<li>Hidden</li>
<li>Image</li>
<li>ImageFile</li>
<li>Label</li>
<li>Link</li>
<li>Multiline</li>
<li>MultiSelect</li>
<li>Note</li>
<li>Obscure (not sure what is it)?</li>
<li>Password</li>
<li>Radio</li>
<li>Radios</li>
<li>Reset</li>
<li>Select</li>
<li>Submit</li>
<li>Text</li>
<li>Textarea</li>
<li>Time</li>
</ul>
<p>I hope that helps.</p>
<p>The post <a href="http://www.kdecom.com/how-to-use-wysiwyg-editor-in-magento2/">How to use Wysiwyg editor in magento2</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kdecom.com/how-to-use-wysiwyg-editor-in-magento2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento2 Developer Tips and trick</title>
		<link>http://www.kdecom.com/magento2-developer-tips-and-trick/</link>
		<comments>http://www.kdecom.com/magento2-developer-tips-and-trick/#comments</comments>
		<pubDate>Sat, 18 May 2013 04:20:06 +0000</pubDate>
		<dc:creator>kdecom</dc:creator>
				<category><![CDATA[magento]]></category>
		<category><![CDATA[magento2]]></category>
		<category><![CDATA[magento2-tutorial]]></category>
		<category><![CDATA[magento-tips]]></category>
		<category><![CDATA[magento2-extension]]></category>

		<guid isPermaLink="false">http://www.kdecom.com/?p=343</guid>
		<description><![CDATA[<p>Magento2 Developer Tips and trick &#160; Some tips and tricks for the magento Developer:- $this-&#62;getSkinUrl() Replace with in magento2 $this-&#62;getViewFileUrl()</p><p>The post <a href="http://www.kdecom.com/magento2-developer-tips-and-trick/">Magento2 Developer Tips and trick</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></description>
				<content:encoded><![CDATA[<h1>Magento2 Developer Tips and trick</h1>
<p>&nbsp;</p>
<p>Some tips and tricks for the magento Developer:-</p>
<pre class="brush: php; gutter: true">$this-&gt;getSkinUrl()</pre>
<p>Replace with in magento2</p>
<pre class="brush: php; gutter: true">$this-&gt;getViewFileUrl()</pre>
<p>The post <a href="http://www.kdecom.com/magento2-developer-tips-and-trick/">Magento2 Developer Tips and trick</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kdecom.com/magento2-developer-tips-and-trick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to turn off URL Rewrite in Mangeto2</title>
		<link>http://www.kdecom.com/how-to-turn-off-url-rewrite-in-mangeto2/</link>
		<comments>http://www.kdecom.com/how-to-turn-off-url-rewrite-in-mangeto2/#comments</comments>
		<pubDate>Fri, 17 May 2013 21:52:14 +0000</pubDate>
		<dc:creator>kdecom</dc:creator>
				<category><![CDATA[magento]]></category>
		<category><![CDATA[magento2]]></category>
		<category><![CDATA[magento2-tutorial]]></category>
		<category><![CDATA[magento2-configuration]]></category>
		<category><![CDATA[magento2-url-rewrite]]></category>

		<guid isPermaLink="false">http://www.kdecom.com/?p=335</guid>
		<description><![CDATA[<p>How to turn off URL Rewrite in Mangeto2 When i was developing magento2 extension it is always good to turn off url rewrite in magento. What is the difference between turn on [...]</p><p>The post <a href="http://www.kdecom.com/how-to-turn-off-url-rewrite-in-mangeto2/">How to turn off URL Rewrite in Mangeto2</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></description>
				<content:encoded><![CDATA[<h1>How to turn off URL Rewrite in Mangeto2</h1>
<p>When i was developing magento2 extension it is always good to turn off url rewrite in magento.</p>
<p>What is the difference between turn on url rewrite and turn off url rewrite?</p>
<p><strong>Turn On URL Rewrite PRODUCT PAGE</strong>:-</p>
<p>http://www.kdecom.com/mage2/index.php/living-room-furniture.html</p>
<p><strong>Turn off URL Rewrite PRODUCT PAGE</strong>:-</p>
<p>http://www.kdecom.com/mage2/index.php/catalog/product/view/id/3/s/my-shoes-1/category/5/</p>
<p>If you have turn off magento2 url rewrite then you will know exactly which module and which controller and which action magento execute from above url you will know it will execute Mage_Catalog module, ProductController.php and viewAction from that file.</p>
<p>In magento2 admin panel:</p>
<p>store-&gt; setting -configuation -&gt; catalog -&gt; catalog -&gt;search engine optimization</p>
<p>And turn off the url rewrite.</p>
<p>Next i did went on front end and check it that is it working for me? But unfortunately answer was no.</p>
<p>So finally i have to open up PhpMyAdmin and check the magento2 core_url_rewrite table and all the data was inside the table.</p>
<p>then i did execute</p>
<pre class="brush: actionscript3; gutter: true">TRUNCATE core_url_rewrite;</pre>
<p>Now i went on frontend and it starts working.</p>
<p>Finally..</p>
<p>Simply if you want to turn off magento2 First thing you will do is:- turn off url rewrite in admin panel. Then you have to truncate the core_url_rewrite table from magento2 database.</p>
<p>The post <a href="http://www.kdecom.com/how-to-turn-off-url-rewrite-in-mangeto2/">How to turn off URL Rewrite in Mangeto2</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kdecom.com/how-to-turn-off-url-rewrite-in-mangeto2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use Magento2 Collection</title>
		<link>http://www.kdecom.com/how-to-use-magento2-collection/</link>
		<comments>http://www.kdecom.com/how-to-use-magento2-collection/#comments</comments>
		<pubDate>Tue, 14 May 2013 02:26:26 +0000</pubDate>
		<dc:creator>kdecom</dc:creator>
				<category><![CDATA[magento]]></category>
		<category><![CDATA[magento2]]></category>
		<category><![CDATA[magento2-tutorial]]></category>
		<category><![CDATA[magento2-collection]]></category>
		<category><![CDATA[magento2-model]]></category>

		<guid isPermaLink="false">http://www.kdecom.com/?p=321</guid>
		<description><![CDATA[<p>Here i will show you some tips and trick regarding magento2 collection Here is what i was doing it for my magento2 product question answer extension. i need the list [...]</p><p>The post <a href="http://www.kdecom.com/how-to-use-magento2-collection/">How to use Magento2 Collection</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Here i will show you some tips and trick regarding magento2 collection</p>
<p>Here is what i was doing it for my magento2 product question answer extension.</p>
<p>i need the list of the question for that particular product to displaying on the product page.</p>
<p>What we used to do in old magento version</p>
<p>$this-&gt;getCollection()<br />
-&gt;addAttributeToFilter(&#8216;product_id&#8217;, $id)<br />
-&gt;addAttributeToFilter(&#8216;status&#8217;, &#8216;published&#8217;)<br />
;</p>
<p>but it didnt worked in magento2.</p>
<p>After doing some research of magento code i figure out instead of using addAttributeToFilter you should be using addFieldToFilter so i did replace it with</p>
<p>$this-&gt;getCollection()<br />
-&gt;addFieldToFilter(&#8216;product_id&#8217;, $id)<br />
-&gt;addFieldToFilter(&#8216;status&#8217;, &#8216;published&#8217;)<br />
;</p>
<p><strong>WORKED</strong></p>
<p>I will come up with more as i will know more ..</p>
<p>The post <a href="http://www.kdecom.com/how-to-use-magento2-collection/">How to use Magento2 Collection</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kdecom.com/how-to-use-magento2-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a Magento2 Admin Grid</title>
		<link>http://www.kdecom.com/how-to-create-a-magento2-admin-grid/</link>
		<comments>http://www.kdecom.com/how-to-create-a-magento2-admin-grid/#comments</comments>
		<pubDate>Sun, 12 May 2013 21:30:26 +0000</pubDate>
		<dc:creator>kdecom</dc:creator>
				<category><![CDATA[magento]]></category>
		<category><![CDATA[magento-extension]]></category>
		<category><![CDATA[magento2]]></category>
		<category><![CDATA[magento2-tutorial]]></category>
		<category><![CDATA[magento2-extension]]></category>
		<category><![CDATA[magento2-grid]]></category>

		<guid isPermaLink="false">http://www.kdecom.com/?p=294</guid>
		<description><![CDATA[<p>How to create a Magento2 Admin Grid What i learn from this extension is&#8230; How admin Grid works Admin Layouts. how to add Menu in magento2 admin How to create [...]</p><p>The post <a href="http://www.kdecom.com/how-to-create-a-magento2-admin-grid/">How to create a Magento2 Admin Grid</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></description>
				<content:encoded><![CDATA[<h1>How to create a Magento2 Admin Grid</h1>
<p>What i learn from this extension is&#8230;</p>
<ul>
<li>How admin Grid works</li>
<li>Admin Layouts.</li>
<li>how to add Menu in magento2 admin</li>
<li>How to create a magento2 admin grid</li>
</ul>
<p>Step1:- create a config file</p>
<p>app/code/Kdecom/Blog/eetc/config.xml with the code provided below.</p>
<pre class="brush: php; gutter: true">&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;config&gt;
    &lt;modules&gt;
        &lt;Kdecom_Blog&gt;
            &lt;version&gt;1.0.0.0&lt;/version&gt;
            &lt;active&gt;true&lt;/active&gt;
        &lt;/Kdecom_Blog&gt;
    &lt;/modules&gt;
    &lt;global&gt;
        &lt;resources&gt;
            &lt;blog_setup&gt;
                &lt;setup&gt;
                    &lt;module&gt;Kdecom_Blog&lt;/module&gt;
                &lt;/setup&gt;
            &lt;/blog_setup&gt;
        &lt;/resources&gt;
    &lt;/global&gt;
    &lt;admin&gt;
        &lt;routers&gt;
            &lt;adminhtml&gt;
                &lt;args&gt;
                    &lt;modules&gt;
                        &lt;blog before=&quot;Mage_Adminhtml&quot;&gt;Kdecom_Blog_Adminhtml&lt;/blog&gt;
                    &lt;/modules&gt;
                &lt;/args&gt;
            &lt;/adminhtml&gt;
        &lt;/routers&gt;
    &lt;/admin&gt;

    &lt;frontend&gt;
        &lt;routers&gt;
            &lt;blog&gt;
                &lt;use&gt;standard&lt;/use&gt;
                &lt;args&gt;
                    &lt;module&gt;Kdecom_Blog&lt;/module&gt;
                    &lt;frontName&gt;blog&lt;/frontName&gt;
                &lt;/args&gt;
            &lt;/blog&gt;
        &lt;/routers&gt;
        &lt;layout&gt;
            &lt;updates&gt;
                &lt;blog module=&quot;Kdecom_Blog&quot;&gt;
                    &lt;file&gt;layout.xml&lt;/file&gt;
                &lt;/blog&gt;
            &lt;/updates&gt;
        &lt;/layout&gt;
    &lt;/frontend&gt;
    &lt;adminhtml&gt;
        &lt;layout&gt;
            &lt;updates&gt;
                &lt;blog module=&quot;Kdecom_Blog&quot;&gt;
                    &lt;file&gt;layout.xml&lt;/file&gt;
                &lt;/blog&gt;
            &lt;/updates&gt;
        &lt;/layout&gt;
    &lt;/adminhtml&gt;
&lt;/config&gt;</pre>
<p>&lt;Kdecom_Blog&gt; &lt;version&gt;1.0.0.0&lt;/version&gt; &lt;active&gt;true&lt;/active&gt; &lt;/Kdecom_Blog&gt;</p>
<p>The above code is just saying your module is enabled. If you set as false it will disable the blog module.</p>
<p>Step2:-</p>
<p>create your sql file:-</p>
<p>/app/code/Kdecom/Blog/sql/blog_setup/install-1.0.0.0.php with this code</p>
<p>&nbsp;</p>
<pre class="brush: php; gutter: true">&lt;?php

$installer = $this;
/* @var $installer Mage_Core_Model_Resource_Setup */

$installer-&gt;startSetup();

$blogtable = $installer-&gt;getConnection()
    -&gt;newTable($installer-&gt;getTable(&#039;kd_blog&#039;))
    -&gt;addColumn(&#039;post_id&#039;, Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
        &#039;identity&#039;  =&gt; true,
        &#039;unsigned&#039;  =&gt; true,
        &#039;nullable&#039;  =&gt; false,
        &#039;primary&#039;   =&gt; true,
        ), &#039;Post Id&#039;)
    -&gt;addColumn(&#039;post_title&#039;, Varien_Db_Ddl_Table::TYPE_TEXT, 255, array(
        ), &#039;Post Title&#039;)
    -&gt;addColumn(&#039;post_content&#039;, Varien_Db_Ddl_Table::TYPE_TEXT, &#039;64k&#039;, array(
        ), &#039;Post Content&#039;)
    -&gt;addColumn(&#039;post_status&#039;, Varien_Db_Ddl_Table::TYPE_TEXT, 25, array(
        ), &#039;Post Status&#039;)
    -&gt;addColumn(&#039;created_datetime&#039;, Varien_Db_Ddl_Table::TYPE_DATETIME, null, array(
        ), &#039;Created Time&#039;)
    -&gt;addColumn(&#039;update_datetime&#039;, Varien_Db_Ddl_Table::TYPE_DATETIME, null, array(
        ), &#039;Updated Time&#039;)
    -&gt;addColumn(&#039;meta_keywords&#039;, Varien_Db_Ddl_Table::TYPE_TEXT, 512, array(
        ), &#039;Meta Keywords&#039;)
    -&gt;addColumn(&#039;meta_description&#039;, Varien_Db_Ddl_Table::TYPE_TEXT, 512, array(
        ), &#039;Meta Keywords&#039;)
    -&gt;addColumn(&#039;meta_title&#039;, Varien_Db_Ddl_Table::TYPE_TEXT, 512, array(
        ), &#039;Meta Keywords&#039;);
$installer-&gt;getConnection()-&gt;createTable($blogtable);

$commenttable = $installer-&gt;getConnection()
    -&gt;newTable($installer-&gt;getTable(&#039;kd_blog_comment&#039;))
    -&gt;addColumn(&#039;comment_id&#039;, Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
        &#039;identity&#039;  =&gt; true,
        &#039;unsigned&#039;  =&gt; true,
        &#039;nullable&#039;  =&gt; false,
        &#039;primary&#039;   =&gt; true,
        ), &#039;Comment Id&#039;)
    -&gt;addColumn(&#039;post_id&#039;, Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
        ), &#039;Post Id&#039;)
    -&gt;addColumn(&#039;comment_content&#039;, Varien_Db_Ddl_Table::TYPE_TEXT, &#039;64k&#039;, array(
        ), &#039;Comment Content&#039;)
    -&gt;addColumn(&#039;comment_status&#039;, Varien_Db_Ddl_Table::TYPE_TEXT, 25, array(
        ), &#039;Comment Status&#039;)
    -&gt;addColumn(&#039;user_name&#039;, Varien_Db_Ddl_Table::TYPE_DATETIME, null, array(
        ), &#039;User Name&#039;)
    -&gt;addColumn(&#039;user_email&#039;, Varien_Db_Ddl_Table::TYPE_DATETIME, null, array(
        ), &#039;User Email&#039;);

$installer-&gt;getConnection()-&gt;createTable($commenttable);

$installer-&gt;endSetup();</pre>
<p>Step3:- Now we are going to add a menu in magneto2 admin panel.</p>
<p>Add a file inside the /app/code/Kdecom/Blog/etc/adminhtml/menu.xml</p>
<pre class="brush: xml; gutter: true">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;config&gt;
    &lt;menu&gt;
        &lt;add id=&quot;Kdecom_Blog::marketing_adminuser_blog&quot; title=&quot;Blog&quot; 
             module=&quot;Kdecom_Blog&quot; sortOrder=&quot;60&quot; parent=&quot;Mage_Adminhtml::marketing&quot;  
             resource=&quot;Kdecom_Blog::marketing_adminuser_blog&quot;/&gt;
        &lt;add id=&quot;Kdecom_Blog::blog_post_list&quot; title=&quot;Blogs Grid&quot; module=&quot;Kdecom_Blog&quot; sortOrder=&quot;40&quot; 
             parent=&quot;Kdecom_Blog::marketing_adminuser_blog&quot;
             action=&quot;adminhtml/blog_blog/index&quot; resource=&quot;Kdecom_Blog::blog_post_list&quot;/&gt;       
    &lt;/menu&gt;
&lt;/config&gt;</pre>
<p>Step4:- Add a controller file inside the</p>
<p>app/code/Kdecom/Blog/controllers/Adminhtml/Blog/BlogController.php</p>
<pre class="brush: actionscript3; gutter: true">&lt;?php

/**
 *
 * @category   Kdecom
 * @package    KD Manufacturer &lt;www.kdecom.com&gt;
 */
class Kdecom_Blog_Adminhtml_Blog_BlogController extends Mage_Adminhtml_Controller_Action {

    public function indexAction() {
        $this-&gt;_title($this-&gt;__(&#039;Blog Post List&#039;))
                -&gt;_title($this-&gt;__(&#039;Manage Post&#039;));
        $this-&gt;loadLayout();
        $this-&gt;renderLayout();
    }
     public function newAction()
    {
        Mage::register(&#039;blog_action&#039;, &#039;new&#039;);
        $this-&gt;_forward(&#039;edit&#039;);
    }

    public function editAction() {

        $model = Mage::getModel(&#039;Kdecom_Blog_Model_Blog&#039;);
        $postId = (int) $this-&gt;getRequest()-&gt;getParam(&#039;post_id&#039;);
        if ($postId) {
            $model-&gt;load($postId);
        }
        $model-&gt;setData(&#039;update_datetime&#039;, date(&#039;Y-m-d H:m:s&#039;));

        if ($model-&gt;getId()) {
            $data = Mage::getSingleton(&#039;Mage_Backend_Model_Session&#039;)-&gt;getFormData(true);
            if (!empty($data)) {
                $model-&gt;setData($data);
            }
        }
        Mage::register(&#039;current_blog&#039;, $model);

        $this-&gt;loadLayout()
                //-&gt;_setActiveMenu(&#039;system/api&#039;)
                -&gt;_title(Mage::helper(&#039;Kdecom_Blog_Helper_Data&#039;)-&gt;__(&#039;Post&#039;));

        if (Mage::registry(&#039;blog_action&#039;) == &#039;new&#039;) {
            $this-&gt;_title(Mage::helper(&#039;Kdecom_Blog_Helper_Data&#039;)-&gt;__(&#039;Add Post&#039;));
        } else {
            $this-&gt;_title(Mage::helper(&#039;Kdecom_Blog_Helper_Data&#039;)-&gt;__(&#039;Edit Post&#039;));
        }

        $this-&gt;renderLayout();
    }

    public function saveAction() {
        $data = $this-&gt;getRequest()-&gt;getPost();

        $model = Mage::getModel(&#039;Kdecom_Blog_Model_Blog&#039;);
        $postId = (int) $this-&gt;getRequest()-&gt;getParam(&#039;post_id&#039;);

        if ($postId) {
            $model = $model-&gt;load($postId);
        } 
        $model-&gt;setUpdateDatetime(date(&#039;Y-m-d H:m:s&#039;));
        Mage::register(&#039;current_blog&#039;, $model);
        if ($data) {
            $model-&gt;setData($data);
            if($postId) {
                $model-&gt;setId($postId);
            } else {
                $model-&gt;setData(&#039;created_datetime&#039;, date(&#039;Y-m-d H:m:s&#039;));
            }
            $model-&gt;setData(&#039;update_datetime&#039;, date(&#039;Y-m-d H:m:s&#039;));

            try {
                $model-&gt;save();
                $this-&gt;_getSession()-&gt;addSuccess($this-&gt;__(&quot;The Post &#039;%s&#039; has been saved.&quot;, $model-&gt;getPostTitle()));
            } catch (Exception $e) {
                Mage::logException($e);
                $this-&gt;_getSession()-&gt;addError($e-&gt;getMessage());
            }
        } else {
            $this-&gt;_getSession()-&gt;addError($this-&gt;__(&quot;The Post &#039;%s&#039; has not been saved.&quot;, $model-&gt;getPostTitle()));
        }
        $this-&gt;_redirect(&#039;*/*/&#039;);
    }

    public function deleteAction() {
        $model = Mage::getModel(&#039;Kdecom_Blog_Model_Blog&#039;);

        $postId = (int) $this-&gt;getRequest()-&gt;getParam(&#039;id&#039;);
        if ($postId) {
            $model = $model-&gt;load($postId);
        }
        if ($model &amp;&amp; !$model-&gt;getId()) {
            try {
                $model-&gt;delete();
                $this-&gt;_getSession()-&gt;addSuccess($this-&gt;__(&quot;The Post &#039;%s&#039; has been removed.&quot;, $model-&gt;getName()));
            }
            catch (Exception $e) {
                Mage::logException($e);
                $this-&gt;_getSession()-&gt;addError($e-&gt;getMessage());
            }
        }
        else {
            $this-&gt;_getSession()-&gt;addError($this-&gt;__(&quot;The Post &#039;%s&#039; can not be removed.&quot;, $model-&gt;getName()));
        }
        $this-&gt;_redirect(&#039;*/*/&#039;);
    }

}</pre>
<p>Step5:- Add a Model file at /app/code/Kdecom/Blog/Model/Blog.php with the below code</p>
<pre class="brush: php; gutter: true">&lt;?php

class Kdecom_Blog_Model_Blog extends Mage_Core_Model_Abstract {

    public function _construct() {
        parent::_construct();
        $this-&gt;_init(&#039;Kdecom_Blog_Model_Resource_Blog&#039;);
    }
    public function getPostStatusOptions() {
        $status[] = array(&#039;label&#039; =&gt; &#039;Please Select&#039;,&#039;value&#039; =&gt; &#039;&#039;);
        $status[] = array(&#039;label&#039; =&gt; &#039;Draft&#039;,&#039;value&#039; =&gt; &#039;draft&#039;);
        $status[] = array(&#039;label&#039; =&gt; &#039;Published&#039;,&#039;value&#039; =&gt; &#039;published&#039;);
        return $status;
    }

}</pre>
<p>Next another Model file at  /app/code/Kdecom/Blog/Model/Resource/Blog.php</p>
<pre class="brush: php; gutter: true">&lt;?php

class Kdecom_Blog_Model_Resource_Blog extends Mage_Core_Model_Resource_Db_Abstract {

    public function _construct() {
        $this-&gt;_init(&#039;kd_blog&#039;, &#039;post_id&#039;);
    }

}</pre>
<p>We need one more model file at :- app/code/Kdecom/Blog/Model/Resource/Blog/Collection.php</p>
<pre class="brush: php; gutter: true">&lt;?php

class Kdecom_Blog_Model_Resource_Blog_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract {

    public function _construct() {
        parent::_construct();
        $this-&gt;_init(&#039;Kdecom_Blog_Model_Blog&#039;, &#039;Kdecom_Blog_Model_Resource_Blog&#039;);
    }
}</pre>
<p>Now we have to create some admin layout files:- app/code/Kdecom/Blog/view/adminhtml/layout.xml</p>
<pre class="brush: xml; gutter: true">&lt;?xml version=&quot;1.0&quot;?&gt;

&lt;layout&gt;
    &lt;adminhtml_blog_blog_index&gt;
        &lt;reference name=&quot;content&quot;&gt;
            &lt;block type=&quot;Kdecom_Blog_Block_Adminhtml_Blog&quot; name=&quot;blog.post.list&quot; /&gt;
        &lt;/reference&gt;
    &lt;/adminhtml_blog_blog_index&gt;

    &lt;adminhtml_blog_blog_edit&gt;
        &lt;update handle=&quot;editor&quot;/&gt;
        &lt;reference name=&quot;content&quot;&gt;
            &lt;block type=&quot;Kdecom_Blog_Block_Adminhtml_Blog_Edit&quot;  name=&quot;blog.post.edit&quot; /&gt;
        &lt;/reference&gt;
    &lt;/adminhtml_blog_blog_edit&gt;

&lt;/layout&gt;</pre>
<p>We have to create an empty helper file:-  /app/code/Kdecom/Blog/Helper/Data.php</p>
<pre class="brush: php; gutter: true">&lt;?php

class Kdecom_Blog_Helper_Data extends Mage_Catalog_Helper_Data {

}</pre>
<p>So at last now we have to create 4 another Block files for grid to work&#8230;</p>
<p>Create first block file:- /app/code/Kdecom/Blog/Block/Adminhtml/Blog.php</p>
<pre class="brush: php; gutter: true">&lt;?php
class Kdecom_Blog_Block_Adminhtml_Blog extends Mage_Backend_Block_Widget_Grid_Container
{
    /**
     * @var string
     */
    protected $_blockGroup = &#039;Kdecom_Blog&#039;;

    /**
     * @var string
     */
    protected $_controller = &#039;adminhtml_blog&#039;;

    /**
     * Internal constructor.
     */
    protected function _construct()
    {
        parent::_construct();

        $this-&gt;_headerText      = $this-&gt;__(&#039;Blog Post&#039;);
    }
}</pre>
<p>/app/code/Kdecom/Blog/Block/Adminhtml/Blog/Grid.php</p>
<pre class="brush: php; gutter: true">&lt;?php

class Kdecom_Blog_Block_Adminhtml_Blog_Grid extends Mage_Backend_Block_Widget_Grid_Extended {

    public function _construct() {
        parent::_construct();
        $this-&gt;setId(&#039;blogGrid&#039;);
        $this-&gt;setDefaultSort(&#039;id&#039;);
        $this-&gt;setDefaultDir(&#039;ASC&#039;);
        $this-&gt;setSaveParametersInSession(true);
    }

    protected function _prepareCollection() {
        $collection = Mage::getModel(&#039;Kdecom_Blog_Model_Blog&#039;)-&gt;getCollection();
        $this-&gt;setCollection($collection);
        return parent::_prepareCollection();
    }

    protected function _prepareColumns() {
        $this-&gt;addColumn(&#039;post_id&#039;, array(
            &#039;header&#039; =&gt; $this-&gt;__(&#039;Post Id&#039;),
            &#039;align&#039; =&gt; &#039;right&#039;,
            &#039;width&#039; =&gt; &#039;50px&#039;,
            &#039;index&#039; =&gt; &#039;post_id&#039;,
        ));

        $this-&gt;addColumn(&#039;post_title&#039;, array(
            &#039;header&#039; =&gt; $this-&gt;__(&#039;Title&#039;),
            &#039;align&#039; =&gt; &#039;left&#039;,
            &#039;index&#039; =&gt; &#039;post_title&#039;,
        ));
        $this-&gt;addColumn(&#039;update_datetime&#039;, array(
            &#039;header&#039; =&gt; $this-&gt;__(&#039;Post Last Updated DateTime&#039;),
            &#039;align&#039; =&gt; &#039;left&#039;,
            &#039;index&#039; =&gt; &#039;update_datetime&#039;,
        ));

        $this-&gt;addColumn(&#039;meta_title&#039;, array(
            &#039;header&#039; =&gt; $this-&gt;__(&#039;Meta Title&#039;),
            &#039;align&#039; =&gt; &#039;left&#039;,
            &#039;index&#039; =&gt; &#039;meta_title&#039;,
        ));

        $this-&gt;addColumn(&#039;action&#039;, array(
            &#039;header&#039; =&gt; Mage::helper(&#039;Kdecom_Blog_Helper_Data&#039;)-&gt;__(&#039;Action&#039;),
            &#039;width&#039; =&gt; &#039;100&#039;,
            &#039;type&#039; =&gt; &#039;action&#039;,
            &#039;getter&#039; =&gt; &#039;getId&#039;,
            &#039;actions&#039; =&gt; array(
                array(
                    &#039;caption&#039; =&gt; Mage::helper(&#039;Kdecom_Blog_Helper_Data&#039;)-&gt;__(&#039;Edit&#039;),
                    &#039;url&#039; =&gt; array(&#039;base&#039; =&gt; &#039;*/*/edit&#039;),
                    &#039;field&#039; =&gt; &#039;post_id&#039;
                )
            ),
            &#039;filter&#039; =&gt; false,
            &#039;sortable&#039; =&gt; false,
            &#039;index&#039; =&gt; &#039;stores&#039;,
            &#039;is_system&#039; =&gt; true,
        ));

        return parent::_prepareColumns();
    }

    public function getGridUrl() {
        return $this-&gt;getUrl(&#039;*/*/grid&#039;, array(&#039;_current&#039; =&gt; true));
    }

    public function getRowUrl($row) {
        return $this-&gt;getUrl(&#039;*/*/edit&#039;, array(&#039;id&#039; =&gt; $row-&gt;getId()));
    }

}</pre>
<p>Next file app/code/Kdecom/Blog/BlockAdminhtml/Blog/Edit.php</p>
<pre class="brush: php; gutter: true">&lt;?php

class Kdecom_Blog_Block_Adminhtml_Blog_Edit extends Mage_Adminhtml_Block_Widget_Form_Container {

    protected function _construct() {
        $this-&gt;_objectId = &#039;id&#039;;
        $this-&gt;_blockGroup = &#039;Kdecom_Blog&#039;;
        $this-&gt;_controller = &#039;adminhtml_blog&#039;;

        parent::_construct();

        $this-&gt;getCanLoadTinyMce();
        $this-&gt;_updateButton(&#039;save&#039;, &#039;label&#039;, Mage::helper(&#039;Mage_Customer_Helper_Data&#039;)-&gt;__(&#039;Save Post&#039;));
        $this-&gt;_updateButton(&#039;delete&#039;, &#039;label&#039;, Mage::helper(&#039;Mage_Customer_Helper_Data&#039;)-&gt;__(&#039;Delete Post&#039;));
    }

}</pre>
<p>Last file /app/code/Kdecom/Blog/Block/Adminhtml/Blog/Edit/Form.php</p>
<pre class="brush: php; gutter: true">&lt;?php

class Kdecom_Blog_Block_Adminhtml_Blog_Edit_Form extends Mage_Backend_Block_Widget_Form {

    protected function _prepareLayout() {
        parent::_prepareLayout();
        if (Mage::getSingleton(&#039;Mage_Cms_Model_Wysiwyg_Config&#039;)-&gt;isEnabled()) {
            $this-&gt;getLayout()-&gt;getBlock(&#039;head&#039;)-&gt;setCanLoadTinyMce(true);
        }
    }

    protected function _prepareForm() {

        $blogPost = Mage::registry(&#039;current_blog&#039;);
        $form = new Varien_Data_Form(
                        array(
                            &#039;id&#039; =&gt; &#039;edit_form&#039;,
                            &#039;action&#039; =&gt; $this-&gt;getUrl(
                                    &#039;*/*/save&#039;, array(&#039;post_id&#039; =&gt; $blogPost-&gt;getId())
                            ),
                            &#039;method&#039; =&gt; &#039;post&#039;
                        )
        );

        $fieldset = $form-&gt;addFieldset(&#039;blog_fieldset&#039;, array(&#039;legend&#039; =&gt; $this-&gt;__(&#039;Blog Post&#039;)));

        $fieldset-&gt;addField(
            &#039;post_title&#039;, &#039;text&#039;, array(
            &#039;label&#039; =&gt; $this-&gt;__(&#039;Post Title&#039;),
            &#039;class&#039; =&gt; &#039;required-entry&#039;,
            &#039;required&#039; =&gt; true,
            &#039;name&#039; =&gt; &#039;post_title&#039;,
                )
        );

        $fieldset-&gt;addField(
                &#039;post_content&#039;, &#039;editor&#039;, array(
            &#039;label&#039; =&gt; $this-&gt;__(&#039;Post Content&#039;),
            &#039;class&#039; =&gt; &#039;required-entry&#039;,
            &#039;style&#039; =&gt; &#039;width:725px;height:460px&#039;,
            &#039;required&#039; =&gt; true,
            &#039;force_load&#039; =&gt; true,
            &#039;name&#039; =&gt; &#039;post_content&#039;,
            &#039;config&#039; =&gt; Mage::getSingleton(&#039;Mage_Cms_Model_Wysiwyg_Config&#039;)-&gt;getConfig($config)
                )
        );

        $postStatus = array();
        $postStatus = Mage::getModel(&#039;Kdecom_Blog_Model_Blog&#039;)-&gt;getPostStatusOptions();
        $fieldset-&gt;addField(&#039;post_status&#039;, &#039;select&#039;, array(
            &#039;label&#039; =&gt; $this-&gt;__(&#039;Post Status&#039;),
            &#039;required&#039; =&gt; true,
            &#039;values&#039; =&gt; $postStatus,
            &#039;name&#039; =&gt; &#039;post_status&#039;,
        ));

        $fieldset-&gt;addField(&#039;meta_title&#039;, &#039;text&#039;, array(
            &#039;label&#039; =&gt; $this-&gt;__(&#039;Meta Title&#039;),
            &#039;required&#039; =&gt; false,
            &#039;name&#039; =&gt; &#039;meta_title&#039;
        ));
        $fieldset-&gt;addField(&#039;meta_keywords&#039;, &#039;textarea&#039;, array(
            &#039;label&#039; =&gt; $this-&gt;__(&#039;Meta Keywords&#039;),
            &#039;required&#039; =&gt; false,
            &#039;style&#039; =&gt; &#039;width:725px;height:200px&#039;,
            &#039;name&#039; =&gt; &#039;meta_keywords&#039;,
            &#039;values&#039; =&gt; $postStatus,
        ));
        $fieldset-&gt;addField(&#039;meta_description&#039;, &#039;textarea&#039;, array(
            &#039;label&#039; =&gt; $this-&gt;__(&#039;Meta Description&#039;),
            &#039;style&#039; =&gt; &#039;width:725px;height:200px&#039;,
            &#039;name&#039; =&gt; &#039;meta_description&#039;,
            &#039;required&#039; =&gt; false
        ));

        $values = $blogPost-&gt;getData();
        $form-&gt;setUseContainer(true);
        $form-&gt;setValues($values);
        $this-&gt;setForm($form);
        return parent::_prepareForm();
    }

}</pre>
<p>Now you can try to login into the admin panel and you will be able to see the menu under marketing with Blog. Click on Grid<br />
You will be able to see the Post Grid.<br />
<a href="http://www.kdecom.com/wp-content/uploads/2013/05/blog-grid-magento2-admin.png"><img class="alignnone size-full wp-image-372" alt="blog-grid-magento2-admin" src="http://www.kdecom.com/wp-content/uploads/2013/05/blog-grid-magento2-admin.png" width="1305" height="617" /></a></p>
<p>The post <a href="http://www.kdecom.com/how-to-create-a-magento2-admin-grid/">How to create a Magento2 Admin Grid</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kdecom.com/how-to-create-a-magento2-admin-grid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a Magento2 Lightbox Extension</title>
		<link>http://www.kdecom.com/how-to-create-a-magento2-lightbox-extension/</link>
		<comments>http://www.kdecom.com/how-to-create-a-magento2-lightbox-extension/#comments</comments>
		<pubDate>Thu, 09 May 2013 00:11:03 +0000</pubDate>
		<dc:creator>kdecom</dc:creator>
				<category><![CDATA[magento]]></category>
		<category><![CDATA[magento-extension]]></category>
		<category><![CDATA[magento2]]></category>
		<category><![CDATA[magento2-tutorial]]></category>

		<guid isPermaLink="false">http://www.kdecom.com/?p=257</guid>
		<description><![CDATA[<p>How to create a Magento2 Lightbox Extension &#160; Why do i learn from this extension? Light box extension helps magento2 developer to get more knowledge about how to use magento [...]</p><p>The post <a href="http://www.kdecom.com/how-to-create-a-magento2-lightbox-extension/">How to create a Magento2 Lightbox Extension</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></description>
				<content:encoded><![CDATA[<h1>How to create a Magento2 Lightbox Extension</h1>
<p>&nbsp;</p>
<p><strong>Why do i learn from this extension?</strong></p>
<p>Light box extension helps magento2 developer to get more knowledge about how to use magento system data and layout. and important how to over ride a magento layout with your own template.</p>
<p>&nbsp;</p>
<p><strong>Now we start Developing Extension</strong></p>
<p>Before we start i will show you the folder and files to make this extesion.</p>
<p><a href="http://www.kdecom.com/wp-content/uploads/2013/05/magento2-lightbox-extension-folder-stucture-with-file.png"><img class="alignnone size-full wp-image-275" alt="magento2-lightbox-extension-folder-stucture-with-file" src="http://www.kdecom.com/wp-content/uploads/2013/05/magento2-lightbox-extension-folder-stucture-with-file.png" width="267" height="420" /></a></p>
<p>Lets Start now&#8230;.</p>
<p>Step1:-  First create a config.xml file inside the Kdecom/Lightbox/etc/config.xml</p>
<pre class="brush: xml; gutter: true">&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;config&gt;
    &lt;modules&gt;
        &lt;Kdecom_Lightbox&gt;
            &lt;version&gt;1.0.0.0&lt;/version&gt;
            &lt;active&gt;true&lt;/active&gt;
        &lt;/Kdecom_Lightbox&gt;
    &lt;/modules&gt;
    &lt;frontend&gt;
        &lt;layout&gt;
            &lt;updates&gt;
                &lt;lightbox module=&quot;Kdecom_Lightbox&quot;&gt;
                    &lt;file&gt;layout.xml&lt;/file&gt;
                &lt;/lightbox&gt;
            &lt;/updates&gt;
        &lt;/layout&gt;
    &lt;/frontend&gt;
&lt;/config&gt;</pre>
<p>&nbsp;</p>
<p>Step 2:- Create a file called system.xml inside the Kdecom/Lightbox/etc/adminhtml/system.xml</p>
<pre class="brush: xml; gutter: true">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;config&gt;
    &lt;system&gt;
        &lt;section id=&quot;catalog&quot;&gt;
            &lt;group id=&quot;lightbox&quot; translate=&quot;label&quot; type=&quot;text&quot; sortOrder=&quot;1&quot; showInDefault=&quot;1&quot; showInWebsite=&quot;1&quot; showInStore=&quot;1&quot;&gt;
                &lt;label&gt;Kdecom Lightbox&lt;/label&gt;
                &lt;field id=&quot;enable&quot; translate=&quot;label comment&quot; type=&quot;select&quot; sortOrder=&quot;10&quot; showInDefault=&quot;1&quot; showInWebsite=&quot;0&quot; showInStore=&quot;1&quot;&gt;
                    &lt;label&gt;Enable&lt;/label&gt;
                    &lt;comment&gt;Change Yes and No to Enable or Disable the Lightbox effect on Product Page&lt;/comment&gt;
                    &lt;source_model&gt;Mage_Backend_Model_Config_Source_Yesno&lt;/source_model&gt;
                &lt;/field&gt;
            &lt;/group&gt;
        &lt;/section&gt;
    &lt;/system&gt;
&lt;/config&gt;</pre>
<p>Step3:- Create a layout.xml file inside the Kdecom/Lightbox/view/frontend/layout.xml</p>
<pre class="brush: xml; gutter: true">&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;layout version=&quot;0.1.0&quot;&gt;

    &lt;default&gt;
        &lt;reference name=&quot;head&quot;&gt;
            &lt;action method=&quot;addCSs&quot;&gt;
                &lt;name&gt;Kdecom_Lightbox::css/lightbox.css&lt;/name&gt;
            &lt;/action&gt;
            &lt;action method=&quot;addJs&quot;&gt;
                &lt;name&gt;Kdecom_Lightbox::js/lightbox.js&lt;/name&gt;
            &lt;/action&gt;
        &lt;/reference&gt;
    &lt;/default&gt;
    &lt;catalog_product_view&gt;
        &lt;reference name=&quot;product.info.media&quot;&gt;
            &lt;action method=&quot;setTemplate&quot;&gt;
                &lt;template&gt;Kdecom_Lightbox::lightbox/media.phtml&lt;/template&gt;
            &lt;/action&gt;
        &lt;/reference&gt;
    &lt;/catalog_product_view&gt;    
&lt;/layout&gt;</pre>
<p>Step4:-  create a file called medial.phtml inside the Kdecom/Lightbox/view/frontend/lightbox/media.phtml</p>
<pre class="brush: php; gutter: true">&lt;?php
    $mediaBlock = $this-&gt;getLayout()-&gt;createBlock(&#039;Mage_Catalog_Block_Product_View_Media&#039;);
    $_product = $mediaBlock-&gt;getProduct();
    $_helper = $this-&gt;helper(&#039;Mage_Catalog_Helper_Output&#039;);
?&gt;
&lt;?php if ($_product-&gt;getImage() != &#039;no_selection&#039; &amp;&amp; $_product-&gt;getImage()): ?&gt;
&lt;p class=&quot;product-image product-image-zoom&quot;&gt;
    &lt;?php
        $_img = &#039;&lt;a href=&quot;&#039;.$this-&gt;helper(&#039;Mage_Catalog_Helper_Image&#039;)-&gt;init($_product, &#039;image&#039;).&#039;&quot; rel=&quot;lightbox[kdecom]&quot;&gt; &lt;img  id=&quot;image&quot; src=&quot;&#039;.$this-&gt;helper(&#039;Mage_Catalog_Helper_Image&#039;)-&gt;init($_product, &#039;image&#039;).&#039;&quot; alt=&quot;&#039;.$this-&gt;__($mediaBlock-&gt;getImageLabel()).&#039;&quot; 
            title=&quot;&#039;.$this-&gt;__($mediaBlock-&gt;getImageLabel()).&#039;&quot; /&gt;&lt;/a&gt;&#039;;
        echo $_helper-&gt;productAttribute($_product, $_img, &#039;image&#039;);
    ?&gt;
&lt;/p&gt;

&lt;?php else: ?&gt;
&lt;p class=&quot;product-image&quot;&gt;
    &lt;?php
        $_img = &#039;&lt;img src=&quot;&#039;.$mediaBlock-&gt;getBaseImageUrl($_product).&#039;&quot; alt=&quot;&#039;.$this-&gt;__($mediaBlock-&gt;getImageLabel()).&#039;&quot; title=&quot;&#039;.$this-&gt;__($mediaBlock-&gt;getImageLabel()).&#039;&quot; /&gt;&#039;;
        echo $_helper-&gt;productAttribute($_product, $_img, &#039;image&#039;);
    ?&gt;
&lt;/p&gt;
&lt;?php endif; ?&gt;
&lt;?php if (count($mediaBlock-&gt;getGalleryImages()) &gt; 0): ?&gt;
&lt;div class=&quot;more-views&quot;&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;__(&#039;More Views&#039;) ?&gt;&lt;/h2&gt;
    &lt;ul&gt;
    &lt;?php $_size = $mediaBlock-&gt;getBaseImageIconSize()?&gt;
    &lt;?php foreach ($mediaBlock-&gt;getGalleryImages() as $_image): ?&gt;
        &lt;li&gt;
            &lt;a href=&quot;&lt;?php echo $this-&gt;helper(&#039;Mage_Catalog_Helper_Image&#039;)-&gt;init($mediaBlock-&gt;getProduct(), &#039;image&#039;, $_image-&gt;getFile()); ?&gt;&quot; rel=&quot;lightbox[kdecom]&quot;
               title=&quot;&lt;?php echo $this-&gt;__($_image-&gt;getLabel()) ?&gt;&quot;&gt;
                &lt;img src=&quot;&lt;?php echo $this-&gt;helper(&#039;Mage_Catalog_Helper_Image&#039;)-&gt;init($mediaBlock-&gt;getProduct(), &#039;image&#039;, $_image-&gt;getFile())-&gt;resize($_size); ?&gt;&quot; 
                     width=&quot;&lt;?php echo $_size?&gt;&quot; height=&quot;&lt;?php echo $_size?&gt;&quot; alt=&quot;&lt;?php echo $this-&gt;__($_image-&gt;getLabel()) ?&gt;&quot;/&gt;
            &lt;/a&gt;
        &lt;/li&gt;
    &lt;?php endforeach; ?&gt;
    &lt;/ul&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;</pre>
<p>That&#8217;s all you need to do and make sure you download the css and images for lightbox as well. Well we don&#8217;t need the jQuery included in magento2 because magento2 use jQuery instead of prototype.js.</p>
<p>There is one thing we have to do is just to change the lightbox css to use relative path for  the image and remove the loading and close image from lightbox.js.</p>
<p>If you don&#8217;t want to do that then just simply download the code and use that js and css files.<br />
Download code is here.</p>


    <div class="freebie-sub-box">
    
        <div class="freebie-sub-inner">
        
            <h3>Would you like to Download this code?</h3>
            <p>Simply enter you\\\'re email address and the download link will be sent right to you\\\'re inbox.</p>
            
            <form class="freebie-sub-form">
            
                <div class="replaceArea">
                
                	<div class="replaceArea-error"></div>
                    
                    <center>
                    <input type="text" onblur="if(this.value=='')this.value='Email Address';" onfocus="if(this.value=='Email Address')this.value='';" value="Email Address" name="email" class="name">
                    
                    <input type="submit" value="Download" class="freebie-submit">
                    </center>
                    
                    <label><input class="agree" type="checkbox" checked="checked" value="1" name="agree"><span>YES! Please send me the newletter and all tips available  regarding magento2 extension.</span></label>
                    
                    <input type="hidden" name="id" id="id" value="aHR0cDovL3d3dy5rZGVjb20uY29tL3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDEzLzA1L0tkZWNvbS1MaWdodGJveC56aXA=">
                    
                </div>
                
            </form>
            
        </div>
        
    </div>
	
	
<p>The post <a href="http://www.kdecom.com/how-to-create-a-magento2-lightbox-extension/">How to create a Magento2 Lightbox Extension</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kdecom.com/how-to-create-a-magento2-lightbox-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a Hello world extension in Magento2</title>
		<link>http://www.kdecom.com/how-to-create-a-hello-world-extension-in-magento2/</link>
		<comments>http://www.kdecom.com/how-to-create-a-hello-world-extension-in-magento2/#comments</comments>
		<pubDate>Tue, 07 May 2013 02:04:16 +0000</pubDate>
		<dc:creator>kdecom</dc:creator>
				<category><![CDATA[magento-extension]]></category>
		<category><![CDATA[magento2]]></category>
		<category><![CDATA[magento2-tutorial]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento2-extension]]></category>

		<guid isPermaLink="false">http://www.kdecom.com/?p=227</guid>
		<description><![CDATA[<p>What is Magento2? Magento is a one of the best available Open source with a lot of featured E commerce platform. Best thing about the magento is it is designed [...]</p><p>The post <a href="http://www.kdecom.com/how-to-create-a-hello-world-extension-in-magento2/">How to create a Hello world extension in Magento2</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><strong>What is Magento2?</strong></p>
<p><strong></strong>Magento is a one of the best available Open source with a lot of featured E commerce platform. Best thing about the magento is it is designed to to be completely extendable. Specially magento 2 is the more better and more secure version and best thing in magento2 is it use jQuery instead of prototype.</p>
<p>Main concept for this extension is just to understand new magento2 folder structure and this is one step to start the developing magento2 extension.</p>
<h1>How to create a Hello world extension in Magento2</h1>
<p>If you don&#8217;t have a Magento2 Code base please <a title="Magento2 Code Base" href="http://www.kdecom.com/wp-content/uploads/2013/05/magento2-master.zip" target="_blank">download </a>it from here.</p>
<p>First of all I will show you what is the new folder structure for the magento2 extension.</p>
<p>&nbsp;</p>
<p><a href="http://www.kdecom.com/wp-content/uploads/2013/05/magento2-extension-folder-stucture-with-file.png"><img class="alignnone size-medium wp-image-245" alt="magento2-extension-folder-stucture-with-file" src="http://www.kdecom.com/wp-content/uploads/2013/05/magento2-extension-folder-stucture-with-file-250x300.png" width="250" height="300" /></a></p>
<p>So now all code goes inside one folder structure which i prefer is an good idea then the all other magento previous version.</p>
<p>Now we are start creating files for the magento2 Hello World Extension.</p>
<p>First of all we will create a config file for magento2 which goes inside the</p>
<p>etc/config.xml</p>
<p>Create a file with below content.</p>
<pre class="brush: xml; gutter: true">&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;config&gt;
    &lt;modules&gt;
        &lt;Kdecom_HelloWorld&gt;
            &lt;version&gt;1.0.0.0&lt;/version&gt;
            &lt;active&gt;true&lt;/active&gt;
        &lt;/Kdecom_HelloWorld&gt;
    &lt;/modules&gt;
    &lt;frontend&gt;
        &lt;routers&gt;
            &lt;helloworld&gt;
                &lt;use&gt;standard&lt;/use&gt;
                &lt;args&gt;
                    &lt;module&gt;Kdecom_HelloWorld&lt;/module&gt;
                    &lt;frontName&gt;hello-world&lt;/frontName&gt;
                &lt;/args&gt;
            &lt;/helloworld&gt;
        &lt;/routers&gt;
        &lt;layout&gt;
            &lt;updates&gt;
                &lt;helloworld module=&quot;Kdecom_HelloWorld&quot;&gt;
                    &lt;file&gt;layout.xml&lt;/file&gt;
                &lt;/helloworld&gt;
            &lt;/updates&gt;
        &lt;/layout&gt;
    &lt;/frontend&gt;
&lt;/config&gt;</pre>
<p>First</p>
<pre>&lt;modules&gt;
    &lt;Kdecom_HelloWorld&gt;
        &lt;version&gt;1.0.0.0&lt;/version&gt;
        &lt;active&gt;true&lt;/active&gt;
    &lt;/Kdecom_HelloWorld&gt;
&lt;/modules&gt;

This block of code is just to enable and disabled your extension and specify your extension version.

&lt;routers&gt;
    &lt;helloworld&gt; &lt;!-- This tag not that important but it has to be unique --&gt;
        &lt;use&gt;standard&lt;/use&gt;
        &lt;args&gt;
            &lt;module&gt;Kdecom_HelloWorld&lt;/module&gt;
            &lt;frontName&gt;hello-world&lt;/frontName&gt;
        &lt;/args&gt;
    &lt;/helloworld&gt;</pre>
<pre>&lt;/routers&gt;

Route Xml Tag is used in magento2 to understand which controller i should get execute.
So from above route when you execute 
http://SITENAME/index.php/hello-world that will execute our module IndexController with IndexAction.

Another Example??</pre>
<pre>http://SITENAME/index.php/hello-world/CONTROLLER/ACTION-NAME (i hope it make sense) If not then don&#039;t worry you will see  an similar example in this module.</pre>
<pre>&lt;layout&gt;
    &lt;updates&gt;
        &lt;helloworld module=&quot;Kdecom_HelloWorld&quot;&gt;
            &lt;file&gt;layout.xml&lt;/file&gt;
        &lt;/helloworld&gt;
    &lt;/updates&gt;
&lt;/layout&gt;

This will defined our layout.xml file but now path for your layout file is been changed to /view/frontend/layout.xml

but if you have it like this  &lt;file&gt;kdecom/layout.xml&lt;/file&gt; then it will look for your file inside the /view/frontend/kdecom/layout.xml</pre>
<pre>Next Step</pre>
<p>Create a layout file which goes inside the view/frontend/layout.xml</p>
<pre class="brush: xml; gutter: true">&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;layout version=&quot;0.1.0&quot;&gt;
    &lt;hello_world_index translate=&quot;label&quot; type=&quot;page&quot; parent=&quot;default&quot;&gt;
        &lt;label&gt;Kdecom Hello World&lt;/label&gt;
        &lt;reference name=&quot;content&quot;&gt;
            &lt;block type=&quot;Kdecom_HelloWorld_Block_Index&quot;  name=&quot;hello_world_index&quot; template=&quot;index.phtml&quot;/&gt;
        &lt;/reference&gt;
    &lt;/hello_world_index&gt;
    &lt;hello_world_test translate=&quot;label&quot; type=&quot;page&quot; parent=&quot;default&quot;&gt;
        &lt;label&gt;Kdecom Hello World New Controller Action&lt;/label&gt;
        &lt;reference name=&quot;content&quot;&gt;
            &lt;block type=&quot;Kdecom_HelloWorld_Block_Index&quot;  name=&quot;hello_world_test&quot; template=&quot;test.phtml&quot;/&gt;
        &lt;/reference&gt;
    &lt;/hello_world_test&gt;
&lt;/layout&gt;</pre>
<p>Next Step is to create a IndexController.php file which goes inside the</p>
<p>controllers/IndexController.php</p>
<pre class="brush: php; gutter: true">class Kdecom_HelloWorld_IndexController extends Mage_Core_Controller_Front_Action {
    public function indexAction() {
        $this-&gt;loadLayout();
        $this-&gt;loadLayout(&#039;hello_world_index&#039;);
        $this-&gt;renderLayout();
    }
    public function testAction() {
        $this-&gt;loadLayout();
        $this-&gt;loadLayout(&#039;hello_world_test&#039;);
        $this-&gt;renderLayout();
    }

}</pre>
<p>Next Step :- Create a index.phtml file which goes inside the</p>
<p>view/frontend/index.phtml</p>
<pre class="brush: php; gutter: true">echo $this-&gt;getHelloWorld();</pre>
<p>Next Step:- Create a Index.php file which goes inside the</p>
<pre class="brush: php; gutter: true">class Kdecom_HelloWorld_Block_Index extends Mage_Catalog_Block_Product_Abstract {

    public function getHelloWorld() {
        return &quot;Hello World&quot;;
    }

    public function getHelloWorldTest() {
        return &quot;Hello World Test Action&quot;;
    }

}</pre>
<p>Next Last Step:-</p>
<p>Create test.phtml file</p>
<pre class="brush: php; gutter: true">echo $this-&gt;getHelloWorldTest();</pre>
<p>As Soon as you finished all the above step then you should try to check if your module works fine or not.</p>
<p>http://YOURSITENAME/index.php/hello-world</p>
<p>In my case it was</p>
<p>Live Demo</p>
<p><a title="Magento 2 Hello World Demo" href="http://www.kdecom.com/mage2/helloworld">http://www.kdecom.com/mage2/helloworld</a></p>
<p>http://www.localhost.com/mage2/index.php/hello-world/</p>
<p>Here is what i am seeing in my screen.</p>
<p><a href="http://www.kdecom.com/wp-content/uploads/2013/05/magento2-hello-world-output-index-action.png"><img class="alignnone size-medium wp-image-247" alt="magento2-hello-world-output-index-action" src="http://www.kdecom.com/wp-content/uploads/2013/05/magento2-hello-world-output-index-action-300x278.png" width="300" height="278" /></a></p>
<p>This will execute controller testAction ..</p>
<p>Live Demo</p>
<p><a title="Magento2 Live Hello World Test Action Demo" href="http://www.kdecom.com/mage2/helloworld/index/test">http://www.kdecom.com/mage2/helloworld/index/test</a></p>
<p>http://YOURSITENAME/index.php/hello-world/index/test</p>
<p>http://www.localhost.com/mage2/index.php/hello-world/index/test</p>
<p>Here is what i am seeing in my screen.</p>
<p><a href="http://www.kdecom.com/wp-content/uploads/2013/05/magento2-hello-world-output-test-action.png"><img class="alignnone size-medium wp-image-248" alt="magento2-hello-world-output-test-action" src="http://www.kdecom.com/wp-content/uploads/2013/05/magento2-hello-world-output-test-action-300x263.png" width="300" height="263" /></a></p>
<p>If anyone has any problem please comment below to say any words.</p>
<p>&nbsp;</p>


    <div class="freebie-sub-box">
    
        <div class="freebie-sub-inner">
        
            <h3>Would you like to Download this code?</h3>
            <p>Simply enter you\\\'re email address and the download link will be sent right to you\\\'re inbox.</p>
            
            <form class="freebie-sub-form">
            
                <div class="replaceArea">
                
                	<div class="replaceArea-error"></div>
                    
                    <center>
                    <input type="text" onblur="if(this.value=='')this.value='Email Address';" onfocus="if(this.value=='Email Address')this.value='';" value="Email Address" name="email" class="name">
                    
                    <input type="submit" value="Download" class="freebie-submit">
                    </center>
                    
                    <label><input class="agree" type="checkbox" checked="checked" value="1" name="agree"><span>YES! Please send me the newletter and all tips available  regarding magento2 extension.</span></label>
                    
                    <input type="hidden" name="id" id="id" value="IGh0dHA6Ly93d3cua2RlY29tLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxMy8wNS9rZGVjb20taGVsbG93b3JsZC56aXA=">
                    
                </div>
                
            </form>
            
        </div>
        
    </div>
	
	
<p>The post <a href="http://www.kdecom.com/how-to-create-a-hello-world-extension-in-magento2/">How to create a Hello world extension in Magento2</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kdecom.com/how-to-create-a-hello-world-extension-in-magento2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin Tips</title>
		<link>http://www.kdecom.com/wordpress-plugin-tips/</link>
		<comments>http://www.kdecom.com/wordpress-plugin-tips/#comments</comments>
		<pubDate>Thu, 02 May 2013 22:27:08 +0000</pubDate>
		<dc:creator>kdecom</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[custom-post-type]]></category>
		<category><![CDATA[limit-meta-box]]></category>
		<category><![CDATA[meta-box]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[wordpress-tips]]></category>

		<guid isPermaLink="false">http://www.kdecom.com/?p=189</guid>
		<description><![CDATA[<p>WordPress Plugin Tips &#160; Specially this post is all about to make wordpress developer life easy and improve code base. How to Use post_content with well formatted If you are [...]</p><p>The post <a href="http://www.kdecom.com/wordpress-plugin-tips/">WordPress Plugin Tips</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></description>
				<content:encoded><![CDATA[<h1>WordPress Plugin Tips</h1>
<p>&nbsp;</p>
<p><a href="http://www.kdecom.com/wp-content/uploads/2013/05/wordpress-plugin-tips.png"><img class="alignnone size-full wp-image-284" alt="wordpress-plugin-tips" src="http://www.kdecom.com/wp-content/uploads/2013/05/wordpress-plugin-tips.png" width="600" height="300" /></a></p>
<p>Specially this post is all about to make wordpress developer life easy and improve code base.</p>
<p><strong>How to Use post_content with well formatted</strong></p>
<p>If you are a developer and you are working on a plugin or custom development. So many times it happens to be a you got the post content but when you echo out that content its not formatted.</p>
<p>In my example i was working with event plugin and i got the post_content but when i did echo out that content there was no formatting.  Just use the filter called <strong><em>the_content </em></strong>and you will get the content with well formatted.</p>
<p>Here is my solution:-</p>
<pre class="brush: php; gutter: true">$content = $post-&gt;post_content;
$content = apply_filters(&#039;the_content&#039;, $content);

echo $content;</pre>
<p>&nbsp;</p>
<p><strong>How to limit the meta box on certain page only</strong>.</p>
<pre class="brush: php; gutter: true">global $post;
$screens = array(&#039;post&#039;, &#039;page&#039;);
    foreach ($screens as $screen) {
        if($screen == &quot;page&quot;) {
            if($post-&gt;ID == &#039;2&#039; || $post-&gt;ID == 7) {
            add_meta_box(&#039;rhm_service_sectionid&#039;, __(&#039;Quote Box&#039;, &#039;rhm_service_textdomain&#039;), &#039;rhm_service_inner_custom_box&#039;, $screen);
            }
        } else {
            add_meta_box(&#039;rhm_service_sectionid&#039;, __(&#039;Quote Box&#039;, &#039;rhm_service_textdomain&#039;), &#039;rhm_service_inner_custom_box&#039;, $screen);
        }
}</pre>
<p>How to add Category or tags within custom post type in WordPress</p>
<pre class="brush: php; gutter: true">add_action(&#039;init&#039;, &#039;custome_post_type_add_default_boxes&#039;);

function custome_post_type_add_default_boxes() {
    register_taxonomy_for_object_type(&#039;category&#039;, &#039;your_custom_post_type&#039;);
    register_taxonomy_for_object_type(&#039;post_tag&#039;, &#039;your_custom_post_type&#039;);
}</pre>
<p>The post <a href="http://www.kdecom.com/wordpress-plugin-tips/">WordPress Plugin Tips</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kdecom.com/wordpress-plugin-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to close app with back button in android</title>
		<link>http://www.kdecom.com/how-to-close-app-with-back-button-in-android/</link>
		<comments>http://www.kdecom.com/how-to-close-app-with-back-button-in-android/#comments</comments>
		<pubDate>Thu, 02 May 2013 02:04:18 +0000</pubDate>
		<dc:creator>kdecom</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[back-button]]></category>
		<category><![CDATA[close activity]]></category>
		<category><![CDATA[close-app]]></category>

		<guid isPermaLink="false">http://www.kdecom.com/?p=192</guid>
		<description><![CDATA[<p>Here is a code snippet for how to close your application when someone click on back button of their phone. First thing that you need to do is listen for [...]</p><p>The post <a href="http://www.kdecom.com/how-to-close-app-with-back-button-in-android/">How to close app with back button in android</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Here is a code snippet for how to close your application when someone click on back button of their phone.</p>
<p>First thing that you need to do is listen for the key event when someone click on the back button.</p>
<pre class="brush: java; gutter: true">public boolean onKeyDown(int keyCode, KeyEvent event)  {

    if (keyCode == KeyEvent.KEYCODE_BACK &amp;&amp; event.getRepeatCount() == 0) {

    AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);
    	alertDialog .setMessage(&quot;Are you sure you want to exit?&quot;).
    	setPositiveButton(&quot;Yes&quot;,new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog,int id) {
				// if this button is clicked, close
				// current activity
				MainActivity.this.finish();
			}
		  }).
		  setNegativeButton(&quot;No&quot;,new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog,int id) {
				// if this button is clicked, just close
				// the dialog box and do nothing
				dialog.cancel();
			}
		}).show();   

    return super.onKeyDown(keyCode, event);
}</pre>
<p>&nbsp;</p>
<p>So now as soon as you add the above code it start complaining about the some of the class missing so in your import list you need to add this if you dont have:</p>
<pre class="brush: java; gutter: true">import android.view.KeyEvent;
import android.app.AlertDialog;
import android.view.KeyEvent;
import android.content.DialogInterface;
</pre>
<p>I hope above code helps. Anyone of you have a problem contact us or leave a comment and we all try to fix it.</p>
<p>The post <a href="http://www.kdecom.com/how-to-close-app-with-back-button-in-android/">How to close app with back button in android</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kdecom.com/how-to-close-app-with-back-button-in-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Plus History API Demo</title>
		<link>http://www.kdecom.com/google-plus-history-api-demo/</link>
		<comments>http://www.kdecom.com/google-plus-history-api-demo/#comments</comments>
		<pubDate>Thu, 17 Jan 2013 01:32:56 +0000</pubDate>
		<dc:creator>kdecom</dc:creator>
				<category><![CDATA[Google-Plus]]></category>
		<category><![CDATA[google-plus]]></category>
		<category><![CDATA[google-plus-history-api]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.kdtips.co.nz/blog/?p=96</guid>
		<description><![CDATA[<p>Google Plus history api demo As i hope people knows but google just release the new API called google history. Wat is google history? It is a way to post [...]</p><p>The post <a href="http://www.kdecom.com/google-plus-history-api-demo/">Google Plus History API Demo</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></description>
				<content:encoded><![CDATA[<h1><a href="http://www.kdtips.co.nz/blog/wp-content/uploads/2013/01/google-plus-history-api-demo.jpg"><img class="size-full wp-image-124 aligncenter" title="google-plus-history-api-demo" src="http://www.kdtips.co.nz/blog/wp-content/uploads/2013/01/google-plus-history-api-demo.jpg" alt="google plus history api demo" width="260" height="194" /></a></h1>
<h1>Google Plus history api demo</h1>
<p>As i hope people knows but google just release the new API called google history.</p>
<p>Wat is google history?<br />
It is a way to post on a user google plus activity list.</p>
<p>&nbsp;</p>
<p>http://www.kdtips.co.nz/g-plus/php/examples/userinfo/</p>
<p>its under working condition.</p>
<p>Coming soon more information&#8230;</p>
<p>The post <a href="http://www.kdecom.com/google-plus-history-api-demo/">Google Plus History API Demo</a> appeared first on <a href="http://www.kdecom.com">Kdecom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kdecom.com/google-plus-history-api-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
