IRC logs

20141107

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

IRC log range: 20141107*

20141107

  • 00:22:50 <danilobuerger> jmverges we had a override of that in fluidpages
  • 00:30:01 <jmverges> danilobuerger, and what the overwrite did?
  • 00:30:27 <danilobuerger> jmverges a lot, if you are interested you should look at old versions of fluidpages
  • 08:13:37 <batjony> i want to use an image field in a custom CE, and i am wondering what should I use - flux:field.file or flux:field.inline.fal ?
  • 08:13:49 <batjony> what is the big difference between both helpers
  • 08:14:01 <batjony> as I see the second one could be used for unlimited files
  • 08:14:11 <batjony> but if I need only 1 file/image - what is the difference when using both helpers
  • 08:22:50 <cedricziel> batjony: that would be FAL
  • 08:23:09 <cedricziel> (the difference)
  • 08:24:47 <cedricziel> typo3's internal file abstraction mechanism. if possible, you will want to use it except if you just sketch something quick and dirty
  • 08:50:08 <jmverges> good morning mates
  • 08:51:46 <denis_droid> good morning :-)
  • 09:25:55 <batjony> cedricziel: you mean that flux:field.inline.fal uses FAL and flux:field.file does not use FAL ?
  • 09:43:33 <denis_droid> bjo3rn: Just for your info. We got it working yesterday evening. :-)
  • 09:43:58 <bjo3rn> the select field situation?
  • 09:44:24 <denis_droid> I updated to the next patch level of flux and boom it was working with the short form {settings.foo}
  • 09:44:59 <bjo3rn> cool, thanks for the info.
  • 09:46:18 <denis_droid> I’m getting closer of being able to update the documentation with some additional notes for T3 beginners like me ;)
  • 09:53:39 <bjo3rn> yay, go right ahead!
  • 09:54:24 <denis_droid> Since it is markdown I’m feeling right at home!
  • 10:36:55 <denis_droid> typo3.org should merge this stuff into their documentation - http://www.typo3manual.se/
  • 10:57:37 <Xatenev> Heya
  • 10:57:38 <Xatenev> A questerinho
  • 10:57:43 <Xatenev> I got an array with a lot of entires
  • 10:58:00 <Xatenev> array looks like: 'id' > value 1 value 2 value 3 | 'id2' > value 1 value 2 value 3
  • 10:58:11 <Xatenev> now i wanna have all values of id2
  • 10:58:22 <Xatenev> for example in PHP: $arr['id2']
  • 10:58:25 <Xatenev> How can I do that in fluid?
  • 11:08:13 <bjo3rn> Xatenev https://fluidtypo3.org/viewhelpers/vhs/master/Variable/GetViewHelper.html
  • 11:08:27 <Xatenev> yea have to use vhs, i see
  • 11:08:27 <Xatenev> ^^
  • 11:08:35 <Xatenev> this should definetly be part of the normal fluid namespace
  • 11:08:46 <bjo3rn> the swiss army knife of TYPO3 ^^
  • 11:17:17 <NamelessCoder> denis_droid we *really* don
  • 11:17:23 <NamelessCoder> 't wish to maintain official TYPO3 doc
  • 11:17:53 <NamelessCoder> we'll be happy to link, but merging it just shifts the maintenance responsibility over to us
  • 11:17:54 <denis_droid> NamelessCoder: True :-)
  • 11:18:56 <NamelessCoder> btw the pixelant guys who made that web site, also use fluidtypo3 ;)
  • 11:20:11 <denis_droid> NamelessCoder: To be honest you can’t honestly do advanced templating stuff with the basic templating mechanism TYPO3 provides.
  • 11:21:09 <NamelessCoder> that depends on the definition; if you place the boundary of "templating" so that typoscript is not included, you're correct.
  • 11:22:21 <NamelessCoder> typoscript is almost infinitely flexible - and infinitely complicated and error prone.
  • 11:22:24 <denis_droid> Well maintaining a mess of typoscript templating is just insane. (TS used for HTML templating in this context)
  • 11:24:14 <denis_droid> And coming from other backgrounds like all the pretty static templating stuff (like handlebars etc. this feels even more old fashioned)
  • 11:24:19 <NamelessCoder> for peace of mind: regard TS as *purely* declarative. No conditions, no COAs, INTs and other stuff besides the absolute minimum to run controllers
  • 11:24:33 <denis_droid> That’s true.
  • 11:24:57 <denis_droid> I’m just saying HTML templates should not be build in TS :P
  • 11:25:39 <NamelessCoder> you actually said "cannot" but, semantics schmemantics
  • 11:26:51 <denis_droid> Does anyone know how easy it is to easily create content elements in Typo3 Neos?
  • 11:27:17 <NamelessCoder> easier than using TS, not as easy as using FT3.
  • 11:27:38 <denis_droid> (to be honest I dislike the backend of Typo3 CMS, all the page reloads make me mad)
  • 11:28:02 <NamelessCoder> easier than using TemplaVoila, too. That one is subjective of course but programmers would probably agree, integrators maybe not.
  • 11:28:23 <denis_droid> Well TemplaVoila is not really a solution for me. :P
  • 11:28:31 <NamelessCoder> hehe now you're just assuming that an insanely complicated JS-based engine will make you less mad ;)
  • 11:28:37 <denis_droid> Clicking some fields in a GUI :P
  • 11:28:52 <NamelessCoder> but do give it a try
  • 11:31:15 <denis_droid> Well that’s true but from a usability standpoint it is driving me crazy. You want to translate a page with a lot of content elements and have to run through the click/page reload/edit/save cycle infinite times.
  • 11:31:29 <NamelessCoder> hehehe
  • 11:31:35 <NamelessCoder> good luck translating in Neos ;)
  • 11:32:02 <denis_droid> (and it is even more insane because you have all the content elements including the content on one page)
  • 11:32:16 <denis_droid> How is the experience in Neos? :D
  • 11:32:21 <NamelessCoder> the point being: yes, Neos has a nice UI. But nope, it has FAR from the features that CMS does - also in the area of what we'd call banalities like translation.
  • 11:32:29 <NamelessCoder> there is none.
  • 11:33:40 <Akii> and suddenly all TS is NULL
  • 11:34:43 <Akii> works locally, works FE, doesn't work for any command controller
  • 11:35:11 <NamelessCoder> that's not really sudden
  • 11:35:24 <NamelessCoder> also, apples and oranges. command controller is BE/CLI, FE is FE
  • 11:35:36 <NamelessCoder> hint: module.tx_whatever.settings
  • 11:35:48 <Akii> ye
  • 11:35:51 <NamelessCoder> and ensure it loads even if you have no page UID in arguments ;)
  • 11:35:52 <Akii> guess what I had in already
  • 11:36:00 <Akii> how can I do that?
  • 11:36:49 <NamelessCoder> by making sure it's 1) in your root TS and 2) there's only one root TS, or 3) you use ext_typoscript_setup.txt which I *strongly* discourage because it's incredibly integration unfriendly, or 4) hook to add TS in runtime which of course would be less than ideal.
  • 11:37:09 <Akii> 1,2 check
  • 11:37:18 <Akii> and it works locally in BE/CLI
  • 11:37:29 <Akii> also on the live.. just not on the dev
  • 11:37:41 <Akii> I smell php 5.3 being an issue..
  • 11:40:39 <Akii> what would I give for a simple yaml config thats just always loaded
  • 11:43:06 <NamelessCoder> Akii if you're relying on resolving root TS record and live contains more than one such root TS record but your local dev doesn't, that would explain it
  • 11:44:26 <hans_> hi there
  • 11:45:18 <hans_> im using fuild, vhs ... fpr my site, and now i want some features to speed up
  • 11:45:23 <NIMIUS|johannes> FYI: The link to the field.text viewhelper reference is broken https://fluidtypo3.org/viewhelpers/flux/master/Field/TextViewHelper.html
  • 11:45:57 <Akii> le cache eh
  • 11:46:44 <hans_> the css and js files are concatenated, is there a a posibility to minify them or do i have to make it by my own (extention ..)
  • 11:47:37 <hans_> should i use an extenion? which one?
  • 11:50:02 <shredding> hey all
  • 11:50:12 <shredding> i have problems applying this https://github.com/FluidTYPO3/flux/issues/679#issuecomment-62038184
  • 11:50:25 <shredding> I think it’s very simple and i’m just to blind to see the obvious.
  • 11:50:50 <shredding> Can someone tell me how exactly would fit a „query“ in the „items“ field in https://fluidtypo3.org/viewhelpers/flux/master/Field/SelectViewHelper.html?
  • 11:57:21 <xaver> hans_: deflat is faster as php
  • 11:57:46 <Akii> NamelessCoder: thanks, but I can rule that out - there is exactly one template and it's the root
  • 11:59:31 <hans_> xaver: ok thx, and is there a posibilty to minify the css and js of the vhs.assets sources?
  • 12:02:11 <Akii> simple solution: {typoscript -> vh:recycleBin()}
  • 12:05:01 <Akii> but for real NamelessCoder, what do you think about yaml config? the flow schema looks sane (at least for me)
  • 12:05:42 <Akii> just as an alternative of course, the configuration manager could fallback and what not
  • 12:11:09 <shredding> i waded through github and there is not a single example of how to get it to work.
  • 12:15:12 <denis_droid> NamelessCoder: Is it possible to hide the „Fluid Content Area“ column in the languages page view?
  • 12:16:13 <denis_droid> It is a bit confusing for editors to see this additional column that contains stuff that a content editor will not understand :-)
  • 12:29:32 <NamelessCoder> denis_droid sorry, don't know
  • 12:30:09 <NamelessCoder> Akii I like Yaml for non-atomic configs and I would not take it as fluidtypo3 interest to implement an atomic yaml-based configuration alternative to TS
  • 12:30:12 <denis_droid> Ok no problem. It is just a minor problem that I recognized after updating to the latest patch level of fluidcontentelements
  • 12:31:49 <Akii> what's non-atomic
  • 12:42:22 <NamelessCoder> containing everything in one file, as opposed to like TS, being merged from all kinds of sources
  • 12:43:14 <Akii> ext_yaml.yaml
  • 12:43:15 <Akii> yeah
  • 12:43:56 <NamelessCoder> you misunderstand
  • 12:44:21 <NamelessCoder> that approach would have these files from all extensions become merged into one big configuration
  • 12:44:29 <NamelessCoder> atomic
  • 12:44:51 <Akii> so more like LocalConfiguration.yaml
  • 12:44:53 <NamelessCoder> what I proposed is that Yaml might be used for LocalConfiguration-level configuration
  • 12:44:54 <Akii> being non-atomic
  • 12:44:55 <NamelessCoder> ;)
  • 12:44:57 <Akii> :)
  • 12:45:53 <NamelessCoder> packagestates, localconfiguration, ext_emconf, stuff like that
  • 12:46:16 <Akii> ext_emconf would require merging again
  • 12:47:12 <NamelessCoder> not really; sure the info gets cached but there's no way of overriding or otherwise manipulating it from other similar files
  • 12:47:29 <NamelessCoder> it's static
  • 12:48:16 <Akii> well I thought more about having some setup.txt like thing without constants
  • 12:48:21 <Akii> properly namespaced
  • 12:48:36 <Akii> and whoever is loaded last wins
  • 12:48:55 <NamelessCoder> so everything that setup.txt currently does, but not setup.txt
  • 12:49:14 <Akii> with the certainty of being loaded on freaking strange servers, yes
  • 12:50:32 <NamelessCoder> ext_typoscript_setup.txt gives you that certainty but takes away every option the integrator has of overriding your settings
  • 12:51:02 <NamelessCoder> PS: Flux has a way to load TS regardless of which other TS gets loaded and always loading it according to extension load order
  • 12:51:30 <NamelessCoder> or FED did, it's really ancient
  • 12:52:05 <NamelessCoder> you can also pass TS as a string directly from ext_localconf.php
  • 12:52:14 <NamelessCoder> and with that, I go back to work :)
  • 12:52:20 <Akii> hehe hf
  • 12:52:43 <Akii> and thanks for the input
  • 13:17:04 <batjony> could someone explain me what is the difference between:
  • 13:17:07 <batjony> v:media.image width="100" height="100"
  • 13:17:08 <batjony> v:media.image width="100c" height="100c"
  • 13:17:10 <batjony> v:media.image width="100m" height="100m"
  • 13:19:52 <batjony> in the fluidtypo3 documentation is written "See imgResource.width for possible options.", but not sure where should I exactly have a look
  • 13:20:14 <xaver> batjony: typo3 core functionality - crop, keep ration
  • 13:20:48 <beo6> http://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Imgresource/Index.html#imgresource
  • 13:21:15 <batjony> nice 10x
  • 13:22:17 <batjony> but I dont see any info about "m"
  • 13:23:04 <beo6> sure. right the first sentence at "width"
  • 13:23:36 <batjony> ops ya
  • 13:23:38 <batjony> i saw it
  • 14:14:08 <NIMIUS|johannes> Is it possible to reload my form after a change (just like with regular flexforms)? I would like to have dynamic fields
  • 14:22:04 <batjony> guys, if I have sys categories attached to particular custom fluid element, is there some view helper, which could be used to output the corresponding categories ?
  • 14:26:24 <batjony> or I should do this somehow in my ContentController ?
  • 14:29:16 <rosieres> checkout https://github.com/TYPO3-extensions/news it uses categories
  • 14:31:52 <batjony> ya but i am using sys categories inside a FCE, thats why i am wondering if there is some fluid helper which can be used
  • 14:32:21 <batjony> NamelessCoder: do you have idea ?
  • 14:33:35 <rosieres> If you debug your item dou you have cats already in array?
  • 14:34:09 <rosieres> You are talking about the flexform?
  • 14:37:50 <rosieres> I thoink you have to build a controller like in news, which renders the three so that you can choose certain category items.
  • 14:38:10 <rosieres> three = tree :-)
  • 14:38:39 <batjony> rosieres: let say we have this http://pastebin.com/HzN5Ghwb
  • 14:39:05 <batjony> and I want to ouput the categories in <f:section name="Main">
  • 14:39:20 <batjony> thats what am searching for
  • 14:45:28 <rosieres> See how it is used here -> https://svn.typo3.org/TYPO3v4/Extensions/pw_teaser/trunk/Resources/Private/Templates/Teaser/Index.html while data is fetched in the controller -> https://svn.typo3.org/TYPO3v4/Extensions/pw_teaser/trunk/Classes/Controller/TeaserController.php || So it's also a case question whyt your FCE shall do with categories? selfassign? map to a page? map to another resource? Perhaps categories is already present to your resour
  • 14:45:31 <rosieres> ce, then you can check if it's in array and just use it with fluid . . .
  • 14:51:27 <batjony> my content element should just output them as simple text, if i have attached Cat1 and Cat 2 to my FCE, in the frontend for this element i should have an output like: Categories: Cat1, Cat2
  • 14:52:25 <batjony> also most likely something like this http://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Categories/Index.html#categories-collections could be used
  • 14:53:47 <batjony> the example you showed me, uses directly the CategoryRepository, but most likely its better to use somehow the Category Collection class
  • 14:57:43 <xaver> categorys and FCE do not use FCE for logic like sorting - this is still a plugin
  • 15:03:23 <batjony> xaver: what do you mean, could I get the categories for particular FCE ?
  • 15:03:34 <batjony> in the content template
  • 15:04:46 <batjony> as I see in the ContentController - i can get the record from the tt_content using $record - $this->getRecord()
  • 15:05:31 <batjony> then most likely this $record should passed somehow to the category collection typo3 class
  • 15:08:52 <Akii> bjo3rn: ok, seems like the current page id isn't detected correctly
  • 15:13:00 <Akii> https://github.com/FluidTYPO3/flux/blob/development/Classes/Configuration/BackendConfigurationManager.php#L187
  • 15:23:04 <danilobuerger> Akii that line looks strange ;-)
  • 15:23:11 <Akii> will fix
  • 15:23:34 <danilobuerger> its not really readable ;-)
  • 15:23:49 <Akii> and wrong
  • 15:24:34 <Xatenev> its the other way around isnt it?
  • 15:24:35 <Xatenev> :p
  • 15:25:41 <danilobuerger> no its just wrong
  • 15:25:41 <Akii> no, if given an empty array, the condition will result to TRUE and cast to 1
  • 15:25:46 <danilobuerger> exactly
  • 15:25:57 <Xatenev> oh haha okay^^
  • 15:26:01 <Akii> https://github.com/FluidTYPO3/flux/issues/705
  • 15:26:23 <danilobuerger> Xatenev sshorthand ternary will use condition as "then" if it evaluates to true
  • 15:27:14 <danilobuerger> Akii where is the PR ;-)
  • 15:27:20 <Akii> on it's way
  • 15:30:45 <wag51> Hi all.
  • 15:31:36 <wag51> Can someone give an example to register icons in pages templates?
  • 15:31:42 <Akii> there we go https://github.com/FluidTYPO3/flux/pull/706
  • 15:32:18 <danilobuerger> wag51 https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme/blob/development/Resources/Private/Templates/Page/Render.html
  • 15:32:56 <wag51> Thank you danilobuerger
  • 15:33:18 <wag51> Do you know when the documentation will be updated?
  • 15:33:35 <danilobuerger> wag51 which one?
  • 15:35:44 <Akii> dang it typo
  • 15:36:36 <wag51> danilobuerger This one: https://fluidtypo3.org/viewhelpers/flux/master/FormViewHelper.html
  • 15:36:55 <danilobuerger> wag51 why dont you update it ?
  • 15:37:21 <wag51> Because I am new and I didn't know I could do that! :)
  • 15:37:52 <danilobuerger> Sure you can, checkout the source at github, modify the documentation and submit it as a pull request
  • 15:38:00 <danilobuerger> if you need any help with the workflow just ask
  • 15:38:06 <danilobuerger> we are always happy for contributions
  • 15:38:32 <wag51> Great!
  • 15:51:57 <Akii> who is coding46 btw?
  • 15:54:52 <gbod> Akii: it's me
  • 15:54:56 <gbod> ;)
  • 15:54:58 <Akii> ah ye
  • 15:55:05 <Akii> makes sense
  • 15:55:07 <Akii> anyhow, I fixed it
  • 15:56:50 <danilobuerger> .oO Akii authored 29 minutes ago Philipp Maier committed 7 minutes ago
  • 15:57:54 <Akii> ye dang git always keeps some name somewhere
  • 15:58:00 <Akii> I amended the author
  • 15:58:31 <Akii> ah probably a mismatch between my username and the one I provided in the commit
  • 16:12:58 <Akii> as always, that merged quickly :)
  • 16:16:47 <NamelessCoder> the safe way to always getting stuff merged: 1) respect the rules of CGL and conventions, 2) sufficiently describe what is wrong/missing and why it's been added, 3) use small commits that each describe what's going on, esp. if the commit is 100+ lines changed. And that's about it.
  • 16:17:08 <NamelessCoder> and those should be relevant for any project ;)
  • 16:18:35 <Akii> I'd still like to know why it broke only on that one server
  • 16:30:53 <rosieres> Don't wait for an answer wag51 - just ask