IRC logs

20141015

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

IRC log range: 20141015*

20141015

  • 10:06:24 <denis-fluid> Good morning. I've got a question. Which is the most efficient way to to i18n with the fluid typo3 extensions?
  • 10:07:03 <denis-fluid> (being able to build custom content for other languages as well as just translating content)
  • 10:47:40 <Xatenev> Resources/Private/Language/Translation.xlf
  • 10:47:46 <Xatenev> put your translations in there
  • 10:47:57 <Xatenev> and us eit
  • 10:47:58 <Xatenev> use it*
  • 11:19:17 <drlimbo> good morning
  • 11:19:59 <drlimbo> is there a short inline style for multiple v:switch v:case?
  • 11:20:45 <drlimbo> {v:case(case: '4', 'limbo')}{v:case(case: '5', 'foo')}{v:case(case: '6', 'faa')}
  • 11:20:52 <drlimbo> something like this
  • 11:39:07 <NamelessCoder_> nope drlimbo - case nodes must be siblings and online children are possible using inline
  • 11:43:30 <danilobuerger> drlimbo dont use switch view helper as it is uncompilable
  • 11:43:38 <danilobuerger> (if you can avoid it)
  • 11:43:53 <NamelessCoder_> s/online/only
  • 11:44:05 <NamelessCoder_> also, danilo is right about avoiding it if possible
  • 11:45:01 <randomresult> danilobuerger!
  • 11:45:08 <danilobuerger> hey harry
  • 11:45:16 <randomresult> long time no see.
  • 11:45:30 <randomresult> happy ur still alive after friday in munich
  • 11:45:34 <danilobuerger> me too
  • 11:45:40 <randomresult> hehe
  • 11:46:01 <randomresult> maybe next time :)
  • 11:46:19 <randomresult> so have u been to munich on sunday?
  • 11:47:02 <danilobuerger> no
  • 11:47:10 <randomresult> THAT BAD?
  • 11:47:18 <danilobuerger> no but had other stuff todo
  • 11:47:39 <randomresult> will you come to essen?
  • 11:47:48 <danilobuerger> no, no time
  • 11:47:55 <randomresult> sad
  • 11:48:18 <randomresult> i thought i could ask u some more questions :)
  • 11:48:31 <randomresult> so i need to ask @cedricziel
  • 11:48:36 <randomresult> x_X
  • 11:48:40 <randomresult> hehe
  • 11:48:52 <danilobuerger> ask here
  • 11:48:58 <randomresult> ya'll gonna hate me wihtin the next year
  • 11:49:09 <randomresult> nono... just a joke.
  • 11:49:26 <randomresult> i love to discuss with you having a beer... learning more in 30 minutes than in 2 months alone
  • 11:50:11 <danilobuerger> buy beer and come by
  • 11:50:16 <Akii> :D
  • 11:50:23 <randomresult> come on... come to essen
  • 11:50:25 <Akii> #justgermanthings
  • 11:50:26 <randomresult> would be fun
  • 11:50:29 <NamelessCoder_> if the mountain won't come to Muhammad... ;)
  • 11:50:47 <randomresult> NamelessCoder_ come join me and danilobuerger in Essen.
  • 11:50:52 <randomresult> will be fun. i spend beer.
  • 11:51:13 <danilobuerger> nonono
  • 11:51:19 <danilobuerger> augsburg is the place to be ;-)
  • 11:51:30 <NamelessCoder_> but it's so far away guys :p
  • 11:51:42 <randomresult> far away. ask the americans... thats not far!
  • 11:51:57 <NamelessCoder_> yeah, my Australian family would also disagree
  • 11:52:06 <NamelessCoder_> and laugh
  • 11:52:20 <danilobuerger> Essen is probably as far away from me as it is from claus
  • 11:52:34 <randomresult> dont u tell bullshit....
  • 11:52:47 <danilobuerger> and i need to cross borders... same as claus :-)
  • 11:52:50 <randomresult> come to heidelberg by train (2hrs) and i will drive you there
  • 11:53:13 <randomresult> would be fun, i tell you. i will organise some real tegernseeer
  • 11:53:34 <danilobuerger> ... next time, when the camp is < 300 km to me
  • 11:54:10 <danilobuerger> but you can stop by augsburg anytime and bring tegernsser
  • 11:54:36 <randomresult> until when do u have time?
  • 11:54:43 <danilobuerger> i always have time
  • 11:54:54 <randomresult> i mean... clock is counting isnt it (to be honnest i dont really remember friday)
  • 11:54:54 <danilobuerger> thats why i am going to eat weißwürste now :-)
  • 11:55:03 <randomresult> hmmm yummy
  • 11:55:05 <drlimbo> danilobuerger:what should i use instead of switch/case viewhelper?
  • 11:55:14 <danilobuerger> cu later :-)
  • 11:55:37 <randomresult> drlimbo what u want to do?
  • 11:56:22 <drlimbo> mh randomresult i also can use some if's instead if this is better
  • 11:56:32 <randomresult> or a controller
  • 11:56:35 <NamelessCoder_> mmmmmm wurst
  • 11:56:40 <randomresult> depends on what u want to do
  • 11:56:49 <randomresult> but better ask @NamelessCoder_
  • 11:56:49 <NamelessCoder_> käsewurst
  • 11:57:03 <drlimbo> SWTICH {menu -> f:count()} -> Case 4 - class="foo" / Case 3 - class="faa" ...
  • 11:57:03 <randomresult> bäh... käsewurst... what the freaking hell is this?
  • 11:57:31 <Akii> it's especially gross if heated up
  • 11:57:37 <mrboe> http://www.metzgerei-einsle.de/images/product_images/info_images/310Kaesewurst.jpg
  • 11:57:38 <NamelessCoder_> randomresult regular wurst with dices of cheddar in it ;)
  • 11:57:52 <NamelessCoder_> best when heated!
  • 11:58:03 <drlimbo> Käsewurst is awesome =P
  • 11:58:16 <randomresult> you need to get some real nürnbergers... thats awesome. best!
  • 11:58:47 <NamelessCoder_> drlimbo why not class="menu-size-{menu -> f:count()}" ?
  • 11:58:47 <drlimbo> is there a way to check in TCA displayCond on what rootline the Page is?
  • 11:58:58 <mrboe> @randomresult its sad that NamelessCoder_ had to tell you about great german käswurst
  • 11:59:11 <drlimbo> i extended pages and i'd like to use displayCond to check the Page-Level -> only Display on PageLevel 2 for example
  • 11:59:36 <mrboe> @drlimbo please no offtopic
  • 11:59:37 <NamelessCoder_> drlimbo consult the official TCA docs about "displayCond" to know that
  • 12:00:12 <drlimbo> NamelessCoder_ because i use the bootstrap classes -> if menu -> f:count() 4 -> col-xs-12 // if menu -> f:count() 3 -> col-xs-9 // ...
  • 12:00:35 <drlimbo> maybe i can calculate menu -> f:count() X 3
  • 12:00:38 <NamelessCoder_> then a mapping array would make sense
  • 12:00:53 <NamelessCoder_> or use modulo viewhelper in a condition
  • 12:01:25 <NamelessCoder_> a mapping array is the faster solution
  • 12:01:43 <drlimbo> oh, how i can use a mapping array? never heard of
  • 12:03:52 <NamelessCoder_> you need a template variable, an array, in which indexes are the menu size and values are the CSS class you want that size to have
  • 12:04:16 <NamelessCoder_> then to read the variable: {v:variable.get(name: 'mappingArrayVariable.{menu -> f:count()}')}
  • 12:04:47 <NamelessCoder_> assign the variable to the template any way you like; from controller or TS
  • 12:05:40 <drlimbo> ah, thats a nice Idea NamelessCoder_
  • 12:05:42 <drlimbo> thanks
  • 12:05:57 <NamelessCoder_> yw
  • 12:07:00 <drlimbo> is it possible to create an array with <v:variable.register.set>
  • 12:07:22 <NamelessCoder_> register is not really intended for that type of usage
  • 12:07:31 <NamelessCoder_> if you want this globally available, use TS
  • 12:08:13 <drlimbo> allright, ill try this way
  • 12:10:46 <drlimbo> but first ill try with an IF
  • 12:11:39 <NamelessCoder_> performance tip: variable reading is MUCH faster than conditions
  • 12:12:41 <drlimbo> good point
  • 12:13:03 <drlimbo> maybe {menu->f:count() x 3 is the fastest and easiest way
  • 12:15:34 <drlimbo> how to solve something like this? <v:variable.set name="test" value="menu->f:count() * 3" />
  • 12:15:49 <drlimbo> is there a calculation viewhelper?
  • 12:17:17 <Akii> there is
  • 12:17:54 <drlimbo> and what its called Akii?
  • 12:17:59 <Akii> you'll find it
  • 12:19:19 <drlimbo> i found some VHS:math viewhelpers
  • 12:19:33 <Akii> afaik it's called multiply
  • 12:20:02 <Akii> {stuff -> f:count() -> vh:math.multiply(b: '3')}
  • 12:20:05 <Akii> or smth similar
  • 12:20:17 <drlimbo> can't find it here: https://fluidtypo3.org/viewhelpers/vhs/master/Math/DivisionViewHelper.html
  • 12:21:05 <Akii> productVH
  • 12:21:09 <Akii> I knew it has a weird nae
  • 12:21:10 <Akii> name
  • 12:21:32 <Akii> {stuff -> f:count() -> vh:math.product(b: '3')}
  • 12:21:49 <Akii> now you made me write it out :(
  • 12:25:28 <NamelessCoder_> confused by math names? ;)
  • 12:26:12 <Akii> yep
  • 12:47:27 <denis-fluid> Is it normal that you can't reference content items in Typo3 6.2 (default setup) ?
  • 12:49:25 <NamelessCoder> denis-fluid yes; the XCLASS that added these has been replaced. The plan is to introduce a clickmenu item in Flux which, at some point, can be replaced by the method that is being planned for TYPO3 itself (one of the focus areas right now is fixing up the backend and allowing more flexibility than currently).
  • 12:50:31 <NamelessCoder> denis-fluid you can still create the references manually. All a "reference" is, is a content element of type "shortcut" (reference to records) which points to the content element record you wish to reference.
  • 12:50:38 <denis-fluid> NamelessCoder: So ist is not possible to create global elements and reference them on some pages? (in Typo3 6.2)
  • 12:50:48 <NamelessCoder> sorry about the removal!
  • 12:51:04 <NamelessCoder> yes, you can create elements in for example a sysfolder and use this "shortcut" element type to reference them
  • 12:51:37 <NamelessCoder> but maybe it would make more sense to add these UIDs as TS settings with constants if the elements are truly global
  • 12:51:59 <NamelessCoder> ...and then render the elements using v:content.render with contentElementUids attribute
  • 12:55:21 <denis-fluid> Just to be sure if I understand it correctly. I have my "global elements" sys folder. In the "global elements" folder I'm creating a "Link shortcut"?
  • 12:57:19 <denis-fluid> NamelessCoder: (and is it correct that the referencing mechanism has been dropped by Typo3 6 alltogether?)
  • 12:58:52 <Xatenev> lold
  • 12:59:10 <crewcut> I have this select field on a page, with the purpose of setting a class for a background css: <flux:field.select items="light,dark,transparent" name="settings.BackGround"/>
  • 12:59:30 <crewcut> and this is getting the field value: class="{settings.BackGround}"
  • 12:59:44 <crewcut> It does fetch the first value, but i cannot change the value - so where does the template get the value from?
  • 13:01:20 <denis-fluid> NamelessCoder: I am not quite sure how to create a content element of type "shortcut".
  • 13:04:39 <denis-fluid> (einfügbar über das GUI, nicht über TS was kein Redakteur pflegen kann)
  • 13:08:30 <denis-fluid> NamelessCoder: Ok got it. :-)
  • 13:14:21 <denis-fluid> NamelessCoder: One more question. I have created some fluid content elements inside my general contents page. When I try to reference the items I'm getting "[No title]" for each element. Is it possible to set the "Header" without being rendered in the frontend?
  • 13:16:12 <NamelessCoder> depends whether you're using CSC or FCC. If CSC you need to modify the TS. If FCC you need to switch to the NoHeader layout from the template.
  • 13:16:48 <denis-fluid> Ok fine.
  • 13:17:45 <denis-fluid> At the moment I am using CSC for simplicity. But I plan to use no standard elements only my custom content elements created as fluidcontent elements.
  • 13:18:29 <denis-fluid> The problem ist that the header gets used everywhere in Typo3 to render information about the content.
  • 13:18:37 <denis-fluid> (in the backend)
  • 13:18:45 <denis-fluid> How stable is the FCC?
  • 13:19:15 <NamelessCoder> beta, with some missing element types
  • 13:19:32 <NamelessCoder> but what you're talking about here is the preview that gets rendered and that, you need a hook to remove the header for.
  • 13:21:40 <denis-fluid> Yeah that's right. (I'm sorry for being a noob just trying to get into Typo3 + Flux/Fluidpages/Fluidcontents which seems to be the first usable templating approach in T3)
  • 13:22:27 <NamelessCoder> being new is no problem, but I have to warn that maybe you're aiming at some pretty complex integrations which aren't ideal in a learning context
  • 13:23:36 <denis-fluid> Well that's true. :-)
  • 13:23:40 <NamelessCoder> the header is an ever popular subject though :) CSC has plenty solutions with TS conditions to check for each element type and render/ignore the header based on fluid content type in FE, but you can't easily remove it from BE.
  • 13:24:23 <NamelessCoder> FCC may not be completely finished but it does make it a lot easier to handle this (but the BE integration is about as complex as with CSC - sadly, no easier ways are possible at this time)
  • 13:24:52 <denis-fluid> Ok fine.
  • 13:25:14 <denis-fluid> Thank you for your help. You helped me a lot.
  • 13:25:19 <NamelessCoder> Flux has a hook that can modify previews, you can copy that. And you can exclude the field itself from editors if they are not admins (which they shouldn't be). That's done by editing the backend group or user and setting a custom "Access list"
  • 13:25:34 <NamelessCoder> yw :)
  • 13:26:34 <denis-fluid> Well excluding it in the BE is nice but it doesn't help with editors setting up global elements and trying to reference them seeing only "No next" for all the global things they setup.
  • 13:26:51 <denis-fluid> (no title)
  • 13:27:05 <crewcut> NamelessCoder - when time permits, could you look into my question above?
  • 13:27:41 <NamelessCoder> yep, true. There's only the preview-hook for that (you could use it to resolve the target element's title and show that, with a "Shortcut to: " in front)
  • 13:28:06 <NamelessCoder> crewcut which time?
  • 13:28:25 <crewcut> 12:59
  • 13:30:00 <denis-fluid> NamelessCoder: Ok great so I understood it correctly. The easiest approach would be to copy the global element and paste it inside the records field. (for editors this is the easiest approach)
  • 13:31:07 <NamelessCoder> crewcut one of three causes: 1) there's old XML data containing the value of a field that is no longer defined in the form. This field won't be cleared or changed. 2) The field value is being inherited from a parent (you don't say if this is a page template, but it if is, this could apply). 3) You have a field of the exact same name in another Flux field on the same table and you're using TYPO3 6.2.3 or below
  • 13:31:49 <NamelessCoder> denis-fluid that creates a copy, iirc. But I'm not sure.
  • 13:31:59 <denis-fluid> Ok I will check.
  • 13:32:50 <crewcut> TYPO3 6.2.5 and all latest fluidtypo3 ext
  • 13:33:24 <NamelessCoder> any change if setting inherit="FALSE" on the field?
  • 13:39:37 <crewcut> This is a page templage, but setting inherit="FALSE" does not make change
  • 13:43:55 <drlimbo> is there an easier, nicer way to do this:
  • 13:43:56 <drlimbo> <v:variable.set name="menucount" value="{menu->f:count()}" />
  • 13:43:56 <drlimbo> <v:variable.set name="cols" value="{v:math.product(a: menucount, fail: 1, b: 3)}" />
  • 13:47:29 <drlimbo> Akii: thanks for your v:math.product help, this works well
  • 13:47:35 <Akii> nice!
  • 13:47:47 <drlimbo> but is there an easier way to do this on one line?
  • 13:47:56 <drlimbo> <v:variable.set name="menucount" value="{menu->f:count()}" /> /// <v:variable.set name="cols" value="{v:math.product(a: menucount, fail: 1, b: 3)}" />
  • 13:48:13 <Akii> I already wrote that down
  • 13:48:14 <drlimbo> value="{v:math.product(a: {menu->f:count()}, fail: 1, b: 3)}" wont work =(
  • 13:48:25 <Akii> {menu -> f:count() -> v:math..
  • 13:49:04 <NamelessCoder> drlimbo mind your inline syntax. ViewHelper nodes must be quoted when used as argument values.
  • 13:49:19 <NamelessCoder> Akii has the right idea
  • 13:51:13 <drlimbo> {menu->f:count() -> v:math.product(b: 3)} - ah, i dont know this syntax before
  • 13:51:31 <drlimbo> this makes a lot of things easier
  • 14:11:41 <Kaimane> Hey guys. On TYPO3 6.2.5 I installed among other needed extensions fluidcontent_core and fluidbootstraptheme in the latest versions. When I create a new fluid CE for example 'modal box' from fluidbootstraptheme there is no wrapping <div> around it. But if I create a content element with ctype text for example a wrapping <div> is around it and a selected container class was rendered. What do I
  • 14:11:41 <Kaimane> wrong?
  • 14:15:32 <NamelessCoder> Kaimane copy the layout file from FCC to your ext or set layoutRootPath for your ext to use FCC's layouts
  • 14:20:04 <drlimbo> how can this line "delete" the already stored value in {cols}
  • 14:20:05 <drlimbo> <v:variable.set name="cols" value="{cols -> v:format.append(add: ' over-left') -> f:if(condition: mainPage.overLeft)}" />
  • 14:20:10 <denis-fluid> NamelessCoder: I have found something like this "options="{useTypoScript: 0, group: 'Grid'…" in the fluidbootstraptheme content elements. Are these options documented somwhere? (When I look at https://fluidtypo3.org/viewhelpers/flux/master/FormViewHelper.html - I can't find it)
  • 14:20:36 <drlimbo> if im right, it will add ' over-left' if there is mainPage.overLeft set
  • 14:20:49 <drlimbo> else it just leave the value in cols
  • 14:22:19 <drlimbo> but this doesn't work - it looks like it clears the value in {cols} and replace with " over-left"
  • 14:23:52 <NamelessCoder> drlimbo not correct. What you have there always overwrites {cols} but the value is empty unless mainPage.overLeft is set
  • 14:24:25 <drlimbo> ah, thats the point =P
  • 14:24:44 <NamelessCoder> use inline chaining the entire way. {cols -> .... -> v:variable.set(name: 'cols') -> v:if(condition: mainPage.overLeft)}
  • 14:26:40 <drlimbo> ah, something like that
  • 14:26:41 <drlimbo> {cols -> v:variable:set(name: 'cols') -> v:format.append(add: ' over-left') -> f:if(condition: mainPage.overLeft)}
  • 14:26:54 <NamelessCoder> denis-fluid no, those options are still undocumented. You can see some of the values possible as constants on the Form class
  • 14:27:04 <NamelessCoder> drlimbo still not right
  • 14:27:09 <drlimbo> i see, yes
  • 14:27:10 <denis-fluid> NamelessCoder: Thank you.
  • 14:27:36 <NamelessCoder> you have to think of these in reverse. Fluid will render the last VH first, then continue towards the front of the chain
  • 14:27:53 <NamelessCoder> putting v:var.set in front of append makes no sense
  • 14:28:42 <drlimbo> so, i need something like {cols -> v:format.append(add: ' over-left') -> v:variable:set(name: 'cols') -> f:if(condition: mainPage.overLeft)}
  • 14:29:00 <drlimbo> if condition is met, set variable cols, append over-left to cols
  • 14:29:18 <drlimbo> maybe i need to switch append & cols
  • 14:30:30 <drlimbo> not realy
  • 14:33:40 <NamelessCoder> drlimbo still thinking about it wrong. v:variable.set SETS a variable in the template variable container, it doesn't ECHO it
  • 14:33:52 <NamelessCoder> since it's not ECHO'ed you cannot append to it this way.
  • 14:34:09 <NamelessCoder> you need to append to the string *before* it reaches v:variable.set
  • 14:34:54 <crewcut> setting inherit="0" did have some change, but why are the value not parsed to the: and this is getting the field value: class="{settings.BackGround}" in the FE?
  • 14:35:15 <NamelessCoder> you could write out the expression using tags then replicate that, in reverse, using inline
  • 14:35:43 <drlimbo> ah NamelessCoder, thats quite complicated
  • 14:35:48 <drlimbo> {v:variable:set(name: 'cols') -> v:format.append(add: ' over-left') -> cols -> f:if(condition: mainPage.overLeft)}
  • 14:36:04 <drlimbo> if Condition - cols -> append over-left -> set as variable cols
  • 14:36:31 <NamelessCoder> crewcut I don't know the answer to your question, sorry
  • 14:36:45 <crewcut> ok
  • 14:37:17 <NamelessCoder> drlimbo now you've tried almost every combination except for the right one :)
  • 14:37:28 <NamelessCoder> read this very carefully:
  • 14:37:36 <drlimbo> sure i do =)
  • 14:37:51 <NamelessCoder> chained viewhelper syntax works because some ViewHelpers allow an argument to be NULL in which case it is taken from $this->renderChildren()
  • 14:37:56 <NamelessCoder> therefore:
  • 14:38:32 <NamelessCoder> <f:format.html>{somevariable}</f:format.html> === {somevariable -> f:format.html()} because f:format.html takes "content" from $this->renderChildren()
  • 14:38:45 <NamelessCoder> now relate this to your condition, variable setting and appending:
  • 14:39:13 <NamelessCoder> because f:if, v:variable.set, v:format.append all allow child tag content, they can be chained.
  • 14:39:51 <NamelessCoder> <f:if ...><v:variable.set ... ><v:format.append add="somestring" subject="{somevar}" /></v:variable.set></f:if>
  • 14:39:53 <NamelessCoder> ===
  • 14:40:31 <NamelessCoder> {somevar -> v:format.prepend(add: 'somestring') -> v:variable.set(name: 'somevar') -> f:if(condition: someothervar)}
  • 14:40:53 <NamelessCoder> making sense now?
  • 14:41:27 <drlimbo> yup, it makes sense
  • 14:41:43 <NamelessCoder> in the 2nd expression: nothing happens unless {someothervar} exists. If it does, {somevar} is appended with "somestring" and told to overwrite the previous value of {somevar}
  • 14:41:57 <NamelessCoder> had you left out the v:variable.set chain segment, the value would instead be output
  • 14:42:16 <NamelessCoder> now no more guessing ;)
  • 14:42:17 <drlimbo> yuap, your point about "it renders the children" was the clue
  • 14:42:29 <drlimbo> i hope so =P
  • 14:42:30 <Xatenev> Need halp!
  • 14:42:30 <Xatenev> :D
  • 14:42:38 <Xatenev> Ive created a checkbox with fluid
  • 14:42:38 <Xatenev> <f:form.checkbox name="ownMoney" value="true" />
  • 14:42:39 <drlimbo> thanks very much NamelessCoder
  • 14:42:53 <Xatenev> Now i wanna know if the checkbox was checked or not
  • 14:42:55 <Xatenev> var_dump($this->request->getArguments());
  • 14:42:59 <Xatenev> doesnt give me the value :(
  • 14:43:42 <NamelessCoder> last support Q for today
  • 14:44:07 <NamelessCoder> Xatenev $this->settings['ownMoney']
  • 14:44:21 <NamelessCoder> it's a setting, not a request argument. Controller arguments are request arguments.
  • 14:44:33 <Xatenev> mhm doesnt work
  • 14:44:34 <Xatenev> NULl
  • 14:44:58 <Xatenev> var_dump($this->settings['ownMoney']); > NULL
  • 14:45:05 <NamelessCoder> from which context?
  • 14:45:31 <Xatenev> oh, i probably have to wrap a form around it right?
  • 14:45:39 <NamelessCoder> eh, yes :)
  • 14:45:42 <Xatenev> arf :p
  • 14:46:20 <Xatenev> never using fluid :p
  • 14:47:37 <Xatenev> is it possible to pass arguments?
  • 14:47:43 <Xatenev> like <f:form.button arguments=""
  • 14:49:24 <NamelessCoder> what would the result be?
  • 14:52:05 <Xatenev> nvm ive solved that by just creating a hidden field now
  • 14:52:09 <Xatenev> but its still null
  • 14:52:27 <NamelessCoder> still missing the context
  • 14:52:35 <Xatenev> what do you exactly mean by context?
  • 14:53:07 <NamelessCoder> I assume this is a controller but which controller and how are you registering it. How is it related to the flux form?
  • 14:53:45 <Xatenev> ah
  • 14:53:48 <Xatenev> its a checkout process
  • 14:53:53 <Xatenev> and you got some checkboxes for payment
  • 14:54:09 <NamelessCoder> so this is frontend?
  • 14:54:10 <Xatenev> then u click the continue button in order to pay the things in ur cart
  • 14:54:18 <Xatenev> half half^^
  • 14:54:25 <Xatenev> I have to pass data to my controller
  • 14:54:26 <NamelessCoder> bah, you really mixed it up here :p
  • 14:54:29 <Xatenev> xd
  • 14:54:33 <NamelessCoder> 1) flux forms and fields are purely BE
  • 14:54:43 <Xatenev> Mmh?
  • 14:54:44 <Xatenev> What do u mean Oo
  • 14:54:49 <NamelessCoder> 2) if you need to pass arguments, you need to add those as controller arguments on the receiving action
  • 14:54:59 <Xatenev> why purely backend?
  • 14:55:03 <Xatenev> so i cant use <f:form> for frontend stuff?
  • 14:55:17 <NamelessCoder> my bad, I read your code example as flux:field.checkbox
  • 14:55:39 <NamelessCoder> okay this is definitely outside the fluidtypo3 scope but I'll give you the hints you need
  • 14:55:56 <Xatenev> why is it outside of the fluidtypo3 scope Oo
  • 14:55:59 <Xatenev> its just fluid > exbtas e.P
  • 14:56:05 <NamelessCoder> yes, you need an f:form and a form field, form must post to the next action
  • 14:56:07 <Xatenev> fluid passing data to extbase :P
  • 14:56:15 <Xatenev> ive done that now
  • 14:56:18 <NamelessCoder> fluidtypo3 = flux, vhs, fluidcontent, fluidpages
  • 14:56:22 <NamelessCoder> your issue = extbase and fluid
  • 14:56:23 <Xatenev> ah k
  • 14:56:33 <Xatenev> well the data is sent now
  • 14:56:40 <NamelessCoder> alright, you submit to the proper action and that action accepts one or more arguments
  • 14:56:41 <Xatenev> i just need the rigfht variable to get it^^
  • 14:56:54 <NamelessCoder> you're still doing it wrong my friend
  • 14:57:08 <Xatenev> Mmh? :P
  • 14:57:20 <NamelessCoder> unless the argument is truly defined on the controller action as a php argument, it only exists in the request and will never be validated or secured with CSRF
  • 14:57:36 <NamelessCoder> public function yourAction($argumentName)
  • 14:57:45 <NamelessCoder> f:form.checkbox name="argumentName"
  • 14:58:02 <Xatenev> got it I think
  • 14:58:16 <NamelessCoder> using $this->request->getArguments returns the raw, unmapped, untreated arguments
  • 14:58:18 <Xatenev> when i wrapped <f:form> around it
  • 14:58:21 <Xatenev> its available on this request getarguments
  • 14:58:25 <Xatenev> yea that seems ok for me
  • 14:58:25 <Xatenev> .p
  • 14:58:31 <NamelessCoder> yeah but that's what you're doing wrong ;)
  • 14:58:39 <NamelessCoder> trust me it is not okay
  • 14:58:52 <NamelessCoder> as soon as you need any sort of validation you'll be off on a tangent if you do this
  • 14:59:14 <NamelessCoder> add it as a proper controller argument and configure f:form to post it correctly, then you'll be safe and prepared for the next requirement that comes up
  • 14:59:21 <Xatenev> Mhm okey
  • 14:59:24 <Xatenev> thanks for ur help :p
  • 14:59:27 <NamelessCoder> yw :)
  • 14:59:36 <Xatenev> I dont like typo3's mvc :[^^
  • 14:59:42 <NamelessCoder> and with that, I withdraw to continue work on the CMIS framework for TYPO3CMS
  • 14:59:45 <Xatenev> Maybe just because im not that familiar with it, dunno
  • 15:00:12 <NamelessCoder> yeah takes some getting used to - the controller class esp., tends to lead you off on bad trails
  • 15:00:19 <Xatenev> Yea quite
  • 15:00:25 <Xatenev> Im using symfony2 at home
  • 15:00:31 <NamelessCoder> you'll figure it out - check some examples if you have to (read: EXT:news)
  • 15:00:34 <Xatenev> and (for me atleast) things seem to be a lot easier
  • 15:00:39 <Xatenev> and development goes a lot faster with it
  • 15:00:40 <Xatenev> ^^
  • 15:00:45 <NamelessCoder> they're quite similar regarding controller actions ;)
  • 15:00:58 <Xatenev> mhm half
  • 15:00:58 <Xatenev> :p
  • 15:01:08 <Xatenev> Not 100% agreeing but yeah
  • 15:01:22 <Xatenev> But its quite a lot easier to pass data all around^^
  • 15:02:26 <NamelessCoder> I'm off - cya guys!
  • 15:02:43 <Xatenev> Bye
  • 15:02:45 <Xatenev> Ty for the help again
  • 15:13:10 <Akii> cya
  • 15:32:45 <Guest|27736> Hi everyone. I spotted a question in the logs that I am also trying to figure out. I want to be able to have a sinlge website with multiple theme type packages but want to restrict each theme to a specfic portion of the site with only the page and content elements for that theme available. Can this be done?
  • 16:39:19 <weiwen> hi all
  • 16:39:31 <weiwen> is this syntax correct ?
  • 16:39:47 <weiwen> <f:if condition="{parent.uid}=={settings.CONSTANTS.pages.proprietaire.uid}">
  • 16:43:38 <Xatenev> Did you try it out?
  • 16:43:40 <Xatenev> xd
  • 16:43:46 <Xatenev> just try it ou
  • 16:43:47 <Xatenev> t
  • 16:47:34 <mrboe> @weiwen ping
  • 16:49:34 <mrboe> <v:variable.set name="myvar" value="{v:variable.typoscript(path: 'plugin.tx_yourext.settings.myvalue')}"/>
  • 16:51:30 <mrboe> oh sorry i was wrong - you want to do something different
  • 19:11:41 <Guest|99236> hi all
  • 19:11:49 <Guest|99236> i have a question about flux:select
  • 19:12:12 <Guest|99236> the "items" attributs says "Items for the selector; array / CSV / Traversable / Query supported"
  • 19:12:42 <Guest|99236> i want to knwo how to do a query in flux conten "configuration" section
  • 19:14:47 <Guest|99236> is someone here?
  • 19:38:54 <rosieres> Guest|99236: extbase builds the queries itself. It depends on what you want to archieve. So explain detailled what you have done so far and what you want to have in the end.
  • 19:48:51 <Guest|99236> i need to get data from a table (created by an extension)
  • 19:49:47 <Guest|99236> and put it in the select
  • 19:50:06 <Guest|99236> this table contains list of name
  • 19:51:13 <Guest|99236> because i cant see an attribut like 'table'
  • 19:51:30 <NamelessCoder> flux:field.relation table="yourtablename"
  • 19:51:48 <Guest|99236> but relation isnt a select box i mean
  • 19:52:17 <Guest|99236> so Query are not supported by select field?
  • 19:53:36 <NamelessCoder> relation is a select field if size=1
  • 19:53:45 <Guest|99236> :) right