IRC logs

20141023

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

IRC log range: 20141023*

20141023

  • 08:14:54 <randomresult> good morning
  • 08:14:55 <mrboe> good morning
  • 09:09:04 <ulrikkold> what would be the best channel for a question about ext:news? Could somebody here give a helping hand?
  • 09:17:32 <mrboe> @ulrikkold #typo3
  • 09:20:48 <ulrikkold> mrboe, thanks - I joined that :)
  • 09:26:33 <ndee_> anyoen encountered a problem with the page module that it takes around 4 seconds to load if there are a couple of FCEs on the page? In flux, the caching is enabled (the checkbox in the extension manager NOT checked). There are around 20 FCEs on the page
  • 09:54:40 <jmverges> morning all.
  • 09:55:48 <ulrikkold> morning
  • 11:40:15 <BenjaminR> Is there a CSS guru beyond the people i know?
  • 11:40:59 <Akii> chances are very high
  • 11:41:11 <Akii> no idea if someone is in this channel right now though :P
  • 11:43:00 <BenjaminR> hehe
  • 11:43:20 <Akii> I think you didn't meant "beyond" then
  • 11:43:28 <Akii> more like "among"
  • 11:44:30 <BenjaminR> might be :)
  • 11:44:41 <BenjaminR> are you a css guru among the people i know :)
  • 11:45:45 <Akii> certainly not
  • 12:28:20 <gbod> Hi! Any simple ideas out there on how to get the fluidpages template name as a class name for the opening html tag.
  • 12:29:53 <gbod> Additional info: I figured it out for the body tag using just fluid and a page.bodyTag > in TypoScript.
  • 12:41:26 <momodedf> Hello ! Is there any knowned issud with the latests typo3 version ? cause I tried to make a provider on a fresh install with builder and I get no backend grid
  • 12:42:13 <gbod> momodedf: You have to set the Backend layout to Fluidpages in the apearance tab in page settings.
  • 12:42:44 <mrboe> @momodedf rootpage > settings > appereance > Backend Layout
  • 12:43:22 <momodedf> oh
  • 12:43:29 <gbod> We're in the need for a FAQ :)
  • 12:47:46 <momodedf> I've god the grid now :)
  • 12:48:21 <gbod> You're god of the Grid now? Woha!
  • 12:50:55 <Akii> God of Grid
  • 12:52:24 <gbod> Hail!
  • 12:53:40 <momodedf> xD
  • 12:53:48 <momodedf> FEAR MY TEMPLATES
  • 12:56:19 <momodedf> well thanks you guys
  • 12:56:21 <NamelessCoder> Guns don't kill people. Nah-uh. I kill people. Ah-hah. With guns. http://www.youtube.com/watch?v=xC03hmS1Brk
  • 12:56:22 <FT3BOT> YouTube: I Kill People (5m1s)
  • 12:56:54 <momodedf> Oh, cld it be mylucky day
  • 12:57:11 <Akii> rofl
  • 12:57:42 <momodedf> NameslessCoder, I'm fan of fluidtypo3 modules, and my collegue wld like to use gridelements instead
  • 12:58:03 <gbod> Oh oh, Jehova!
  • 12:58:07 <momodedf> I've seen you did tests about that, is there any blog article on the subject ?
  • 12:58:14 <NamelessCoder> momodedf he probably shouldn't if he likes new stuff :)
  • 12:58:57 <momodedf> (he doesnt, I'm already fighting with the all team to use GIT and composer ...)
  • 12:59:12 <NamelessCoder> that could be a tough battle
  • 13:00:44 <momodedf> ok :-/
  • 13:01:17 <gbod> But it's worth it.
  • 13:01:41 <momodedf> i'm wining 'til now :D
  • 13:02:03 <momodedf> +n
  • 13:03:53 <Akii> heh
  • 13:03:57 <Akii> good luck
  • 14:09:03 <ulrikkold> Could somebody help me produce valid markup for a news viewhelper? I'm trying to include an overwriteDemand GET param in a detail view link.
  • 14:09:27 <ulrikkold> (moment, there will be a gist ...)
  • 14:10:03 <drlimbo> good afternoon guys
  • 14:10:44 <drlimbo> it's the first time we have to realize a search-function with Fluid Typo3 and i just wanted to ask if anyone of you have some tipps?
  • 14:10:59 <drlimbo> we tought about indexed_search, or is there a better way already?
  • 14:11:38 <ulrikkold> https://gist.github.com/ulrikkold/7a16f56eb8e637a6f639
  • 14:12:09 <ulrikkold> what version of TYPO3 are you using? the crawler is AFAIR not ready to use with 6.2
  • 14:20:00 <ulrikkold> drlimbo, what version of TYPO3 are you using? the crawler is AFAIR not ready to use with 6.2
  • 14:20:28 <drlimbo> ulrikkold: we'r using 6.2 with Fluid Typo3
  • 14:20:47 <drlimbo> that was my next question, how about crawling fluidt3 contents?
  • 14:21:45 <ulrikkold> I think that's no problem as the crawler surfs your site and indexes the content. The rendering of the tt_content elements has nothing to do with that (somebody, correct me if I'm very wrong here...)
  • 14:22:59 <drlimbo> mhh, i thought its much easier if indexed_search will crawl the Database and not the "frontend crawler stuff"
  • 14:23:22 <drlimbo> and you talk about the indexed search crawler is not ready for 6.2?
  • 14:24:05 <ulrikkold> drlimbo, yes, here's the ticket https://forge.typo3.org/issues/55106
  • 14:25:10 <drlimbo> oh thats bad
  • 14:25:20 <drlimbo> is there another search implementation?
  • 14:25:33 <drlimbo> is ke_search an option?
  • 14:40:00 <ulrikkold> We have decided to use a google search form for the projects I am working on recently
  • 14:47:32 <drlimbo> ulrikkold: the google sitesearch?
  • 14:47:45 <drlimbo> or the "real professional very high-price search-thing from google"?
  • 14:55:28 <ulrikkold> basically just the site search ...
  • 14:56:16 <ulrikkold> Google will index your site anyway (I guess), so we plan to just style the result page and use site search
  • 14:58:09 <ulrikkold> What is the inline equivalent of using the f:for viewhelper? I cannot wrap my head around how to operate on the items in the loop?
  • 14:59:47 <ulrikkold> i.e. how do I convert this to inline notation: <f:for each="{items} as="item" iteration="itr"><f:if condition="{itr.isLast}"><f:then>Last</f:then><f:else>Not the last<f:else></f:if></f:for>?
  • 15:00:49 <drlimbo> mh, i didnt think this is the best solution to use google sitesearch ulrikkold - just for small projects with a low budget its ok
  • 15:01:55 <ulrikkold> drlimbo, AFAIK the solr indexing server is an alternative to the ordinary crawler
  • 15:02:16 <drlimbo> yup, but you have to "rent" an external SOLR server for every project
  • 15:02:41 <randomresult> or setup your own :)
  • 15:13:57 <drlimbo> thats a lot of work randomresult i think =P
  • 15:14:19 <randomresult> dunno, never did it
  • 15:16:15 <gbod> For small projects it's kind of too much stuff. But if you're into it it's really nice.
  • 15:38:07 <drlimbo> yes sure, we have just only typo3 version running with an external solr server, and thats really nice =)
  • 15:38:19 <drlimbo> but most client wont pay another server "only" for search
  • 15:45:26 <pedda> hi there
  • 15:46:04 <pedda> anyone a clue why vhs might add it's assets twice into the source of my page?
  • 15:46:28 <pedda> it seems as if the cache is also involved
  • 15:46:36 <pedda> and i'm a bit struggeling with that one
  • 15:50:18 <gbod> pedda: Some more details?
  • 15:50:40 <pedda> yeah.. found a solution in one of my old projects
  • 15:50:55 <pedda> well it seems as if ts based asset inclusion happens twice if cached
  • 15:51:37 <pedda> i'm about to move all ts based asset inclusion to fluid and see if it helps (again) if so.. this needs to be reported ^^
  • 15:52:24 <pedda> it's like .. i visit a page.. assets are included twice, i refresh the page, the second inclusion disappears
  • 15:52:26 <rosieres> pedda: iirc some weeks ago someone with the same problem was here. Perhaps you crawl the logs if there's a final solution
  • 16:05:07 <mrboe> @pedda there was a bug that vhs have not inclued assests from TS if uncached is set
  • 16:05:52 <mrboe> after NamelessCoder fixed that it worked fine for me with the latest TER versions
  • 16:09:50 <mrboe> @pedda https://github.com/FluidTYPO3/vhs/commit/dd798e234935c5ecd0a7ee796f2e5709141725a6
  • 16:10:08 <pedda> well actually it seems still an issue
  • 16:10:29 <pedda> refactored my code -> ts based inclusion moved to Assets.html partial .. assets appear only once in source
  • 16:10:40 <pedda> i need to verify this once again..
  • 16:24:43 <Xatenev> How do i create a link to another page for example facebook xDß
  • 16:24:59 <Xatenev> aah external
  • 16:24:59 <Xatenev> got it
  • 16:25:38 <Xatenev> Another question
  • 16:25:53 <Xatenev> how do i include an image which is in assets/default/images ?
  • 16:25:57 <Xatenev> Whats the path to it?
  • 16:26:07 <Xatenev> /assets/default and assets/default doesnt seem to work
  • 16:28:07 <Xatenev> (this is typo3 4.5.15 maybe the path's are different here?
  • 16:37:23 <Xatenev> No idea on that? :P
  • 16:39:07 <pedda> an image?
  • 16:39:12 <pedda> f:image src=""
  • 16:39:21 <pedda> or v:media.image path=""
  • 16:39:36 <pedda> well mrboe & rosieres seems as if i was right
  • 16:39:42 <pedda> regarding ts based inclusion
  • 16:39:55 <Xatenev> pedda: the src is the problem
  • 16:39:56 <pedda> it's still an issue as it is included twice
  • 16:40:01 <Xatenev> what is the src for /assets/default...
  • 16:40:18 <pedda> assets/default doesn't tell me anything
  • 16:40:25 <Xatenev> Hm?
  • 16:40:36 <Xatenev> Dont understnad? :P
  • 16:40:45 <pedda> well Xatenev how do i include avideo if its in /foio/bar
  • 16:40:55 <Xatenev> Well /assets means its on the web root
  • 16:40:59 <pedda> what is foio/bar at all?!
  • 16:41:06 <pedda> ah does it for you?
  • 16:41:11 <Xatenev> Its quite common
  • 16:41:17 <pedda> web root is for me where index.php resides
  • 16:41:22 <Xatenev> Same to me!
  • 16:41:32 <pedda> don't assume common principles while dealing with an issue
  • 16:41:56 <pedda> well it'S quite common then that your asset folder should reside within fileadmin when it comes to typo3 cms ;)
  • 16:41:57 <Xatenev> Ay
  • 16:41:59 <Xatenev> Im sorry so
  • 16:42:03 <Xatenev> Relaly oo?
  • 16:42:09 <pedda> yes.. really
  • 16:42:10 <pedda> :D
  • 16:42:11 <Xatenev> its always outside in my company
  • 16:42:12 <Xatenev> lal
  • 16:42:19 <Xatenev> So whatever, its not inside the fileadmin^^
  • 16:42:25 <pedda> well it'S some kind of security related then
  • 16:42:27 <Xatenev> Its on the web root
  • 16:42:30 <Xatenev> doesnt matter :P
  • 16:42:51 <pedda> f:image src="/asset/myimage.png" then
  • 16:43:08 <Xatenev> without /default/.. etc?
  • 16:43:36 <pedda> @mrboe & @rosieres when assets are loaded via luid everything works like a charm
  • 16:43:41 <pedda> what ist default?
  • 16:43:45 <Xatenev> its inside /assets/default/images/myimage.png
  • 16:43:53 <Xatenev> I tried exactly that path _> does not work
  • 16:43:55 <pedda> well then add default to it
  • 16:44:02 <pedda> did you ever place an image in html?
  • 16:44:11 <Xatenev> :D I did often
  • 16:44:11 <pedda> proper access rights?
  • 16:44:16 <Xatenev> im not a retard xD
  • 16:44:18 <pedda> to the image for the server
  • 16:44:21 <Xatenev> I tried all default routes.
  • 16:44:23 <Xatenev> this is not working
  • 16:44:32 <Xatenev> Everything is correct :p
  • 16:44:37 <Xatenev> local machine atm
  • 16:44:39 <pedda> if so, it would work
  • 16:44:49 <Xatenev> The path is probably wrong :p
  • 16:44:53 <Xatenev> cause t3 wants some weird pathes
  • 16:45:00 <pedda> weird?
  • 16:45:10 <pedda> thery're conventional as they are for any cms
  • 16:45:11 <Xatenev> Its typo3 4.5.15 ... maybe it needs a different path?
  • 16:45:20 <pedda> no it does not
  • 16:45:28 <Xatenev> mhm
  • 16:45:40 <Xatenev> Maybe those images has to be inside fileadmin or it doesnt load it
  • 16:45:41 <Xatenev> mmh
  • 16:45:50 <pedda> no .. neither
  • 16:46:10 <Xatenev> ill try it wit hthe file admin once
  • 16:46:13 <gbod> Xatenev: But /.. is nor special t3 related path.
  • 16:47:39 <Xatenev> this is so weird
  • 16:47:40 <Xatenev> xD
  • 16:47:40 <pedda> Xatenev using images via fluid is very simple, first you need to know which viewhelper you want to use (you didn't tell as any of the proper ones), secondly set the path as if you would access it from browser, define some alt attribute (this is mandatory) and you sould be fine
  • 16:47:45 <pedda> it's not
  • 16:47:50 <Xatenev> Its quite weird
  • 16:47:56 <Xatenev> i can call the image easily by the path
  • 16:48:07 <pedda> so you'Re wrong about your viewhelper then
  • 16:48:14 <pedda> which one did you use?
  • 16:48:16 <Xatenev> normal fluid one
  • 16:48:17 <Xatenev> <f:image
  • 16:48:38 <Xatenev> exactly like in the example...
  • 16:48:49 <pedda> you must be missing something
  • 16:48:51 <pedda> like the alt tag
  • 16:48:57 <Xatenev> nope its there
  • 16:48:58 <pedda> which results in a non rendered image
  • 16:49:00 <Xatenev> it gave me a fatal error before
  • 16:49:03 <Xatenev> when i had no alt tag
  • 16:49:06 <pedda> okay
  • 16:49:21 <pedda> check access rights of the image on filesystem
  • 16:49:24 <pedda> then
  • 16:49:48 <pedda> this is the most basic task.. that's why you must be missing the most simplest thing..
  • 16:50:06 <Xatenev> ikr
  • 16:50:06 <Xatenev> :D
  • 16:50:21 <Xatenev> im not that new to typo3 thats why this is so weird for me
  • 16:50:21 <Xatenev> xD
  • 16:50:24 <pedda> we're just uassuming it must be something complex, but it's not ..
  • 16:50:50 <pedda> and that's why the thing you're missing must be very simple
  • 16:51:18 <Xatenev> Its the image
  • 16:51:19 <Xatenev> but why
  • 16:51:25 <pedda> such as forgot to include css_styled_content after years of typo3 experience.. (this is not related to your specific issue)
  • 16:51:45 <pedda> you get the point?
  • 16:51:48 <pedda> :)
  • 16:51:52 <pedda> gotta leave again
  • 16:51:53 <pedda> cu
  • 16:52:01 <pedda> ths for the info rosieres :)
  • 16:52:13 <pedda> regarding the ts "fix" of vhs assets
  • 16:53:09 <Xatenev> its definetly image related
  • 16:53:10 <Xatenev> lol
  • 16:53:13 <Xatenev> so retarded
  • 17:45:26 <jmverges> hey folks, I restarted yesterday my life with TYPO3. So I have a instalation if FluidPowered. I got modify MyPageTemplate and add columns and I can add normal CE's like text, however when I add MyContentElement this is not renderend in the Frontend. Any tip for me?
  • 18:01:36 <rosieres> jmverges: get used to <f:debug>{_all}</f:debug> to check if your variables get filled. Always a good try.
  • 18:33:20 <NamelessCoder> jmverges don't forget to include the VHS namespace and actually render your content, using v:content.render or others
  • 18:36:07 <jmverges> NamelessCoder, that is done in MyPageTemplate
  • 18:36:47 <jmverges> I'n MyContentElement.html I have <f:section name="Main">Hello world!</f:section>
  • 18:37:21 <jmverges> and more above, but I'm don't see Hello World!
  • 18:38:29 <NamelessCoder> using fluidcontent_core? Forgot to run the extension update script?
  • 18:39:06 <jmverges> maybe the last one
  • 18:39:09 <jmverges> let me see
  • 18:39:37 <jmverges> I just used the Vagrant repo that you provide to me yesterday
  • 18:47:38 <NamelessCoder> I think xaver said something about that one needing an upgrade
  • 18:48:04 <jmverges> Thank you NamelessCoder
  • 18:48:12 <jmverges> it's working know, was that
  • 18:49:01 <xaver> hi yeah i need to change somethings, but right now i'm really busy (still at work)
  • 18:49:38 <NamelessCoder> working late :/
  • 18:58:20 <jmverges> NamelessCoder, is very interesting this approach. I will need some time but I think that I could at least recreate some way of work that I had with TV.
  • 19:12:58 <ulrikkold> I guess somebody here could guide me through using the For ViewHelper through inline notation? I have trouble wrapping my head around how I mimic the normal notation with <f:for ><f:if><f:then></f:then><f:else></f:else></f:if></f:for> - I am using this in ext:news to include the categories in the link to the detail view.
  • 19:16:22 <randomresult> {f:if(then: 'erp', else: '', condition: '{ReferencesSectionItem.ReferencesObject.erp}')}
  • 19:17:08 <randomresult> this is an inline notation for if
  • 19:17:13 <randomresult> works for me.
  • 19:19:57 <ulrikkold> randomresult, that makes sense ... I just haven't been able to find docs for it. Perhaps that's just my Google-fu failing.
  • 19:20:13 <randomresult> hope it helps
  • 19:20:14 <NamelessCoder> ulrikkold f:for can only be used inline in a very limited number of use cases
  • 19:20:32 <ulrikkold> NamelessCoder, such as?
  • 19:20:59 <NamelessCoder> {f:render(section: 'SectionName') -> f:for(each: blah, as: 'var')} and having <f:section name="SectionName">{var.someproperty}</f:section>
  • 19:21:14 <ulrikkold> randomresult, let me just read that again: I asked for the For vh :-)
  • 19:22:32 <NamelessCoder> ulrikkold you can chain f:if as well but you will be VERY limited in what you can actually render... example, {f:if(condition: 1, then: 'Yessir, {object.property}', else: 'No sir, {object.property}') -> f:for(each: objects, as: 'object')}
  • 19:22:35 <ulrikkold> NamelessCoder, I guess my trouble with this is actually the arrow notation ... "->"
  • 19:22:50 <NamelessCoder> ulrikkold this pseudo explains it:
  • 19:23:04 <NamelessCoder> {childContentOf -> viewHelper()}
  • 19:23:13 <ulrikkold> NamelessCoder, i am looking to do something like this: https://gist.github.com/ulrikkold/7a16f56eb8e637a6f639
  • 19:24:02 <NamelessCoder> that long expression hurts my eyes :p
  • 19:24:25 <ulrikkold> exactly ... me, too ... but I have not been able to find an alternative within tx_news ...
  • 19:24:55 <NamelessCoder> first of all you want your f:if outside the link so the comma isn't part of the link
  • 19:25:27 <NamelessCoder> second, you want to extract the categories another way than this, for sure
  • 19:25:58 <NamelessCoder> implement VHS, use {newsItem.categories -> v:iterator.extract(key: uid) -> v:iterator.implode()}
  • 19:26:03 <ulrikkold> I can only agree ... I was hoping to do this without an extra extension with a custom viewhelper. That might be naive :)
  • 19:26:14 <NamelessCoder> yeah don't fear VHS
  • 19:26:16 <randomresult> ulrikkold welcome - go get some
  • 19:26:23 <NamelessCoder> there's just no way you can do stuff like that with plain fluid
  • 19:26:45 <NamelessCoder> any approximation would be clumsy at best
  • 19:27:00 <ulrikkold> NamelessCoder, I was actually looking into v:iterator this evening but could not see the solution in that one. I need more training hours with Fluid :-)
  • 19:27:29 <NamelessCoder> this inline voodoo requires a bit of background knowledge to know *why* it actually works ;)
  • 19:27:46 <ulrikkold> yup - and I did not find any docs for that part :)
  • 19:27:50 <NamelessCoder> the example above would extract every UID value of categories and implode them as CSV
  • 19:28:07 <NamelessCoder> it's unfeasible to document every conceivable use case ;)
  • 19:28:15 <ulrikkold> no, sure :)
  • 19:28:27 <ulrikkold> but I think the docs for the inline notations are ... sparse ...
  • 19:28:29 <NamelessCoder> say you want the first three categories only...
  • 19:28:45 <NamelessCoder> {newsItem.categories -> v:iterator.slice(length: 3) -> v:iterator.extract(key: uid) -> v:iterator.implode()}
  • 19:29:15 <jmverges> why fluidbackend requires < 6.2 ?
  • 19:29:16 <NamelessCoder> oh boy...
  • 19:29:20 <ulrikkold> wonderful - I already feel better :)
  • 19:29:21 <NamelessCoder> {newsItem.categories -> v:iterator.slice(length: 3) -> v:iterator.extract(key: 'uid') -> v:iterator.implode()}
  • 19:29:27 <ulrikkold> :)
  • 19:29:43 <randomresult> thats spooky
  • 19:29:59 <randomresult> jmverges i dont think fluidbackend is up to date...
  • 19:30:08 <NamelessCoder> fluidbackend is one year behind the others
  • 19:30:16 <ulrikkold> oh, and the next question / issue - how do I get rid of uid = 1in that csv? Not index=1, but uid=1 ... that one has a "special meaning" ...
  • 19:30:27 <jmverges> so I should install it
  • 19:30:58 <NamelessCoder> just so I get it right: you want to avoid including category UID value "1"?
  • 19:31:29 <ulrikkold> yes.
  • 19:31:42 <ulrikkold> I may have to rethink the category strategy ...
  • 19:31:53 <NamelessCoder> it does sound a bit like that ;)
  • 19:32:21 <NamelessCoder> you could use v:iterator.filter
  • 19:32:25 <ulrikkold> but that was my initial plan: category uid = 1 was meant for the news items that should be displayed in a special box on the frontpage.
  • 19:32:34 <NamelessCoder> filter: 1, invert: true
  • 19:32:44 <ulrikkold> "breaking news" kind of
  • 19:33:10 <NamelessCoder> isn't there some "top news" option you could use for that?
  • 19:33:16 <ulrikkold> but filter sounds like a solution ... to my flawed category strategy
  • 19:33:17 <NamelessCoder> I think it even supports automatic expiration
  • 19:33:39 <ulrikkold> I was also wondering if "topnews" might do the same for us.
  • 19:34:26 <NamelessCoder> it has two functions, lets you filter your list view to only include those - or lets you sort those on top
  • 19:34:48 <NamelessCoder> each newsItem has an indication as well, letting you set different CSS classes etc.
  • 19:35:22 <ulrikkold> I'll have to look into that, too.
  • 19:36:10 <ulrikkold> NamelessCoder, for now: thank you, that was most educating. Now I'll have to see if I learned something useful :)
  • 19:36:22 <NamelessCoder> you're welcome - and hope you did
  • 19:36:26 <ulrikkold> me too
  • 19:49:41 <xaver> jmverges: which OS?
  • 19:49:58 <jmverges> OS?
  • 19:55:04 <ulrikkold> operating system? Linux, windows, etc?
  • 20:00:00 <jmverges> I know, but I don't understand which is the relation with my question
  • 20:00:42 <jmverges> fluidbackend extension requires TYPO3 < 6.2
  • 20:01:52 <xaver> you use the vagrant stuff and i created it
  • 20:02:09 <xaver> fluidbackend isn't released and fnished
  • 20:02:19 <jmverges> ahhh
  • 20:02:22 <jmverges> okey okey XD
  • 20:02:52 <jmverges> sorry xaver, I didn't understand
  • 20:05:18 <ulrikkold> NamelessCoder, I'm afraid I did not understand enough of the filtering bit: do I separate the different arguments for filter() with commas? And where in the sequence do I insert it? I tried a couple of positions and did not get the desired result?
  • 21:32:35 <NamelessCoder> ulrikkold back again, sry.
  • 21:33:11 <NamelessCoder> inline arguments are always separated by commas, e.g. {array -> v:iterator.filter(filter: 1, invert: TRUE)}
  • 21:33:43 <NamelessCoder> in this case you would filter to match a value of "1" but invert the result so that all values that are NOT "1" are included
  • 21:34:43 <Akii> (that's valid syntax? invert: TRUE <-)
  • 21:34:50 <NamelessCoder> if you follow the rule that this category is always set as the first category you can just {newsItems.categories -> v:iterator.slice(start: 1) -> v:iterator.extract(key: 'uid') -> v:iterator.implode()}
  • 21:35:20 <NamelessCoder> yes, TRUE as value of a boolean node is allowed
  • 21:36:33 <Akii> it's been {true} for a while afair ^^
  • 21:53:41 <NamelessCoder> ehm
  • 21:53:47 <NamelessCoder> that would be a variable reference
  • 21:54:12 <NamelessCoder> so unless you did $view->assign('true', TRUE); that'd actually be false ;)
  • 21:54:25 <randomresult> to whom are u talking?
  • 21:54:30 <NamelessCoder> Akii
  • 21:54:31 <randomresult> on meth again?
  • 21:54:35 <randomresult> ah ok
  • 21:54:39 <NamelessCoder> :p
  • 21:55:03 <Akii> no really, that was the official way to have true or false
  • 21:55:10 <Akii> like without setting it anywhere
  • 21:55:33 <Akii> like _all
  • 21:56:55 <NamelessCoder> I see "true" in the list of reserved variable names but I see no magic methods that would fill that variable reference with any value
  • 21:59:14 <Akii> interesting
  • 21:59:23 <NamelessCoder> <f:if condition="{true}" then="YES" else="NOWAY" /> outputs NOWAY as expected
  • 21:59:50 <NamelessCoder> {true -> f:debug()} outputs NULL
  • 22:00:25 <Akii> could've sworn that worked at some point.. oh well
  • 22:00:27 <NamelessCoder> <f:if condition="FALSE" then="YES" else="NOWAY" /> outputs NOWAY
  • 22:01:04 <NamelessCoder> {f:if(condition: FALSE, then: 'YES', else: 'NOWAY')} outputs NOWAY
  • 22:01:14 <NamelessCoder> I guess that settles it ^^
  • 22:01:14 <Akii> now stick TRUE in
  • 22:02:03 <NamelessCoder> ahaa
  • 22:02:07 <NamelessCoder> so there's the limitation
  • 22:02:13 <Akii> looooooool
  • 22:03:02 <Akii> gotta check all them invariants
  • 22:03:09 <NamelessCoder> just chained v:debug on that, now it makes sense:
  • 22:03:30 <NamelessCoder> fluid sees this as an objectaccessornode in inline but the same isn't true in tag mode
  • 22:03:55 <Akii> it's just a string then I guess?
  • 22:04:14 <NamelessCoder> exactly yes
  • 22:04:22 <NamelessCoder> but a string FALSE gets cast to boolean FALSE
  • 22:04:26 <NamelessCoder> b/c booleannode
  • 22:04:29 <NamelessCoder> sheesh
  • 22:04:37 <NamelessCoder> it's a good thing I have v:debug ;)
  • 22:04:54 <NamelessCoder> compare <v:debug><f:if condition="TRUE" then="YES" else="NOWAY" /></v:debug> to {f:if(condition: TRUE, then: 'YES', else: 'NOWAY') -> v:debug()}
  • 22:05:39 <NamelessCoder> {f:if(condition: 'FALSE', then: 'YES', else: 'NOWAY')} correctly casts it to false though
  • 22:05:51 <NamelessCoder> yummy, yummy inconsistency :)
  • 22:05:56 <Akii> ye
  • 22:06:03 <Akii> well at least it doesn't hurt in this case
  • 22:06:15 <NamelessCoder> not really, it just gets ignored
  • 22:06:18 <Akii> that can't be said to the little inconsistency with __toString
  • 22:06:29 <Akii> not sure if that's fixed for CMS yet
  • 22:06:32 <NamelessCoder> don't talk about magic methods here please :p
  • 22:06:45 <Akii> :o k
  • 22:07:13 <NamelessCoder> __set, __get and __call are a curse on mankind :)
  • 22:07:42 <NamelessCoder> btw what did you mean with the __toString() inconsistency? Should I know about this?
  • 22:08:00 <Akii> well any string coming from that won't be escaped
  • 22:08:05 <Akii> happy XSS and such
  • 22:08:25 <Akii> let me actually check if that's still open
  • 22:09:13 <NamelessCoder> ah
  • 22:09:26 <NamelessCoder> that's bad, mkay?
  • 22:09:45 <Akii> ye was quite the shocker
  • 22:10:23 <Akii> yip no need to hurry https://forge.typo3.org/issues/60082
  • 22:10:35 <Akii> {whatCouldPossiblyGoWrong}
  • 22:10:48 <NamelessCoder> hehe
  • 22:10:57 <Akii> apparently that wasn't as trivial as everyone thought
  • 22:11:10 * NamelessCoder is mentally scanning all VHS viewhelpers for casting to string.... nope, don't recall any.
  • 22:11:32 <NamelessCoder> at least none that I'm casting - that'd all be the argument mapper in fluid itself which is where this should be done
  • 22:13:11 <NamelessCoder> hmm
  • 22:13:48 <NamelessCoder> since "true" etc. are already restricted variable names, why not make ObjectAccessorNode support those and return the appropriate type?
  • 22:23:52 <NamelessCoder> works.
  • 22:24:59 <Akii> nice
  • 22:27:38 <gbod> Akii: Cannot imagine why nobody's fixing it on CMS - in TYPO3.Fluid it's already done.
  • 22:28:41 <gbod> Well maybe it breaks the code of all those relying on the unescaped strings. Hehe
  • 22:28:51 <Akii> it was a breaking change ye
  • 22:29:07 <Akii> idk, maybe nobody has time, maybe it's just complex to backport idk
  • 22:29:42 <gbod> Thanks for mentioning it.
  • 22:30:01 <Akii> np ^^
  • 22:30:14 <Akii> I throw it in every few months to remind ppl
  • 22:30:31 <randomresult> hi gbod
  • 22:30:37 <randomresult> good night all!
  • 22:30:42 <randomresult> i will leave now
  • 22:30:46 <randomresult> cu all
  • 22:30:52 <Akii> also, did you know value objects are broken in TYPO3 Flow? In fact, we started to call them DWs or "DoesntWork"
  • 22:30:54 <Akii> cya :)
  • 22:30:57 <gbod> Sleep well, randomresult.
  • 22:31:07 <randomresult> i will (had a glas of wine...
  • 22:31:09 <NamelessCoder> yep, always avoid those
  • 22:31:30 <randomresult> and off
  • 22:31:37 <NamelessCoder> nitey harry :)
  • 22:32:44 <gbod> Akii - nope, didn't know it but didn't used them. What's wrong with them.
  • 22:33:30 <NamelessCoder> 699 pull requests later
  • 22:33:32 <Akii> well mostly the value hash generation
  • 22:33:37 <Akii> hehe
  • 22:33:52 <NamelessCoder> I like where this is going :)
  • 22:34:54 <gbod> Yep. :)
  • 22:37:16 <gbod> NamelessCoder - currently i'm crawling through the vhs - just to get some insights into the iterator you mentioned some hours ago. Maybe there'll be others of these kind of PRs. I like to read code. ;)
  • 22:40:58 <NamelessCoder> gbod check your messages ;)
  • 22:42:09 <t3-search> Good evening.
  • 22:42:29 <t3-search> Does someone work with cooluri here? Or do all of you work with RealUrl?
  • 23:06:30 <Akii> gn