IRC logs

20160322

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

IRC log range: 20160322*

20160322

  • 04:49:04 <drlimbo> good morning
  • 04:49:22 <drlimbo> is there a way to disable "quick edit" in backend page?
  • 04:50:37 <cweiske> yes
  • 04:50:59 <cweiske> $ cat Configuration/PageTSConfig/backend.ts
  • 04:50:59 <cweiske> # Disable the "QuickEdit" mode in Web > Page module
  • 04:50:59 <cweiske> # Otherwise all center managers will have it as default
  • 04:50:59 <cweiske> mod.web_layout.menu.function {
  • 04:50:59 <cweiske> 0 = 0
  • 04:51:00 <cweiske> }
  • 05:00:07 <drlimbo> oh, thanks!!
  • 05:49:22 <Guest|33808> Hi guys, I have to limit the number of input characters in a flux:field.text
  • 05:49:22 <Guest|33808> Any idea how this could be done?
  • 05:49:44 <drlimbo> isn't there a size or something Guest|33808?
  • 05:50:10 <Guest|33808> no, we have maxCharacters only in flux:field.input
  • 05:50:39 <drlimbo> ah, thats input
  • 05:51:14 <Guest|33808> I'm not allowed to use JavaScript there...
  • 05:51:35 <drlimbo> maybe there's a hack with <f:format.crop or something
  • 05:51:41 <cweiske> I don't think it's possible
  • 05:51:59 <cweiske> since you don't want to limit the characters used in total, but the characters in words
  • 05:52:02 <cweiske> excluding the html tags
  • 05:52:12 <cweiske> which requires a bit more effort
  • 05:52:22 <cweiske> at least I haven't seen such a limit yet
  • 05:52:22 <Guest|33808> I need in total
  • 05:52:39 <Guest|33808> it's a simple textarea field, without RTE
  • 05:55:04 <Guest|33808> no html tags, just a plain text and the total length should not exceed 260 characters
  • 05:55:39 <drlimbo> cweiske: do i need to load the backend.ts somewhere? (to disable "quick edit")
  • 05:55:46 <cweiske> yure
  • 05:55:46 <cweiske> sure
  • 05:55:59 <cweiske> PageTS section of the root page is best
  • 05:56:08 <cweiske> or rather your domain page
  • 05:56:16 <cweiske> which is 1 level below root
  • 05:56:36 <drlimbo> mh, i have multiple pages with multiple domains, is there a way to load this automatically for all pages?
  • 05:57:11 <drlimbo> its a multi-domain website with around 50 websites in typo3, and i don't like to include this on every page
  • 05:57:21 <cweiske> since there is no page record for id=0, no
  • 05:58:20 <drlimbo> allright, so theres no other way =P
  • 05:58:24 <drlimbo> thankyou cweiske
  • 05:58:40 <cweiske> https://docs.typo3.org/typo3cms/TSconfigReference/PageTsconfig/Field/Index.html
  • 05:59:02 <cweiske> drlimbo, Setting default Page TSconfig
  • 05:59:05 <cweiske> that section might help you
  • 06:01:57 <Guest|33808> why it's not possible to use javascript in BE - <f:section name="Configuration"> ?
  • 06:02:21 <drlimbo> Register static Page TSconfig files¶
  • 06:02:21 <drlimbo> Register static Page TSconfig files¶
  • 06:02:21 <drlimbo> Register static Page TSconfig files¶
  • 06:02:21 <drlimbo> Register static Page TSconfig files sounds intresting cweiske
  • 06:02:26 <drlimbo> damn, sorry
  • 06:02:36 <cweiske> drlimbo, you'll still have to select it then
  • 06:02:44 <cweiske> which you don't want on every of your 50 domain pages :)
  • 06:02:52 <cweiske> so the default pagetsconfig is better suited for you
  • 06:02:55 <drlimbo> ah, so a default with an include would make more sense
  • 06:25:12 <cweiske> http://fotos.cweiske.de/screenshots/2016-03-22%20Auswahl_002.png
  • 06:25:28 <cweiske> that's the "register static page tsconfig files" variant
  • 06:26:39 <drlimbo> ah, but this looks nice =)
  • 07:25:27 <saschaschmidt> hi
  • 07:25:52 <saschaschmidt> is there a flux version that already works on typo3 8?
  • 07:26:04 <saschaschmidt> (or at least works somehow)
  • 07:26:31 <saschaschmidt> I'd just like to create some grid content elements
  • 07:31:29 <NamelessCoder> yes, git branch development
  • 09:16:56 <drlimbo> is there a way to get flux:field Values from another Page with PageUid? i tried with v:page.info and i can see the data stored as xml, but is there a nicer way?
  • 09:17:19 <drlimbo> cweiske: we already talked about Page- and Subpage-Settings and inheritance
  • 09:18:12 <cweiske> no. we resorted to "normal" table extensions via ext_tables.sql and TCA
  • 09:18:30 <cweiske> that's easier than manually parsing the settings XML for each page
  • 09:18:56 <drlimbo> allright
  • 09:19:21 <drlimbo> just found a "solution" here what seems to work: http://stackoverflow.com/questions/28942701/access-tx-fed-page-flexform-in-fluidtemplate
  • 09:20:00 <cweiske> ok
  • 09:20:01 <drlimbo> is it possible to inherit the "normal" table extension fields?
  • 09:20:08 <cweiske> no
  • 09:20:30 <cweiske> inheriting means looking up the tree until there is something in the field
  • 09:21:24 <drlimbo> yes, but i dont need a real inheriting, a "look on the root-page" for the settings
  • 09:21:54 <drlimbo> now i use v:page.rootline and use the 0 value from the array what is the root-page of the current page
  • 09:22:32 <drlimbo> i'd like to use some Settings (like Template-Color, Footer Copyright etc.) for every Root-Pages stored in the Page-Settings so the user can change them easily
  • 09:31:12 <drlimbo> is there a way to show flux:field's on a special "Tab" of the Page-Settings instead of "Page Configuration"?
  • 09:32:34 <cweiske> you could change the table's TCA configuration, yes
  • 09:32:59 <cweiske> especially the "types" section
  • 09:33:26 <drlimbo> i just thought about standard flux:form fields, i'd like to show on multiple tabs
  • 09:33:40 <drlimbo> and not "extension fields" who extend pages table
  • 09:34:17 <drlimbo> the flux:form wizardTab looks like that but is deprecated -> options="{group: 'GroupName'}
  • 09:34:21 <NamelessCoder> drlimbo it's time to make custom form components that retrieve options/values in the ways you need
  • 09:34:46 <drlimbo> it looks like NamelessCoder =P
  • 09:35:14 <drlimbo> so, for this im extending the pages table with my own fields, right?
  • 09:35:20 <NamelessCoder> or use TS to create your component, whatever floats your boat
  • 09:35:25 <drlimbo> and i can use this values in Fluid Templates after?
  • 09:35:59 <NamelessCoder> you can put it in the pages table and make TCA (outside scope of Flux and FluidTYPO3)
  • 09:36:23 <NamelessCoder> or you can make custom Flux components or create factory ones using TS arrays which you can then put wherever you want them
  • 09:37:41 <drlimbo> mhh, looks like i have to do it like that =)
  • 09:41:22 <NamelessCoder> if you want to investigate that: modify(array $structure) on abstract form component (overridden in subclasses) accepts an array of such TS settings and allows you to create new components or override properties of existing ones (properties like "items" on selects)
  • 09:41:50 <NamelessCoder> defining something in plugin.tx_flux.forms.$formId.* lets you manipulate that
  • 09:42:21 <drlimbo> thanks NamelessCoder, i'll have a look at that
  • 10:14:52 <drlimbo> is it possible that flux:form.sheet doesn't work with Typo3 7.6.4?
  • 10:15:21 <drlimbo> after saving i get an error PHP Warning: Illegal string offset ..../typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexProcess.php line 466
  • 10:20:24 <NamelessCoder> should work, haven't checked with that version personally
  • 10:21:02 <drlimbo> i added a basix flux:form with a sheet
  • 10:21:18 <drlimbo> at first load, it looks nice but after saving, i get a php warning
  • 10:21:37 <drlimbo> then i have to clear tx_fed_page_flexform field for this page, and it works again
  • 10:22:00 <NamelessCoder> and keeps working after that?
  • 10:22:58 <drlimbo> nope, crashes again
  • 10:23:17 <drlimbo> im try'n to debug that
  • 10:23:37 <NamelessCoder> not sure what it is then, but I suspect FormEngine. Wouldn't be the first time it changes and makes us suffer :)
  • 10:24:01 <drlimbo> ah, with ONE flux:form.sheet it works well
  • 10:24:12 <drlimbo> but if I add another sheet, it crashes after saving
  • 10:27:12 <drlimbo> the xml looks good NamelessCoder: http://nopaste.euirc.net/index.php?id=a86d3fb3e5
  • 10:27:25 <drlimbo> PHP Warning: Illegal string offset 'headerSlogan' is a bit weird
  • 10:28:48 <drlimbo> if i remove the Fields, i get the Error: PHP Warning: Invalid argument supplied for foreach() in.../typo3/sysext/backend/Classes/Form/FormDataProvider/EvaluateDisplayConditions.php line 171
  • 10:28:56 <drlimbo> so something with parsing the XML looks wrong
  • 10:45:18 <drlimbo> is there a way to manage multiple links (like a link-list) in a Flux Form?
  • 10:45:32 <drlimbo> (without using sections)