IRC logs

20140918

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

IRC log range: 20140918*

20140918

  • 00:05:19 <irnnr> that's not quite what I'm looking for
  • 00:05:44 <irnnr> I have an installation with two sites
  • 00:06:04 <irnnr> one site (tree) is using regular backend layouts
  • 00:06:25 <irnnr> now I added another site which is supposed to use fluidpages
  • 00:07:04 <irnnr> I did not notice/had forgotten until now that fluidpages had taken over the whole installation
  • 00:21:45 <xaver> who does a multitee installation
  • 00:22:04 <xaver> the horror
  • 00:22:07 <irnnr> ??
  • 00:22:21 <irnnr> what are you talking about?
  • 00:22:32 <irnnr> There's nothing wrong with multi tree!
  • 00:22:44 <xaver> if oyu need to update a big extension and only one site gets the budget
  • 00:22:55 <irnnr> mind you, I never talked about multi language
  • 00:23:23 <irnnr> ... wrong clients
  • 00:23:33 <xaver> also db size increases
  • 00:23:34 <irnnr> either way it does not matter.
  • 00:23:37 <xaver> slower site
  • 00:23:52 <irnnr> who care for DB size at the size of a TYPO3 installation?
  • 00:24:12 <irnnr> slower speed? nonesense
  • 00:24:19 <xaver> ofcourse
  • 00:24:29 <xaver> you need to load lager tables
  • 00:24:30 <irnnr> whatever you want to believe
  • 07:00:12 <rosieres> Anyone in? -> <f:for each="{newsItem.categories}" as="category" iteration="key"><f:if condition="{category.parentcategory.uid} == 57"><span class="seminarcattitle {key.index}"> {category.title}{f:if(condition: key.isLast, then: ' Last')}{f:if(condition: key.isFirst, then: ' First')} </span> </f:if></f:for> first works - last not
  • 07:00:15 <rosieres> why?
  • 09:12:04 <bjo3rn> rosieres?
  • 09:12:46 <bjo3rn> I guess the last category's parentcategory.uid is not 57 ;)
  • 09:43:42 <Mister^Mo> Hi! After upgrade extension vhs to the latest version I get the following error :Fatal error: Class 'Tx_Vhs_ViewHelpers_Page_HeaderViewHelper' not found in /srv/www/mainPage/typo3_src-6.2.4/typo3/sysext/core/Classes/Utility/GeneralUtility.php
  • 10:23:37 <bjo3rn> Mister^Mo you need to update the namespace declaration in your template.
  • 10:24:49 <soee> bjo3rn: he already did, though he has this error:
  • 10:24:50 <soee> [10:09] <Mister^Mo> soee: Works much better now. But I have now a problem with my menu. It brings me the error: No value found for key "\FluidTYPO3\Vhs\ViewHelpers\Page\Menu\AbstractMenuViewHelper->variables" That's my code for the menu: http://pastebin.com/cEsfLYEy
  • 10:26:01 <bjo3rn> hm. cleared all caches?
  • 10:27:44 <Mister^Mo> yes, I have cleared all caches
  • 10:28:20 <bjo3rn> ok, mind removing the v:page.menu.sub temporarily? should be the cause.
  • 10:28:27 <bjo3rn> *
  • 10:28:32 <bjo3rn> *could
  • 10:29:09 <bjo3rn> ah, got it. it's a bug.
  • 10:29:26 <bjo3rn> the key mustn't have a leading backslash :S
  • 10:29:38 <bjo3rn> bugfix PR on the way
  • 10:40:08 <Mister^Mo> Thank you very much for your fast work! Works fine and all updates are successfull done :)
  • 11:12:23 <erredeco> Hi there, a question about rendering of FAL resources on an extension developed by one colleague
  • 11:12:42 <erredeco> let's say we have a table called "tx_congressintesi_domain_model_congresso"
  • 11:12:59 <erredeco> with a field called "imgLarga"
  • 11:13:09 <erredeco> which is a FAL field
  • 11:13:22 <erredeco> I'd like to view the image :)
  • 11:13:55 <erredeco> using {congresso.imgLarga}
  • 11:14:20 <erredeco> the output is TYPO3\CMS\Extbase\Domain\Model\FileReference:10
  • 11:14:45 <erredeco> and then..?
  • 11:15:01 <erredeco> I don't know exactly how to continue :=
  • 11:15:05 <erredeco> :)
  • 11:15:16 <erredeco> I see that <v:resource.image identifier="10" alt="" title="" treatIdAsUid="0" treatIdAsReference="1" /> prints the image
  • 11:15:47 <erredeco> I don't know how to merge the two things
  • 11:22:48 <TorstenFink> Hello
  • 11:23:44 <TorstenFink> i get an error "1: [newlog()] Localization failed; There already was a localization for this language of the record!" if i translate an FCE with an "<flux:field.inline.fal name="productimage" minItems="1" />", i use the staging versions of flux and fluidcontent from today and typo3 6.2.4
  • 11:23:49 <TorstenFink> any ideas how to fix it?
  • 11:36:08 <erredeco> :S
  • 11:43:00 <TorstenFink> ok i think i found it
  • 11:43:13 <TorstenFink> images in sys_file_reference are with sys_language_uid -1
  • 11:43:14 <TorstenFink> ...
  • 11:49:00 <erredeco> I tried with:
  • 11:49:01 <erredeco> <v:variable.set name="falImage" value="{v:resource.record.fal(field: 'imgLarga', table: 'tx_congressintesi_domain_model_congresso')
  • 11:49:01 <erredeco> -> v:iterator.extract(key: 'id')
  • 11:49:01 <erredeco> -> v:iterator.first()}"/>
  • 11:49:21 <erredeco> but {falImage} seems empty :( :(
  • 11:52:01 <TorstenFink> maybe uid instead of id?
  • 11:55:25 <erredeco> @TorstenFink: umm no :(
  • 11:55:34 <erredeco> no way
  • 12:01:59 <BenjaminR> @TorstenFink: +
  • 12:03:39 <TorstenFink> +?
  • 12:10:26 <TorstenFink> anyone knows why translating an FCE works for this http://pastebin.com/gvzf89jg
  • 12:10:32 <TorstenFink> but not for this http://pastebin.com/8gmSdchG
  • 12:10:41 <TorstenFink> there is no error message in be
  • 12:12:49 <TorstenFink> i mean the copy of the images ...
  • 12:16:57 <erredeco> @TorstenFink: sorry? I don't understand
  • 12:17:59 <TorstenFink> i created 2 FCE with flux and fluidcontent
  • 12:18:07 <TorstenFink> for the first one if i translate it
  • 12:18:13 <TorstenFink> the image reference is copied
  • 12:18:19 <TorstenFink> for the second it isnt
  • 12:20:12 <TorstenFink> you know what i mean?
  • 12:32:21 <erredeco> :S
  • 12:37:25 <NamelessCoder> erredeco is your database field actually named "imgLarga", casing and spelling included?
  • 12:38:10 <NamelessCoder> and is that field a proper FAL relation field declared in TCA?
  • 12:39:33 <NamelessCoder> erredeco nevermind; you're missing the "uid" or "record" argument for v:resource.record.fal. It doesn't know *which* record you want. Use either one of those arguments, but not both together. When using "record" of course the argument should be the record from *your* table.
  • 12:39:50 <erredeco> I'll check it
  • 12:39:55 <erredeco> thanks
  • 12:41:23 <NamelessCoder> thank me if I'm right ;)
  • 12:41:59 <erredeco> ok, field name was actually wrong
  • 12:42:24 <erredeco> I still don't understand what the argument "record" or "uid" should be
  • 12:42:30 <NamelessCoder> but the record/uid thing is also relevant
  • 12:42:43 <erredeco> uid should be the uid of the content element I'm using
  • 12:42:45 <NamelessCoder> if UID it must be the integer UID of the record from the table you specify
  • 12:46:43 <erredeco> so UID if I want to specify a single uid like 10, 20, 50 etc
  • 12:46:59 <erredeco> the UID of a specific record on the table
  • 12:54:09 <erredeco> still don't get what "record" is :S
  • 13:03:12 <NamelessCoder> you can use {record} if you already have the record that would otherwise be loaded based on table+uid. So you use either table+field+uid OR you use table+field+record. The latter is more efficient if for example you are already iterating an array of records from that table - because you save an SQL query per usage.
  • 13:03:56 <NamelessCoder> table+field is always required because TCA is required and field must be known because that's where the value is either stored, or that's the field used in the m:n relation.
  • 13:05:53 <NamelessCoder> https://github.com/FluidTYPO3/vhs/blob/development/Classes/ViewHelpers/Resource/Record/AbstractRecordResourceViewHelper.php#L169
  • 13:07:07 <erredeco> I don't know what the "record" name is :S... the only example I find online are about record=page on pages table
  • 13:07:41 <erredeco> I hav an iteration because in my template I have
  • 13:07:42 <erredeco> <f:for each="{congressi}" as="congresso">
  • 13:07:43 <erredeco> <div class="event-list-holder">
  • 13:07:43 <erredeco> <f:render partial="Congresso" arguments="{_all}" />
  • 13:07:43 <erredeco> </div>
  • 13:07:43 <erredeco>
  • 13:07:43 <erredeco> </f:for>
  • 13:08:30 <erredeco> so in the partial Congresso I have the single object "{congresso.something}" to get the field values
  • 13:12:33 <NamelessCoder> but is {congresso} an object or an array? An array is required.
  • 13:12:59 <erredeco> i think {congresso} is an array
  • 13:13:43 <NamelessCoder> then do not use the uid, instead use table+field+record arguments and set record argument to {congresso}
  • 13:14:10 <erredeco> let me try...
  • 13:14:18 <erredeco> <v:variable.set name="falImage" value="{v:resource.record.fal(record:congresso, field:'img_larga', table:'tx_congressintesi_domain_model_congresso')
  • 13:14:18 <erredeco> -> v:iterator.extract(key: 'id')
  • 13:14:18 <erredeco> -> v:iterator.first()}"/>
  • 13:15:00 <erredeco> sorry I was wrong
  • 13:15:08 <erredeco> congresso is an object not an array
  • 13:15:16 <erredeco> the result is an error
  • 13:15:17 <erredeco> The argument "record" was registered with type "array", but is of type "object" in view helper "FluidTYPO3\Vhs\ViewHelpers\Resource\Record\FalViewHelper"
  • 13:18:06 <NamelessCoder> you could convert it but it is actually more efficient to just pass the UID then
  • 13:18:27 <NamelessCoder> a single, fully indexed query takes no time at all
  • 13:57:15 <TorstenFink> hi, field.inline.fal image translation only works if the name is "image" anyone has an idea to this?
  • 14:02:27 <TorstenFink> someone has a fce where the field.inline.fal name is not image ?
  • 14:14:38 <erredeco> @namelessCoder: as my congresso record has uid=1
  • 14:14:41 <erredeco> I tried with
  • 14:14:42 <erredeco> <v:variable.set name="falImage" value="{v:resource.record.fal(uid:1, field:'img_larga', table:'tx_congressintesi_domain_model_congresso')
  • 14:14:42 <erredeco> -> v:iterator.extract(key: 'id')
  • 14:14:42 <erredeco> -> v:iterator.first()}"/>
  • 14:15:14 <erredeco> the result of printing: {falImage} is "array"
  • 14:17:19 <TorstenFink> its alway an array
  • 14:17:37 <TorstenFink> no mather if its only one or multiple images
  • 14:18:07 <TorstenFink> <v:resource.image identifier="{graphimageReference.0.uid}" />
  • 14:18:09 <TorstenFink> so i do it
  • 14:18:30 <TorstenFink> + treatIdAsReference="1"
  • 14:19:46 <erredeco> better: <f:debug>{v:resource.record.fal(uid: 1, field: 'img_larga', table: 'tx_congressintesi_domain_model_congresso')}</f:debug>
  • 14:20:14 <erredeco> result is array(empty)
  • 14:22:15 <cedricziel> isnt that a lazy field which you have to iterate on first?
  • 14:22:36 <cedricziel> *ducks and runs*
  • 14:22:47 * cedricziel hates the fal VH stuff
  • 14:25:03 <erredeco> :S
  • 14:30:14 <erredeco> still don't get it :(
  • 14:31:47 <erredeco> where am I wrong???
  • 14:50:44 <TorstenFink> anyone has an idea why translating a fce with an inline.fal image doesnt working if the name is e.g. "foobar" but if the name is "image" it works?
  • 14:50:48 <TorstenFink> i have no idea :/
  • 16:15:33 <RVVN> Hey, I'm trying to use flux to create a startingpoint field, anyone able to help me ?
  • 16:16:13 <RVVN> I tried field.inline / field.resource without success
  • 16:20:34 <NamelessCoder> field.select(table: 'pages', where: 'doktype = 255') etc.
  • 16:21:08 <NamelessCoder> it won't work as Extbase plugin storage folder though, for that you need to use the actual TCA property on tt_content itself
  • 16:30:08 <RVVN> Thanks, i try the select :)
  • 17:30:31 <Guest|63589> hello everybody.. i have 2 fluid pages --> how i can change the pagelayout (seitenlayout) order in the backend ???
  • 17:31:44 <Guest|63589> this is the code: <flux:form id="foo" label="TYP1: Startseite"> it exist a option to say this is the first layout?
  • 17:42:12 <Guest|63589> somebody can help?