IRC logs

20141211

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

IRC log range: 20141211*

20141211

  • 09:29:16 <jmverges> good morning room
  • 09:33:56 <cbleicker> good moring
  • 09:34:28 <cbleicker> anybody knows the convention to introduce a domain validator wich matches auto for a model?
  • 09:34:51 <cbleicker> having one in Domain/Validator/FooValidator.php
  • 09:34:56 <cbleicker> but it never matches
  • 09:43:19 <jmverges> no idea
  • 09:43:37 <Akii> http://i.imgur.com/fA186Xf.jpg
  • 10:21:24 <ndee_> does anyone know how to convert an object (result from a repo) from an action controller to JSON?
  • 10:22:40 <ndee_> vhs to the rescue, thanks!
  • 10:28:18 <Akii> ndee_: JsonView
  • 10:37:20 <ndee_> Akii: I only needed a single object to be converted as JSON, used the vhs json.encode viewhelper.
  • 10:38:17 <Akii> nice way of tackling recursion
  • 11:19:47 <steffen-j> I have a question. When using the image-element from fluid content core, is there a way to define dimensions of the image and element margins like with the css_styled_content?
  • 11:29:57 <j6s1> Quick input: at https://fluidtypo3.org/documentation/templating-manual/templating/using-variables/typoscript-variables.html under Solution -> 5 there is an unexpected codeblock started by the ` in won`t
  • 12:38:23 <jmverges> hey folks, is there any way to manage Layouts? I mean I have a extension with 500 layouts, but I only want to be able to select between 10 in the current website
  • 12:38:44 <jmverges> could you be interested in this feature? or is something that could be done and I don't know how?
  • 12:39:39 <jmverges> I think that a few lines in PageLayoutSelector.php could do this
  • 12:39:51 <jmverges> NamelessCoder, bjo3rn, danilobuerger ?
  • 12:40:01 <danilobuerger> ?
  • 12:40:04 <jmverges> yes
  • 12:40:23 <danilobuerger> layout as in page templates?
  • 12:40:55 <jmverges> what?
  • 12:41:14 <danilobuerger> what layouts are you refering to?
  • 12:41:25 <jmverges> PageLayoutSelector is the one in charge of show the available Layouts fluidpages extension
  • 12:42:33 <danilobuerger> so you do mean Page Templates
  • 12:43:12 <braguzz> I have this in my template pippo{v:content.render(column: 0, pageUid: 155)}
  • 12:43:40 <danilobuerger> there was the idea of fluidshare, but dont know how far along that is
  • 12:43:50 <jmverges> Page Layout - this page
  • 12:44:34 <jmverges> so, danilobuerger I think that could be easy to implement some mechanism
  • 12:44:34 <braguzz> it shows pippo but not the content
  • 12:45:04 <danilobuerger> yes jmverges what is called a "Page Layout" for the editor is in actual fact a Page Template
  • 12:45:12 <jmverges> could be just plugin.tx_myplugin.layout.disabled=1
  • 12:45:34 <jmverges> ok, so a Page Template then
  • 12:45:46 <danilobuerger> well sure, go ahead and create a pull request
  • 12:46:04 <jmverges> danilobuerger, I'm asking for advice
  • 12:46:24 <danilobuerger> and that is?
  • 12:46:32 <jmverges> plugin.tx_myplugin.templates.MyAmazing.disabled = 1?
  • 12:46:48 <jmverges> that could be nice? or better other approach instead of typoscript?
  • 12:47:32 <danilobuerger> i guess typoscript will be fine
  • 12:49:23 <jmverges> thank you danilobuerger
  • 12:53:04 <braguzz> argh it shown in every page but not in the page that I want it
  • 12:53:22 <braguzz> is the right place where to ask?
  • 13:02:25 <braguzz> http://www.provincia.livorno.it/musmed/
  • 13:20:43 <jmverges> danilobuerger, there is a parameter called enabled for flux:form
  • 13:21:04 <jmverges> do you know it that value could be setted with typoscript?
  • 13:40:52 <Cash2m> Hi. Could somebody tell me why this does not work as expected? https://gist.github.com/Cash2m/7cf6bcff48398a918c6c
  • 13:41:34 <Cash2m> I expect the two loops to create a 3x3 grid. But some of them have the same name
  • 13:42:43 <Cash2m> http://imgur.com/dj5dX57
  • 14:30:46 <rosieres> Anyone with extbase foo? -> anyone an Idea how to override a class in ext:form without opening a can? The /Classes/View/Form/Additional/ErrorAdditionalElementView.php holds the layout for a field. Which is not the smartest idea. I want to change that wrap and some others, without breaking anything on next update and without own extension.
  • 14:32:37 <Nurbs> Hi! I am following the video "Fluid Powered TYPO3 From Scratch". builder created a page template with "<flux:form id="fluidpage" options="{icon: 'Icons/Page/Standard.gif'}">" and placed an icon in Resources/Public/Icons/Page, but its not showing in the backend because a link to http://mysite/typo3/Icons/Page/Standard.gif is being generated. Do I need another syntax?
  • 14:34:36 <rosieres> Nurbs: try options="{icon: '{f:uri.resource(path: \'your/path/to/file.png\')}'}
  • 14:36:47 <Cash2m> rosieres, did you tried the extbase way of overriding classes?
  • 14:37:08 <Cash2m> http://wiki.typo3.org/Dependency_Injection last paragraph. This sould work for classes too
  • 14:37:40 <Nurbs> rosieres: That works, thank you. Just a bit ugly :-)
  • 14:39:13 <rosieres> Cash2m didn't for ext:form as I did not see any ts mapping at all in it. Thought someone has done it before.
  • 14:39:42 <Akii> how is that class instantiated?
  • 14:44:51 <rosieres> Akii? -> https://git.typo3.org/Packages/TYPO3.CMS.git/blob/177cd38666bb4e7a026c60cdeda252596bf2c587:/typo3/sysext/form/Classes/View/Form/Additional/AdditionalElementView.php
  • 14:47:06 <Akii> well from what I can tell this does not go through extbase hence overwriting injections will not work
  • 14:47:17 <Akii> you can however overwrite what GeneralUtility::makeInstance returns
  • 14:47:41 <rosieres> Isn't that quite nonsense for a field wrapping?
  • 14:47:56 <Akii> you want to overwrite a class without opening a can
  • 14:48:15 <Akii> that'd be how you do it ^^
  • 14:49:16 <rosieres> mhh, damn . . .
  • 14:49:40 <Akii> I like it because you can exchange things in extbase that way
  • 14:49:43 <Akii> :D
  • 14:50:35 <rosieres> but this what I want is something that belongs to fluid IMHO
  • 14:51:30 <rosieres> I don't get the point why the templating engine is not used . .
  • 14:51:49 <Akii> probably performance
  • 14:51:54 <Akii> (jk, no idea)
  • 17:52:46 <pedda> hi there
  • 20:41:56 <JustAPoring_> Huh...
  • 20:42:37 <JustAPoring_> Is there a way to pass a viewhelper used in inline notation (like {v:foo(a:b)} ) something that it will treat like child elements?