IRC logs

20141212

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

IRC log range: 20141212*

20141212

  • 10:42:03 <mrboe> hi guys, could FCEs be disabled via TS
  • 10:44:19 <danilobuerger> mrboe i dont think its currently possible
  • 10:44:23 <danilobuerger> but +1 for a PR
  • 10:46:21 <mrboe> thx danilobuerger - but sadly i dont know how to to that
  • 10:46:58 <danilobuerger> why not?
  • 12:04:51 <jmverges> good morning mates
  • 12:05:09 <jmverges> Day by day I'm more happy with fluidtypo3 :)
  • 12:25:24 <NamelessCoder> the more you know, the better it gets!
  • 12:26:27 <Xatenev> How do i perform an or inside an if condition ?
  • 12:26:38 <Xatenev> in fluid?
  • 12:26:43 <NamelessCoder> you don't, unless you use v:if + stack
  • 12:26:44 <Xatenev> Is that possiblé?
  • 12:26:48 <Xatenev> Gg
  • 12:26:48 <Xatenev> :D
  • 12:27:37 <NamelessCoder> not completely true btw, f:if does support something like "{a} OR {b}" but you cannot make any sort of complex statement in {a} or {b}, only hard values or straight variable references - no viewhelpers
  • 12:28:17 <NamelessCoder> I think... I seem to recall seeing ||, OR, && and AND as valid comparators, but that could be wrong. Better check....
  • 12:28:28 <Xatenev> I will check..^^
  • 12:29:11 <NamelessCoder> nooooope, bad memory
  • 12:29:12 <NamelessCoder> https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/fluid/Classes/Core/Parser/SyntaxTree/BooleanNode.php
  • 12:29:30 <NamelessCoder> no simple and/or support at all
  • 12:30:06 <Xatenev> gg then
  • 12:30:11 <Xatenev> cause i got one row
  • 12:30:18 <Xatenev> <div class="row">
  • 12:30:18 <Xatenev> <f:if condition="{content_text}">
  • 12:30:18 <Xatenev> <f:format.html parseFuncTSPath="">{content_text}</f:format.html>
  • 12:30:18 <Xatenev> </f:if>
  • 12:30:18 <Xatenev> <f:if condition="{content_image}">
  • 12:30:18 <Xatenev> <f:format.html parseFuncTSPath="">{content_image}</f:format.html>
  • 12:30:19 <Xatenev> </f:if>
  • 12:30:19 <Xatenev> </div>
  • 12:30:20 <Xatenev> for example
  • 12:30:43 <Xatenev> problem: if content text and content image are not filled
  • 12:30:45 <Xatenev> the row is empty
  • 12:30:46 <Xatenev> ^^
  • 12:30:57 <Xatenev> so i wanted to write <f:if condition ="{content_text} or {content_image}"> <div class="row">
  • 12:31:04 <Xatenev> Is there any other way to get this behaviour? :p
  • 12:31:32 <NamelessCoder> with v:if + stack, yes
  • 12:31:39 <Xatenev> with only fluid? :P
  • 12:31:41 <NamelessCoder> nope
  • 12:32:05 <NamelessCoder> surrender to the dark side of VHS
  • 12:34:38 <Xatenev> xD
  • 12:35:08 <NamelessCoder> don't tell ANYONE I said this, but try this: <f:if condition="{content_text}{content_image}">
  • 12:35:15 <NamelessCoder> it is 100% abuse of the booleannode
  • 12:35:24 <NamelessCoder> and it is expensive as a motherfucker
  • 12:35:31 <NamelessCoder> (if your test strings are long)
  • 12:35:39 <Xatenev> How does this work?
  • 12:36:18 <NamelessCoder> it will say TRUE if either of the values are not-empty,not-NULL.
  • 12:36:36 <NamelessCoder> because they get borked out into a string since there's not three segments
  • 12:36:45 <NamelessCoder> and that string is then cast to boolean
  • 12:36:52 <NamelessCoder> anyway, this is just theory
  • 12:36:58 <Xatenev> (Trying) :D
  • 12:37:05 <NamelessCoder> my internal Fluid parser may require a source update
  • 12:37:38 <Xatenev> If this'll work then I love you
  • 12:37:38 <Xatenev> :D
  • 12:37:48 <NamelessCoder> conditional love!
  • 12:37:51 <NamelessCoder> hehe
  • 12:41:55 <NamelessCoder> any luck?
  • 12:43:52 <Xatenev> I will try in ~5 minutes
  • 12:44:06 <Xatenev> have to fix something in a different project fast cause fatal error :o^^
  • 12:44:12 <NamelessCoder> if it fails because of two segments...
  • 12:45:07 <NamelessCoder> use f:alias and map a new variable, giving it the content '{content_text}{content_image}' and use the new variable in the condition
  • 12:45:32 <NamelessCoder> I know for sure that a single variable is cast as boolean, some doubt wether or not two variables will be cast to string then cast to boolean
  • 12:47:18 <Xatenev> just realized my backend layouts arent even working on the testserver
  • 12:47:19 <Xatenev> lul
  • 12:58:56 <Xatenev> NamelessCoder: Might u help me in a typoscript thing? :p
  • 12:59:06 <NamelessCoder> whaaaaaaaat....?
  • 12:59:18 <Xatenev> I will take that as a yes =P
  • 12:59:30 <Xatenev> when you scroll down in this link https://jweiland.net/typo3/allgemeines/backendlayout-einsetzen.html to "Backendlayout mit Frontend verknüpfen"
  • 12:59:33 <NamelessCoder> it was supposed to mean "are you crazy?"
  • 12:59:44 <Xatenev> Yes i am!
  • 12:59:44 <Xatenev> D=
  • 13:00:05 <Xatenev> Cause i dunno how to use variables for the backend layouts =(
  • 13:00:29 <Xatenev> so it works on the testsystem AND on my local environment
  • 13:00:33 <Xatenev> with different ids =(^^
  • 13:01:35 <NamelessCoder> I think your time machine is broken. It went to the past instead of the future
  • 13:01:53 <Xatenev> Dont get that :p
  • 13:02:08 <NamelessCoder> but seriously... there's hundreds of possible reasons why this would work in one site and not another
  • 13:02:21 <Xatenev> I know why
  • 13:02:29 <Xatenev> Its because the backend layout got a different ID
  • 13:02:30 <NamelessCoder> every aspect, page tree composition, other TS templates which may clear TS, copies from other TS, and sooooo on
  • 13:02:32 <Xatenev> on the live server
  • 13:02:41 <Xatenev> than on my local ID
  • 13:02:46 <Xatenev> locla server*
  • 13:02:56 <Xatenev> w/e i gonna go eat, and maybe i get an idea :P
  • 13:03:00 <NamelessCoder> my advise, force your local copy to have the same values if you insist on hardcoding ID references
  • 13:03:16 <NamelessCoder> which you really shouldn't be doing, of course
  • 13:35:09 <jmverges> NamelessCoder,
  • 13:35:16 <jmverges> are you here?
  • 13:39:17 <NamelessCoder> lunch break is over, last day of project - so I'm not available the rest of the day
  • 14:19:39 <Xatenev> Might anybody give me some help with typoscript in private?^^
  • 15:07:04 <mloew> Hi everyone
  • 15:07:33 <mloew> I could use some help with the v:uri.typolink
  • 15:13:17 <rosieres> mloew: Isn't the documentation sufficent on that?
  • 16:20:42 <Bryder> Hi. I'm having a bit of an issue with a flux tree. In the tree I see the record uid instead of the record title. I have following conf: <flux:field.tree name="category" label="Category selector" default="NULL" required="1" size="10" multiple="1" minItems="1" maxItems="123" table="sys_category" parentField="parent" expandAll="1" nonSelectableLevels="0" maxLevels="123" width="123" />
  • 16:21:08 <Bryder> Any idea why I see the UID and not the name?
  • 16:27:05 <Bryder> foreignLabel was missing. Got it working'
  • 16:41:15 <mloew> rosieres: actually, I can't really get my head around the documentation...
  • 16:44:39 <mloew> http://pastebin.com/bUiwgKvQ
  • 16:44:46 <mloew> Thats the FCE I'm using
  • 16:51:40 <NamelessCoder> mloew <v:link.typolink configuration="{parameter: linkTarget}">My LinkText</v:link.typolink> not <v:link.typolink configuration="{parameter: {linkTarget}}">My LinkText</v:link.typolink>
  • 16:53:34 <mloew> oh man!
  • 16:53:40 <mloew> i'm stupid =)
  • 17:36:54 <Barbecue> Hej there! Is it possible to check if the current site is a subsite of a specified one? Something like "this.isSubsiteOfId(123)" ;)