IRC logs

20131223

Logs from channel #fedext on freenode - our official support channel.

IRC log range: 20131223*

20131223

  • 00:20:56 <soee_> someone ? :)
  • 00:44:47 <soee> do you have viewhelpers ported to namespaces already ?
  • 00:56:26 <cedricziel> soee: vhs is not namespaced
  • 00:57:00 <soee> cedricziel: yes i was checking that because i have problem with own VH
  • 00:57:11 <soee> if i use namespace T3 can load the class
  • 00:57:15 <soee> *cant
  • 00:57:29 <cedricziel> does it extend a vhs one?
  • 00:57:37 <soee> no no
  • 00:57:39 <soee> class Tx_SoeeShop_ViewHelpers_Basket_ItemKeyViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
  • 00:57:43 <soee> this way it works
  • 00:57:49 <soee> but not with namespaces
  • 00:58:07 <cedricziel> do you have other code in your ext except viewhelpers?
  • 00:58:33 <soee> cedricziel: yes, controllers, utility, service etc
  • 00:58:47 <cedricziel> do they use namespaces?
  • 00:58:54 <soee> yes they do
  • 00:59:02 <cedricziel> all of them?
  • 00:59:22 <soee> sure
  • 01:00:16 <soee> but using VH in fluid it looks like it tries to load Tx_SoeeShop_ViewHelpers_Basket_ItemKeyViewHelper
  • 01:00:18 <cedricziel> okay, you know there's this behaviour where the classloader struggles if a extension encapsulates namespaced and non-namespaced classes
  • 01:00:24 <cedricziel> that would be to be investigated first
  • 01:00:25 <soee> and it can t translate it to namespace
  • 01:00:54 <cedricziel> how do you import the namespace to fluid?
  • 01:01:07 <soee> cedricziel: {namespace s=Tx_SoeeShop_ViewHelpers}
  • 01:01:14 <cedricziel> and with namespaces?
  • 01:01:23 <soee> same
  • 01:01:34 <cedricziel> that cant work ^^
  • 01:02:12 <cedricziel> so whats your namespace, read the fully qualified name for the very same viewhelper ?
  • 01:02:14 <soee> why ? shoouldnt Tx_SoeeShop_ViewHelpers_Basket_ItemKeyViewHelper alias be translated to fqcn ?
  • 01:02:23 <cedricziel> nope
  • 01:03:17 <soee> cedricziel: this particular VH uses: namespace Soee\SoeeShop\ViewHelpers\Basket;
  • 01:03:42 <cedricziel> then you have to import {s=Soee\SoeeShop\ViewHelpers}
  • 01:03:52 <soee> oh
  • 01:04:05 <cedricziel> i mean {namespace s=Soee\SoeeShop\ViewHelpers} ofc
  • 01:04:33 <cedricziel> if this causes you some trouble, theres a possibility to use a alias map
  • 01:04:47 <cedricziel> (for backwards compatibility)
  • 01:05:00 <cedricziel> but thats how your example should(tm) work
  • 01:05:35 <soee> cedricziel: it works :) my oh my
  • 01:05:44 <cedricziel> congrats :)
  • 01:05:51 <soee> i do not care about backwards :)
  • 01:05:57 <soee> my extensions are for 6.2 + :)
  • 01:06:03 <cedricziel> boom!
  • 01:06:12 <cedricziel> :)
  • 01:06:30 <soee> thank you :) do you mind answer one more question ?
  • 01:06:53 <cedricziel> you know the answer :9
  • 01:07:05 <cedricziel> just ask :)
  • 01:07:34 <cedricziel> brb
  • 01:07:43 <soee> are there some functions in T3 that converts class names like Tx_Foo_Bar to Tx\Foo\Bar ?
  • 01:07:48 <soee> *convert
  • 01:08:09 <soee> it simple to write own method but if ther exists something already
  • 01:08:14 <soee> i prefer to use it
  • 01:12:53 <cedricziel> hm...
  • 01:12:54 <FT3BOT> Welcome back cedricziel!
  • 01:13:16 <soee> :P
  • 01:13:31 <soee> brb
  • 01:13:32 <soee> back
  • 01:13:33 <FT3BOT> Welcome back soee!
  • 01:13:37 <soee> got ya!
  • 01:13:38 <cedricziel> there was a script made by Thomas Almer who did the inital conversion of core functions
  • 01:13:41 <cedricziel> yeah!
  • 01:13:42 <cedricziel> :D
  • 01:14:54 <cedricziel> but.. it only replaces core functions
  • 01:14:55 <cedricziel> https://gist.github.com/daKmoR/7490199
  • 01:15:20 <cedricziel> i dont think there's something like that for your extension
  • 01:15:33 <cedricziel> however.. the class alias maps..
  • 01:16:32 <soee> yeah there have to be something that do this
  • 01:16:40 <cedricziel> no
  • 01:16:47 <cedricziel> i dont think so
  • 01:17:34 <soee> ah ok so i just put some methods to my utility class
  • 01:26:03 <cedricziel> okay soee i'll quit for today
  • 01:26:15 <cedricziel> cya :)
  • 01:26:27 <soee> cedricziel: thanks again i stay and work :)
  • 01:26:40 <cedricziel> not too long, i hope
  • 01:26:51 <cedricziel> you're welcome-as always!
  • 01:26:52 <soee> nah 3-4 hours :)
  • 01:26:55 <cedricziel> ;)
  • 01:27:00 <soee> ;]
  • 12:23:21 <pedda> hi there
  • 12:23:27 <pedda> anyone around?
  • 12:23:43 <pedda> i have an old project (4.7) which has some latest TER fluidcontent, flux and fluidpages running and i discovered my grid based fce's not showing up in FE if a content element is nested
  • 12:24:26 <pedda> i don't want to update this project that short before christmas.. but i think it'S some compatibility issue..
  • 12:24:36 <pedda> it renders fine without nested content though
  • 12:26:18 <pedda> tested with Bootstrap: Fluid Row & Bootstrap: Accordion FCEs
  • 12:32:06 <pedda> kind of solved