title: TYPO3 Extbase switchableControllerActions
body: <p>I have the own extension that has controller with two actions: listAction and showAction.<br>
  Question: Can I display two actions at the same page.  </p>
  
  <p>At specific page I've created an insert plugin record with my own plugin where in flexform of backend configuration of the plugin I've choosen "list action" via switchableControllerActions field. The list action contains list of products with link to the show action of product.</p>
  
  <p>So what do I want?</p>
  
  <p>F.e.
  I have page Products. The URL is <strong><em>example.com/products</em></strong> (here is my list action)<br>
  And for show action I want the URL like <strong><em>example.com/products/name-of-product</em></strong></p>
  
  <p>I've found a extension with this functionality. It's <a href="http://typo3.org/extensions/repository/view/gb_events" rel="nofollow">gb_events</a>. And I noticed that in switchableControllerActions field of flexform of plugin there is something like this:  </p>
  
  <pre><code>&lt;switchableControllerActions&gt;
          &lt;TCEforms&gt;
            &lt;label&gt;LLL:EXT:gb_events/Resources/Private/Language/locallang_db.xlf:flexform.default.switchableControllerActions&lt;/label&gt;
            &lt;config&gt;
              &lt;type&gt;select&lt;/type&gt;
              &lt;items type="array"&gt;
                &lt;numIndex index="0" type="array"&gt;
                  &lt;numIndex index="0"&gt;LLL:EXT:gb_events/Resources/Private/Language/locallang_db.xlf:flexform.default.switchableControllerActions.upcoming&lt;/numIndex&gt;
                  &lt;numIndex index="1"&gt;Event-&gt;upcoming;Event-&gt;list;Event-&gt;calendar;Event-&gt;show;Event-&gt;export&lt;/numIndex&gt;
                &lt;/numIndex&gt;
                &lt;numIndex index="1" type="array"&gt;
                  &lt;numIndex index="0"&gt;LLL:EXT:gb_events/Resources/Private/Language/locallang_db.xlf:flexform.default.switchableControllerActions.list&lt;/numIndex&gt;
                  &lt;numIndex index="1"&gt;Event-&gt;list;Event-&gt;upcoming;Event-&gt;calendar;Event-&gt;show;Event-&gt;export&lt;/numIndex&gt;
                &lt;/numIndex&gt;
                &lt;numIndex index="2" type="array"&gt;
                  &lt;numIndex index="0"&gt;LLL:EXT:gb_events/Resources/Private/Language/locallang_db.xlf:flexform.default.switchableControllerActions.calendar&lt;/numIndex&gt;
                  &lt;numIndex index="1"&gt;Event-&gt;calendar;Event-&gt;upcoming;Event-&gt;list;Event-&gt;show;Event-&gt;export&lt;/numIndex&gt;
                &lt;/numIndex&gt;
                &lt;numIndex index="3" type="array"&gt;
                  &lt;numIndex index="0"&gt;LLL:EXT:gb_events/Resources/Private/Language/locallang_db.xlf:flexform.default.switchableControllerActions.details&lt;/numIndex&gt;
                  &lt;numIndex index="1"&gt;Event-&gt;show;Event-&gt;list;Event-&gt;upcoming;Event-&gt;calendar;Event-&gt;export&lt;/numIndex&gt;
                &lt;/numIndex&gt;
              &lt;/items&gt;
              &lt;maxitems&gt;1&lt;/maxitems&gt;
              &lt;size&gt;1&lt;/size&gt;
            &lt;/config&gt;
            &lt;onChange&gt;reload&lt;/onChange&gt;
          &lt;/TCEforms&gt;
        &lt;/switchableControllerActions&gt;
  </code></pre>
  
  <p>I've updated my flexform configuration. But it still doesn't work. I've the same list view after when I click on link with show action.  </p>
  
  <p>Thanks in advance. I will appreciate any help.</p>