[TYPO3-english] ViewHelper from another extension / extending ViewHelper (Typo3 6.2.4)

Dipankar Das dipankar at fiveetechnologies.com
Thu Aug 7 11:11:50 CEST 2014


On 08/07/2014 12:36 PM, Dipankar Das wrote:
> On 08/07/2014 12:04 PM, Anupam Chatterjee wrote:
>> Hi Dipankar,
>>
>> Did you try using namespaced classname to your viewhelpers?
>> ----------------------------
>> {namespace sbp2=Tx_SbPortfolio2_ViewHelpers}}
>> {namespace fivee=Tx_FiveePortfoliofilter_ViewHelpers}
>> ----------------------------
>>

Did you mean some thing like ?

{namespace fivee=FiveETechnologies/FiveePortfoliofilter/ViewHelpers}



>
> Can you please tell more about this.
> I do not get what you want to say.
>
> - Dipankar
>
> >> Regards,
>> Anupam
>>
>> On 8/7/2014 11:23 AM, Dipankar Das wrote:
>>> Hi,
>>>
>>> I am new to ViewHelp thing and I am stuck for few days now with this.
>>> Please help.
>>>
>>> I want to add a new viewhelper to an existing extension (SbPortfolio2).
>>> So I created a new extension and added a new viewhelper to the new
>>> extension.
>>>
>>> Then called this new viewhelper in the template of the existing
>>> extension (SbPortfolio2). I have added the namespace to my new extension
>>> as well.
>>>
>>> Modified SbPortfolio2 extension template file:
>>> ---------------
>>>
>>> {namespace sbp2=Tx_SbPortfolio2_ViewHelpers}}
>>> {namespace fivee=Tx_FiveePortfoliofilter_ViewHelpers}
>>> ..
>>> ...
>>> <p class="{fivee:category(categories: item.categories)}">test</p>
>>>
>>>
>>>
>>>
>>>
>>> I get Error
>>> -------------
>>> Could not analyse
>>> class:Tx_FiveePortfoliofilter_ViewHelpers_CategoryViewHelper maybe not
>>> loaded or no autoloader?
>>>
>>> I am using Typo3 6.2.4
>>>
>>> Can anyone point me where to look for the problem.
>>> Is there a way to debug/trace the problem.
>>>
>>> thanks
>>> Dipankar Das
>>> --
>>> FiveE Technologies
>>> http://fiveetech.com
>>>
>>>
>>>
>>
>


-- 
regards
Dipankar Das
--
FiveE Technologies.
http://fiveetech.com



More information about the TYPO3-english mailing list