[TYPO3-mvc] TYPO3 4.7 and error #1313855173 thrown by extbase - I still have this problem.

Henjo Hoeksma me at henjohoeksma.nl
Fri May 18 13:10:43 CEST 2012


Hi Stephen,

extbase needs a controller, so yes, it will include the controller from
where your view is called. You can overrule it, but you cannot not have a
controller in your links.

Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Wed, May 16, 2012 at 9:13 AM, Stephen Bungert <stephenbungert at yahoo.de>wrote:

> Anyone have an ideas about how to fix my problem with controller always
> being added?
>
> "Stephen Bungert" <stephenbungert at yahoo.de> schrieb im Newsbeitrag
> news:mailman.1.1336904122.24020.typo3-project-typo3v4mvc at lists.typo3.org.
> ..
> > Hi Henjo,
> >
> > thanks for the tip, but the controller is always added, even if I remove
> > it from the fluid link.action tag - I think extbase adds the current
> > controller if yo udon't include one. I tried using the link generated and
> > removing by hand the controller attribute, and then everything works like
> > I want it to. How can I tell extBase not to add the current controller to
> > links if I don't specify one?
> >
> >
> > "Henjo Hoeksma" <me at henjohoeksma.nl> schrieb im Newsbeitrag
> > news:mailman.523.1336053689.556.typo3-project-typo3v4mvc at lists.typo3.org.
> ..
> >> >
> >>> But the category plugin seems to be reacting to the Controller being
> >>> "Item" and not "Category"
> >>
> >> That is exactly what you define in your <f:link.action>
> >> Strip the controller="Item" part from your link and you'll be fine ;-)
> >>
> >> Kind regards,
> >>
> >> Henjo
> >>
> >> Problems are small because we learned how to deal with them.
> >> Problems are big because we need to learn how to deal with them.
> >>
> >>
> >> On Wed, May 2, 2012 at 7:36 PM, Stephen Bungert
> >> <stephenbungert at yahoo.de>wrote:
> >>
> >>> I'm creating an extbase extension at the moment, and thought I was
> >>> having
> >>> problems with the following bug:
> >>>
> >>> http://forge.typo3.org/issues/**31322<
> http://forge.typo3.org/issues/31322>
> >>>
> >>> But I have installed TYPO3 4.7 and still have the same problem, so I
> was
> >>> wondering if I am doing something wrong.
> >>>
> >>> I have 2 instances of my plugin on the page. There is a flexform with a
> >>> switchable controller action. One shows a list of categories, the other
> >>> a
> >>> list of records. I want to use the list of categories to filter the
> list
> >>> of
> >>> records.
> >>>
> >>> Here is a part of my flexform:
> >>>
> >>> ---
> >>>    <switchableControllerActions>
> >>>     <TCEforms>
> >>>      <label>LLL:EXT:sb_portfolio2/**Resources/Private/Language/**
> >>>
> locallang_flexform_sbp2fe1.**xml:flexform_field.general.**action</label>
> >>>      <config>
> >>>       <type>select</type>
> >>>       <items>
> >>>        <numIndex index="1">
> >>>         <numIndex
> index="0">LLL:EXT:sb_**portfolio2/Resources/Private/**
> >>> Language/locallang_flexform_**sbp2fe1.xml:flexform_field.**
> >>> general.action.1</numIndex>
> >>>         <numIndex index="1">Item->list;Item->**single</numIndex>
> >>>        </numIndex>
> >>>        <numIndex index="3">
> >>>         <numIndex
> index="0">LLL:EXT:sb_**portfolio2/Resources/Private/**
> >>> Language/locallang_flexform_**sbp2fe1.xml:flexform_field.**
> >>> general.action.3</numIndex>
> >>>         <numIndex index="1">Client->list;Client-**>single</numIndex>
> >>>        </numIndex>
> >>>        <numIndex index="5">
> >>>         <numIndex
> index="0">LLL:EXT:sb_**portfolio2/Resources/Private/**
> >>> Language/locallang_flexform_**sbp2fe1.xml:flexform_field.**
> >>> general.action.5</numIndex>
> >>>         <numIndex
> index="1">Category->list;**Category->single</numIndex>
> >>>        </numIndex>
> >>>        <numIndex index="8">
> >>>         <numIndex
> index="0">LLL:EXT:sb_**portfolio2/Resources/Private/**
> >>> Language/locallang_flexform_**sbp2fe1.xml:flexform_field.**
> >>> general.action.8</numIndex>
> >>>         <numIndex index="1">Tag->list</numIndex>
> >>>        </numIndex>
> >>>        <numIndex index="7">
> >>>         <numIndex
> index="0">LLL:EXT:sb_**portfolio2/Resources/Private/**
> >>> Language/locallang_flexform_**sbp2fe1.xml:flexform_field.**
> >>> general.action.7</numIndex>
> >>>         <numIndex index="1">Testimonial->list</**numIndex>
> >>>        </numIndex>
> >>>       </items>
> >>>       <size>1</size>
> >>>      </config>
> >>>      <onChange>reload</onChange>
> >>>     </TCEforms>
> >>>    </switchableControllerActions>
> >>> ---
> >>>
> >>> In my fluid template for the categories I make the following link
> around
> >>> the category titles:
> >>>
> >>> ---
> >>>        <f:link.action pageUid="{settings.pids.**itemList}"
> >>> controller="Item" action="List" arguments="{category : category.uid}"
> >>> title="{f:translate(key: 'sbp2_titletext_filter_item_**category')}
> >>> {sbp2:title(record: category)}">
> >>>         {sbp2:title(record: category)}
> >>>        </f:link.action>
> >>> ---
> >>>
> >>> I thought this link would just tell the list of records what to filter
> >>> by.
> >>> But the category plugin seems to be reacting to the Controller being
> >>> "Item"
> >>> and not "Category", and then shows the following error message:
> >>>
> >>> "#1313855173: The controller "Item" is not allowed by this plugin.
> >>> Please
> >>> check for Tx_Extbase_Utility_Extension::**configurePlugin() in your
> >>> ext_localconf.php. "
> >>>
> >>> I think I have configured it correctly:
> >>>
> >>> ---
> >>> Tx_Extbase_Utility_Extension::**configurePlugin(
> >>> $_EXTKEY,
> >>> 'Sbp2fe1',
> >>> array(
> >>>  'Item' => 'list, single',
> >>>  'Client' => 'list, single',
> >>>  'Category' => 'list single',
> >>>  'Testimonial' => 'list',
> >>>  'Tag' => 'list',
> >>> ),
> >>> // non-cacheable actions
> >>> array(
> >>>  'Item' => '',
> >>>  'Client' => '',
> >>>  'Category' => '',
> >>>  'Testimonial' => '',
> >>>  'Tag' => '',
> >>> )
> >>> );
> >>> ---
> >>>
> >>> Is the switchableControllerActions field supposed to be used the way I
> >>> do?
> >>> I thought it was sought of like a way to tell the extension what to
> >>> display?
> >>>
> >>> Thanks for any help
> >>> ______________________________**_________________
> >>> TYPO3-project-typo3v4mvc mailing list
> >>> TYPO3-project-typo3v4mvc@**lists.typo3.org<
> TYPO3-project-typo3v4mvc at lists.typo3.org>
> >>> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> >>> project-typo3v4mvc<
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
> >>>
> >
>
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


More information about the TYPO3-project-typo3v4mvc mailing list