IRC logs

20140103

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

IRC log range: 20140103*

20140103

  • 01:56:23 <soee> NamelessCoder: do you have 2 minutes to help me with git/github ?
  • 09:13:33 <foooobear> good morning
  • 09:14:24 <soee> hiho
  • 09:19:35 <foooobear> i'm trying to get a flexform working for my own content element. however i must be missing something. (asked this yesterday already but still cant figure it out)
  • 09:19:36 <foooobear> https://gist.github.com/pwintermantel/8234657
  • 09:20:32 <foooobear> anyone can give me some pointers?
  • 09:21:17 <foooobear> and: is there any documentation about how to integrate flux for various use cases?
  • 09:21:43 <foooobear> with this code i only get "
  • 09:21:44 <foooobear> No fields found in form"
  • 09:26:19 <soee> foooobear: <flux:flexf11orm.field.input name="test" label="just testing" />
  • 09:26:27 <soee> what is: flexf11orm
  • 09:27:38 <foooobear> gah. feeling really stupid now :D
  • 09:27:45 <foooobear> thanks a lot
  • 09:28:45 <foooobear> is there any way to debug or turn on exceptions for tracing errors (when the forms get more complex)?
  • 09:29:35 <soee> go to extension manager end configure flux - enable debu there
  • 09:29:39 <foooobear> i already copied a flux view that worked in another project and got the same message.
  • 09:29:44 <foooobear> right. thaks
  • 09:40:34 <anha> hi all!
  • 09:41:25 <foooobear> hi
  • 09:41:41 <anha> is there a way to render a diferent wrapper for colPos content elements depending on setting set on the content?
  • 09:41:51 <anha> some checkbox or something like this
  • 09:42:38 <anha> or in other words: how to access from a Page template the flexform data from the child content elements
  • 10:27:55 <anha> how to access flexform variables from an content element?
  • 10:27:58 <anha> and filter them?
  • 10:30:55 <soee> anha: you have to wait for guys from fedext to show up
  • 10:53:16 <bjo3rn> hi folks
  • 10:53:44 <bjo3rn> foooobear that typo was the issue in your case?
  • 10:54:27 <bjo3rn> anha are you talking about custom content elements (fluidcontent) or the default ones?
  • 10:54:55 <foooobear> hi bjo3rn, apparently that was the issue. but having debug turned on helps a lot with these issues ;-)
  • 10:55:12 <bjo3rn> oh my, sorry I didn't see that yesterday :S
  • 10:55:33 <foooobear> not problem. my turn to feel stupid :p
  • 10:55:42 <bjo3rn> you should also check out ext:builder that can syntax check templates.
  • 10:56:14 <bjo3rn> current ter version only supports cli but master comes with a be module
  • 10:57:21 <foooobear> thanks. will check that out. cli is just fine with me :-)
  • 10:58:03 <anha> I am talking about fluidcontent ;)
  • 10:59:01 <bjo3rn> ok, you could fx create a content controller that assigns come more variables to the fce template
  • 10:59:27 <bjo3rn> let me try something, sec
  • 11:00:34 <anha> is there no way to do it without controller? Just want a condition for each iteration v:content.get(column:'0")
  • 11:01:36 <bjo3rn> try if the variable {page} is available in your template
  • 11:01:41 <bjo3rn> should be
  • 11:02:02 <bjo3rn> if so it is the current page record
  • 11:02:19 <bjo3rn> (assuming you are using fluidpages as well ofc)
  • 11:04:29 <bjo3rn> ehm, ok... :S
  • 11:31:16 <anha> and what should I do next?
  • 11:32:24 <anha> i dont know how {page} can help me
  • 11:35:43 <bjo3rn> what is it you are trying to achieve in detail?
  • 11:36:46 <anha> I habe page, which renders content elements from colPos0 with own wrapper. I want create an FCE with an checkbox, which would change the default wrapper
  • 11:37:03 <bjo3rn> ah, ok
  • 11:38:06 <bjo3rn> how do you render the content element?
  • 11:38:42 <bjo3rn> (because you posted v:content.get (not v:content.render)
  • 11:39:28 <bjo3rn> v:content.get returns an array of arrays each representing a content element.
  • 11:39:30 <anha> I loop over the array from v:content.get
  • 11:39:40 <bjo3rn> then you have it already
  • 11:39:51 <bjo3rn> don't you?
  • 11:40:16 <bjo3rn> can you gist the template please?
  • 11:40:19 <bjo3rn> or pastebin
  • 11:40:30 <anha> how can I access one flexform property from the content elements (in fluidpage template)
  • 11:41:20 <bjo3rn> please show me your template
  • 11:43:01 <anha> https://gist.github.com/anhadikal/8236028
  • 11:43:28 <bjo3rn> hm, that's broken
  • 11:43:47 <bjo3rn> the important line is missing
  • 11:43:52 <anha> ohh sorry
  • 11:45:20 <anha> http://pastebin.com/fEx6y27R
  • 11:45:34 <anha> (gist just throws the f:for away o.o)
  • 11:47:31 <bjo3rn> ok. if you add render: false to v.content.get you get the raw records
  • 11:48:10 <bjo3rn> but why don't you move the wrapping into the content element's template?
  • 11:49:47 <anha> yeah I could ...
  • 11:50:02 <bjo3rn> but?
  • 11:50:19 <anha> For next FCE I need filter the FlexForm values
  • 11:51:50 <anha> or better: want add to pages some custom properties in flexform. now wann filter the generated Menu by this properties, how to do this?
  • 11:53:50 <bjo3rn> that's a little broad. what do you mean with filtering? you can iterate over the menu items (manual rendering) and add some conditions to the loop.
  • 11:54:29 <anha> yepp. thats fine, but how to access the flexform properties?
  • 11:55:12 <bjo3rn> of the page? {page.myFlexFormValueFoo}
  • 11:56:50 <anha> cool!
  • 11:57:36 <anha> and back to the fce with custom wrapper: the problem is, that the content element I render has an heading
  • 11:58:00 <anha> and if I create the wrapper in the FCE, the header ist outside of it
  • 11:58:20 <bjo3rn> ah, I see
  • 11:58:59 <bjo3rn> then access it with {record.header} inside your template and remove the default rendering with TS
  • 12:00:03 <anha> the default TS header is still rendered
  • 12:00:25 <anha> (want just render the TS header inside the wrapper, not only the text)
  • 12:00:27 <bjo3rn> tt_content.fluidcontent_content.10 >
  • 12:01:27 <anha> and how to render the header with all the wraps from TS?
  • 12:02:08 <bjo3rn> then removing it is not an option of course
  • 12:02:15 <bjo3rn> ok, let's see
  • 12:04:47 <bjo3rn> I need to try something, pls give me a minute
  • 12:04:53 <anha> :)
  • 12:07:34 <bjo3rn> I think we need a v:render.record viewhelper so that one can get raw records, toy with them and render manually
  • 12:08:10 <anha> v:content.get(render: false) returns raw records?
  • 12:09:05 <anha> the problem is: how to render the record and how to access the FlexForm data
  • 12:09:32 <bjo3rn> see above ;)
  • 12:09:50 <anha> what do you mean?
  • 12:10:42 <bjo3rn> we need a new viewhelper that can render a raw record
  • 12:10:48 <anha> ahh okey,
  • 12:10:54 <anha> thanks,
  • 12:11:49 <anha> it would be very cool, if you can loop over records and they have flexform data, like page.MyFlexFormName just for records
  • 12:11:56 <anha> is it hard to implement?
  • 12:12:13 <bjo3rn> no, I already have it.
  • 12:12:23 <anha> where to find?
  • 12:12:33 <bjo3rn> hehe, on my local machine ;)
  • 12:12:44 <bjo3rn> I will have to propose it first
  • 12:13:04 <anha> ahh okey
  • 12:13:19 <bjo3rn> maybe I overlooked something and it isn't required at all but I will make a PR out of it in a minute.
  • 12:13:47 <anha> nice, I will watch it on github(?)
  • 12:14:58 <bjo3rn> yep
  • 12:15:43 <anha> nice, I have to go
  • 12:15:54 <anha> thanks, bjo3rn
  • 13:01:15 <cedricziel> kewl
  • 13:14:20 <bjo3rn> look who we have here ;)
  • 13:33:16 <cedricziel> jep :)
  • 14:19:46 <foooobear> quick question about the flux.content.render helper
  • 14:20:20 <foooobear> how can utilize the render attribute? i want the get the header field of the CE
  • 14:20:21 <foooobear> <flux:content.get area="content" as="contentElements" render="contentElementsRaw">
  • 14:20:31 <foooobear> contentElementsRaw results in NULL
  • 14:20:52 <foooobear> contentElements has the rendered CEs as expected
  • 14:21:11 <bjo3rn> render="TRUE"
  • 14:21:22 <bjo3rn> quatsch, render="FALSE"
  • 14:22:22 <foooobear> great, thanks. the docs aren't really clear on how to use it
  • 14:22:49 <foooobear> says type=string and the example hast render="foo"
  • 14:23:14 <bjo3rn> yes, that's a problem we're so aware of but...
  • 14:23:41 <foooobear> lot's of work i guess ;-)
  • 14:23:49 <bjo3rn> it's docs, you know? ;)
  • 14:24:05 <foooobear> anyways, appreciate teh help :D
  • 14:24:34 <bjo3rn> your welcome :)
  • 16:46:35 <Guest|36503> hi guys
  • 16:47:18 <fger> rehi
  • 17:06:38 <bjo3rn> hi fger
  • 18:44:54 <tmonnat> hello
  • 22:47:23 <soee> NamelessCoder: something broken http://namelesscoder.net/ ?
  • 22:56:44 <soee> any idea when this can be resolved: https://github.com/FluidTYPO3/fluidcontent_bootstrap/issues/77 ?