title: How to add custom tab in left sidebar to my custom page in admin section in magento module?
body: <p>I am very new to <code>Magento</code>, just started Magento before 4 days but i am given the task to develop a <code>Magento extension</code>. So i am reading over the internet and creating it.</p>
  
  <p>Now the problem i am having is i want to add a custom left sidebar tabs just like it is under <br><code>System-&gt;Configuration</code>.</p>
  
  <p>I have tried a lot but no success. Please help me. </p>
  
  <p>Here's my config.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
  &lt;!-- turn on our module, required for install support --&gt;
  &lt;modules&gt;
  &lt;Gwb_Magecrmsync&gt;
      &lt;version&gt;0.1.0&lt;/version&gt;
  &lt;/Gwb_Magecrmsync&gt;
  &lt;/modules&gt;
  &lt;frontend&gt;
  &lt;routers&gt;
      &lt;magecrmsync&gt;
          &lt;use&gt;standard&lt;/use&gt;
          &lt;args&gt;
              &lt;module&gt;Gwb_Magecrmsync&lt;/module&gt;
              &lt;frontName&gt;magecrmsync&lt;/frontName&gt;
          &lt;/args&gt;
      &lt;/magecrmsync&gt;
  &lt;/routers&gt;
  &lt;layout&gt;
      &lt;updates&gt;
          &lt;magecrmsync&gt;
              &lt;file&gt;adminhtml.xml&lt;/file&gt;
          &lt;/magecrmsync&gt;
      &lt;/updates&gt;
  &lt;/layout&gt;
  &lt;/frontend&gt;
  &lt;admin&gt;
  &lt;routers&gt;
      &lt;magecrmsync&gt;
          &lt;use&gt;admin&lt;/use&gt;
          &lt;args&gt;
              &lt;module&gt;Gwb_Magecrmsync&lt;/module&gt;
              &lt;frontName&gt;magecrmsync&lt;/frontName&gt;
          &lt;/args&gt;
      &lt;/magecrmsync&gt;
  &lt;/routers&gt;
  &lt;/admin&gt;
  &lt;adminhtml&gt;
  &lt;menu&gt;
      &lt;menu1 translate="title" module="magecrmsync"&gt;
          &lt;title&gt;Synchronize&lt;/title&gt;
          &lt;sort_order&gt;999&lt;/sort_order&gt;
          &lt;children&gt;
              &lt;menuitem1 module="magecrmsync"&gt;
                  &lt;title&gt;Customers&lt;/title&gt;
                  &lt;action&gt;magecrmsync/adminhtml_magecrmsync&lt;/action&gt;
              &lt;/menuitem1&gt;
              &lt;menuitem2 module="magecrmsync"&gt;
                  &lt;title&gt;Orders&lt;/title&gt;
                  &lt;action&gt;magecrmsync/adminhtml_magecrmsync&lt;/action&gt;
              &lt;/menuitem2&gt;
              &lt;menuitem3 module="magecrmsync"&gt;
                  &lt;title&gt;Products&lt;/title&gt;
                  &lt;action&gt;magecrmsync/adminhtml_magecrmsync&lt;/action&gt;
              &lt;/menuitem3&gt;
          &lt;/children&gt;
      &lt;/menu1&gt;
  &lt;/menu&gt;
  &lt;acl&gt;
      &lt;resources&gt;
          &lt;admin&gt;
              &lt;children&gt;
                  &lt;menu1 translate="title" module="magecrmsync"&gt;
                      &lt;title&gt;Synchronize&lt;/title&gt;
                      &lt;sort_order&gt;999&lt;/sort_order&gt;
                      &lt;children&gt;
                          &lt;menuitem1&gt;
                              &lt;title&gt;Customers&lt;/title&gt;
                          &lt;/menuitem1&gt;
                          &lt;menuitem2&gt;
                              &lt;title&gt;Orders&lt;/title&gt;
                          &lt;/menuitem2&gt;
                          &lt;menuitem3&gt;
                              &lt;title&gt;Products&lt;/title&gt;
                          &lt;/menuitem3&gt;
                      &lt;/children&gt;
                  &lt;/menu1&gt;
              &lt;/children&gt;
          &lt;/admin&gt;
      &lt;/resources&gt;
  &lt;/acl&gt;
  &lt;/adminhtml&gt;
  &lt;global&gt;
  &lt;!-- turn on models --&gt;
  &lt;models&gt;
      &lt;magecrmsync&gt;
          &lt;class&gt;Gwb_Magecrmsync_Model&lt;/class&gt;
          &lt;resourceModel&gt;Magecrmsync_mysql4&lt;/resourceModel&gt;
      &lt;/magecrmsync&gt;
  &lt;/models&gt;
  &lt;!-- turn on models --&gt;
  
  &lt;!-- turn on database connections --&gt;
  &lt;resources&gt;
  &lt;!-- setup is needed for automatic installation --&gt;
      &lt;magecrmsync_setup&gt;
          &lt;use&gt;default_setup&lt;/use&gt;
      &lt;/magecrmsync_setup&gt;
      &lt;magecrmsync_write&gt;
          &lt;use&gt;default_write&lt;/use&gt;
      &lt;/magecrmsync_write&gt;
      &lt;magecrmsync_read&gt;
          &lt;use&gt;default_read&lt;/use&gt;
      &lt;/magecrmsync_read&gt;
  &lt;/resources&gt;
  
  &lt;blocks&gt;
      &lt;magecrmsync&gt;
          &lt;class&gt;Gwb_Magecrmsync_Block&lt;/class&gt;
      &lt;/magecrmsync&gt;
  &lt;/blocks&gt;
  
  &lt;helpers&gt;
      &lt;magecrmsync&gt;
          &lt;class&gt;Gwb_Magecrmsync_Helper&lt;/class&gt;
      &lt;/magecrmsync&gt;
  &lt;/helpers&gt;
  
  &lt;layout&gt;
      &lt;magecrmsync&gt;
          &lt;file&gt;adminhtml.xml&lt;/file&gt;
      &lt;/magecrmsync&gt;
  &lt;/layout&gt;
  
  &lt;/global&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>Please tell me where i am missing something which is not letting me add tabs to the left on my custom page. Please correct me if i am wrong anywhere.</p>
  
  <p><br>
  <b>Edit</b>
  <br>
  This is my system.xml file. This is letting me add custom tab under System->Configuration but i want it on my custom page which is separate then Configuration Menu.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
  &lt;tabs&gt;
      &lt;sidetab translate="label" module="magecrmsync"&gt;
          &lt;label&gt;My Custom Tab&lt;/label&gt;
          &lt;sort_order&gt;200&lt;/sort_order&gt;
      &lt;/sidetab&gt;
  &lt;/tabs&gt;
  &lt;sections&gt;
      &lt;sidetab translate="label" module="magecrmsync"&gt;
          &lt;class&gt;separator-top&lt;/class&gt;
          &lt;label&gt;My Tab&lt;/label&gt;
          &lt;tab&gt;sidetab&lt;/tab&gt;
          &lt;sort_order&gt;100&lt;/sort_order&gt;
          &lt;show_in_default&gt;1&lt;/show_in_default&gt;
          &lt;show_in_website&gt;1&lt;/show_in_website&gt;
          &lt;show_in_store&gt;1&lt;/show_in_store&gt;
          &lt;groups&gt;
              &lt;sidetab_option translate="label"&gt;
                  &lt;label&gt;sysem Tab Options&lt;/label&gt;
                  &lt;frontend_type&gt;text&lt;/frontend_type&gt;
                  &lt;sort_order&gt;10&lt;/sort_order&gt;
                  &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                  &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                  &lt;show_in_store&gt;1&lt;/show_in_store&gt;
                  &lt;fields&gt;
  &lt;registration_mode translate="label"&gt; &lt;label&gt;On New User Signup&lt;/label&gt;
                          &lt;frontend_type&gt;select&lt;/frontend_type&gt;
                              &lt;source_model&gt;adminhtml/system_config_source_yesno&lt;/source_model&gt;
                          &lt;sort_order&gt;1&lt;/sort_order&gt;
                          &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                          &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                          &lt;show_in_store&gt;1&lt;/show_in_store&gt;
                      &lt;/registration_mode&gt;
  &lt;forget_mode translate="label"&gt;
                          &lt;label&gt;Send Email on Forget Password&lt;/label&gt;
                          &lt;frontend_type&gt;select&lt;/frontend_type&gt;
                              &lt;source_model&gt;adminhtml/system_config_source_yesno&lt;/source_model&gt;
                          &lt;sort_order&gt;1&lt;/sort_order&gt;
                          &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                          &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                          &lt;show_in_store&gt;1&lt;/show_in_store&gt;
                      &lt;/forget_mode&gt;
  &lt;purchase_mode translate="label"&gt;
                          &lt;label&gt;Send Email On Product Purchase&lt;/label&gt;
                          &lt;frontend_type&gt;select&lt;/frontend_type&gt;
                              &lt;source_model&gt;adminhtml/system_config_source_yesno&lt;/source_model&gt;
                          &lt;sort_order&gt;1&lt;/sort_order&gt;
                          &lt;show_in_default&gt;1&lt;/show_in_default&gt;
                          &lt;show_in_website&gt;1&lt;/show_in_website&gt;
                          &lt;show_in_store&gt;1&lt;/show_in_store&gt;
                      &lt;/purchase_mode&gt;
                  &lt;/fields&gt;
  &lt;/sidetab_option&gt;
          &lt;/groups&gt;
      &lt;/sidetab&gt;
  &lt;/sections&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p><br></p>
  
  <p><b>My Controller Code :</b> <br></p>
  
  <pre><code>&lt;?php
  class Gwb_Magecrmsync_Adminhtml_MagecrmsyncController extends     Mage_Adminhtml_Controller_Action
  {
  public function indexAction()
  {
      $this-&gt;loadLayout()
           -&gt;_setActiveMenu('menu1')
           -&gt;_addBreadcrumb(Mage::helper('adminhtml')-&gt;__('Synchronize Data'), Mage::helper('adminhtml')-&gt;__('Synchronize Data'))
           -&gt;_title($this-&gt;__('Synchronize Data'));
  
      $block = $this-&gt;getLayout()-&gt;createBlock(
          'Mage_Core_Block_Template',
          'my_block_name_here',
          array('template' =&gt; 'magecrmsync/mainblock.phtml')
      );
      $this-&gt;getLayout()-&gt;getBlock('content')-&gt;append($block);
  
      $this-&gt;renderLayout();
  }
  
  }
  </code></pre>
  
  <p>I want to add tabs on my page just like this : </p>
  
  <p><img src="https://i.stack.imgur.com/Ek8Pq.png" alt="Tabs like this image has on the left side on my page not on system-&gt;configuration page."></p>
  
  <p>Any help would be very much appreciated and will be helpful to me.</p>
  
  <p>Thanks
  Ravinder</p>