IRC logs

20140303

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

IRC log range: 20140303*

20140303

  • 08:32:25 <anhadikal> hi all
  • 09:47:04 <randomresult> hi there
  • 09:47:20 <randomresult> someone around working with languages and fluidcontent?
  • 09:51:20 <anhadikal> should work :D
  • 09:56:05 <randomresult> anhadikal: u mean me?
  • 09:56:14 <randomresult> well it does with some elements
  • 09:56:22 <randomresult> thats spooky
  • 09:56:48 <anhadikal> randomresult: why, what is the problem?
  • 09:56:57 <randomresult> but to be honest, i only worked with languages and TV - and this was pretty long ago
  • 09:57:35 <randomresult> for example, i dont get the edit-symbols for some elements when viewing both languages in backend
  • 09:57:48 <randomresult> and my configuration is pretty small.
  • 09:57:53 <randomresult> wait, i paste it
  • 09:59:31 <randomresult> http://pastebin.com/A2gjRV8R
  • 09:59:44 <randomresult> this is my configuration. and i added a language
  • 09:59:53 <randomresult> (rootpage --> list)
  • 10:01:08 <randomresult> is there any example for working with languages in TYPO3 with Fluid and Fedext?
  • 10:01:14 <anhadikal> uff ... if you have gridelements installed, it cause some issues
  • 10:02:53 <randomresult> no i dont
  • 10:03:11 <randomresult> well only elements inside a container can be edited in "language" mode
  • 10:03:38 <randomresult> all directly in the page-container can not be edited
  • 10:04:07 <randomresult> when switching back to the "normal" editing mode, i can do everything
  • 10:05:06 <randomresult> and when copying the default content... typo3 does not copy everything... only containers.
  • 11:24:59 <xaver> hi
  • 11:29:27 <tpinne> "morning" everybody
  • 11:31:12 <anhadikal> hi
  • 11:32:32 <randomresult> hi
  • 12:08:04 <ndee> what's the easiest way to get a GET-var in a fluid template? I thought there was something with vhs but I can't remember :/
  • 12:11:14 <anhadikal> look an the viewhelper reference ...
  • 12:11:43 <ndee> anhadikal I did but searching for "get" isn't as easy since that word is used often
  • 12:13:40 <NamelessCoder> ndee for protection you'll need a controller for that
  • 12:13:46 <NamelessCoder> and hi :)
  • 12:13:58 <ndee> hey Claus :)
  • 12:14:45 <anhadikal> ndee or use TS and render that with fluid ^^
  • 12:14:46 <ndee> actually I should do it with typoscript but I think I will never get the syntax :D
  • 12:15:23 <ndee> I need to link to a page with the same params but just a different page Id, and that page-id, I need to find through a SQL from the tt_news table.
  • 12:17:43 <NamelessCoder> hmmm
  • 12:17:46 <NamelessCoder> you sure about that?
  • 12:18:16 <NamelessCoder> if you link to an Extbase plugin it shoud be capable of detecting a proper pid for the target link, or you can set the plugin.tx_yourext.view.defaultPid (iirc) variable
  • 12:18:58 <NamelessCoder> do you have multiple destination pids?
  • 14:10:30 <anhadikal> hmm why rendering fluidcontent in CONTENT cObj not works? I mean not even header is rendered
  • 14:11:28 <anhadikal> the generated SQL query works well in phpmyadmin. Looks like the CType fluidcontent_content is igronred/filtered/droped?
  • 14:14:12 <cedricziel> q for NamelessCoder
  • 14:14:23 <anhadikal> TS: https://gist.github.com/denyskoch/9324640 rendering to page.10 works but rendering in a template (formhandler or fluidpage with f:cObject) dont works (empty result)
  • 14:15:21 <NamelessCoder> anhadikal also using fluidcontent_core and not using css_styled_content? If so: remembered AdditionalConfiguration.php?
  • 14:15:51 <anhadikal> I am using css_styled_content
  • 14:16:14 <anhadikal> but I provide renderObj so it should(?) bypass css_styled_content
  • 14:16:55 <anhadikal> @NamelessCoder
  • 14:17:04 <xaver> NamelessCoder: do you use xhprof?
  • 14:18:13 <NamelessCoder> anhadikal interesting COA btw. But I think you need RECORDS, not CONTENT, in order to succeed here
  • 14:18:13 <anhadikal> wow, disabling css_styled_content gives the right output, but the rest is now not working :D
  • 14:18:22 <NamelessCoder> xaver yes I do
  • 14:18:35 <NamelessCoder> css_styled_suckiness
  • 14:20:19 <anhadikal> NamelessCoder: but with RECORDS I cannot solve this: Want to render all content element headers from a fluidcontent container.
  • 14:21:48 <NamelessCoder> stand back, I know fluid:
  • 14:22:30 <NamelessCoder> {flux:content.get(column: 'bla') -> v:iterator.extract(key: 'uid') -> v:var.set(name: 'contentUids')}
  • 14:22:46 <NamelessCoder> {flux:content.get(column: 'bla') -> v:iterator.extract(key: 'header') -> v:var.set(name: 'contentHeaders')}
  • 14:23:14 <anhadikal> NamelessCoder: I need this as a marker for formhandler
  • 14:23:17 <NamelessCoder> <f:for each="{contentUids}" as="contentUid" key="index"> ... {v:var.get(name: 'contentHeaders.{index}')} </f:for>
  • 14:23:25 <NamelessCoder> ach, come on
  • 14:23:33 <NamelessCoder> why do you have to be difficult? :p
  • 14:24:06 <anhadikal> hahaha ;)
  • 14:24:32 <NamelessCoder> hnmmmm
  • 14:24:46 <NamelessCoder> does it have to be HTML? No way to fx make a TCEforms array work?
  • 14:25:06 <NamelessCoder> because such an array is really just a select query result with only two rows, done not-assoc
  • 14:25:15 <NamelessCoder> sry, not two rows but two columns ofc
  • 14:26:06 <anhadikal> dont know how TCEforms work
  • 14:27:59 <NamelessCoder> and I don't know how that piece of TS is supposed to work in CONTENT mode with css_styled_content installed because it does look like it is changing something in CONTENT rendering.
  • 14:29:03 <NamelessCoder> not to just point somewhere else but you may actually have better luck in #typo3 asking about the TS+CONTENT thing - afaik, the query is arbitrary and the CType should have no effect on the *selection* of content - purely the *rendering*. But CSC may disagree with me there.
  • 14:30:10 <anhadikal> okey, thx
  • 14:30:33 <xaver> css_styled_suckiness - Why? You can sell a lot of ours, if the customer want's something special :P
  • 14:35:26 <NamelessCoder> hehe
  • 14:36:06 <NamelessCoder> well, the fact that it is responsible for 90% of TS on sites where it is used, and ships with 4,000 legacy versions of TS, is pretty bad.
  • 14:36:49 <NamelessCoder> my sites are extremely happy to dump it. I went from average 130ms response time from cached pages, down to ~65-70 with fluidcontent_core
  • 14:37:03 <NamelessCoder> and my TS is now 300 lines, not 3600
  • 14:37:25 <anhadikal> is fluidcontent_core already done?
  • 14:39:07 <NamelessCoder> the elements I use are ;)
  • 14:39:14 <anhadikal> ahahah
  • 14:39:17 <NamelessCoder> but I could use a hand with the templates
  • 14:40:49 <anhadikal> yeah, but out customers expect that if they use textpic and set the images to be right, that it will be right and fluidcore is not at this point atm
  • 14:46:22 <xaver> NamelessCoder: i will try it sometimes. right now has my page without varnish or stuff ~75ms on a normal click
  • 14:47:02 <NamelessCoder> xaver sounds pretty good
  • 14:47:17 <xaver> yeah good server :)
  • 14:47:19 <anhadikal> xaver: what setup/host do you use? this are impressive results
  • 14:47:28 <NamelessCoder> I get to that level without any opcaching/varnish, then to ~50ms with
  • 14:47:48 <xaver> i use opcache an php 5.4
  • 14:47:58 <xaver> 5.4 because of a issue with another software and 5.5
  • 14:48:38 <xaver> host is a xeon intel with WD raid edition HDD
  • 14:49:26 <anhadikal> nice nice :)
  • 14:49:34 <xaver> php cache/opcache is not very agressive - it loads always new files
  • 14:49:39 <anhadikal> dont ever know typo3 can run so fast
  • 14:50:03 <xaver> i clean up apache2 a lot and mysql caches are optimized
  • 14:51:00 <xaver> anhadikal: most important, install only what you need. Remove useless modules. E.g. i could remove workspaces because i don't use them anymore
  • 14:53:07 <xaver> i use index_search its also "bad", you render a site and insert it into the database. (its fast, but all the tiny peaces added into the loading time)
  • 14:58:29 <cedricziel> what about the "place typo3temp/Cache" in mount to tmpfs in ramdisk guys?
  • 14:59:44 <cedricziel> are they right?
  • 15:00:08 <xaver> cedricziel: tried it, but the effekt was not so impressive
  • 15:00:37 <xaver> also a reboot deletes everything
  • 15:00:54 <cedricziel> whis is not the worst
  • 15:01:08 <cedricziel> one can afford a class cache rebuild on reboot
  • 15:01:13 <cedricziel> cya guys
  • 15:01:22 <NamelessCoder> cedricziel minor impact, that one. File system caches will handle almost all of that
  • 15:01:36 <xaver> also php cahes caches php
  • 15:01:57 <NamelessCoder> the thing is, those files are not written again unless removed. When read once, they're cached. When written, they're cached. So all in all... near-zero effect expected
  • 15:01:58 <xaver> rest is static - give the ram to mysql and you will see more improvment
  • 15:02:09 <NamelessCoder> yup what xaver said :)
  • 15:02:18 <NamelessCoder> feed the mysql beast and your server will be much happier
  • 15:02:33 <NamelessCoder> plenty ramz0rs and go
  • 15:10:37 <xaver> mysql depends a lot on system and hardware
  • 15:10:48 <xaver> and software
  • 15:15:58 * xaver vs varnish 0:1
  • 15:16:09 <NamelessCoder> ouch
  • 15:16:20 <xaver> customer updates from v2 to v3
  • 15:16:42 <xaver> and (squeeze to wheezy) wants big changes and its a magento + typo3 combindation
  • 15:17:31 <xaver> also he complaints css js img are not cached by varnish Oo
  • 15:17:48 <xaver> right know vanrish wents insane by second call in a row
  • 15:40:14 <anhadikal> I have a page with different location and a set of contact persons. the persons should be able to be assigned to one category, but the category is different on other location. how to solve this the right way? contacts has a name, image and email
  • 15:42:13 <anhadikal> tt_address? fluidcontent, own extension?
  • 15:52:11 * xaver vs varnish 1:1
  • 16:37:43 <anhadikal> is there a modern variant of tt_address
  • 16:37:44 <anhadikal> ?
  • 16:44:18 <xaver> anhadikal: the question is - what you want to change - its a DB and other exts use it. Also you have a interface for it with colums. Its no FE plugin
  • 16:45:16 <anhadikal> I need to use it in other extensions and I need to display it in FE/Fluidtemplate with simple filtering option
  • 16:46:15 <xaver> that has nwearly no relation with tt_adresss
  • 16:46:31 <xaver> If you use a extbase ext, you will have also db fields
  • 16:46:46 <anhadikal> hmm, and what would you sugest/advise?
  • 16:48:06 <xaver> List users, maybe you can supply that informations via TS and use viewhelpers or create a small ext or maybe something in repo.
  • 16:48:41 <xaver> no exp in listing multiple users (and sort them)
  • 16:50:00 <anhadikal> arg, hard dessision :D
  • 16:56:44 <anhadikal> i also need vcf support
  • 17:51:15 <Guest|19843> hi - how can I make css assets to put direct path instead path to typo3temp file ?
  • 17:52:06 <Guest|19843> I am changeing css file locally for testing and each time I need to clear cache so the new css file is generated into typo3temp. This is huge lost of dev time.
  • 17:52:37 <Guest|19843> I can not find any switch for that unfortunatly.
  • 17:55:39 <NamelessCoder> Guest|19843 if included via VHS assets all you need is to be logged into BE while testing in frontend, the asset files will then be rewritten always
  • 17:56:16 <NamelessCoder> if you included them using page.includeCSS etc. you can in install tool set it to append the timestamp to filenames which will prevent caching
  • 17:57:39 <Guest|93698> Is there a tutorial to build Templates width fedext.net (flux)? I realy like it and know the Dokumentation under: https://fedext.net/viewhelpers/flux/6.0.1.html, but there ist no explanation how to nest the elements.
  • 17:58:19 <Guest|19843> @NamelessCoder - I include them by VHS assets and I am logged to BE. But I need to clear the chace all the time.
  • 17:59:06 <Guest|19843> @NamelessCoder with page.includeCSS its good becase it adds timestamp so F5 will reload css file.
  • 17:59:21 <NamelessCoder> Guest|19843 in that case if you log into the same domain name in BE as you use in FE it should rebuild the files, assuming VHS is recent enough
  • 17:59:37 <NamelessCoder> sounds like your VHS maybe outdated
  • 18:00:14 <NamelessCoder> Guest|93698 I like this one: https://worksonmymachine.org/blog/fluidtypo3-quickstart (three parts, the other two also on that site)
  • 18:00:57 <Guest|19843> Maybe - I will check. Anyway if CSS is rebuild each time when I am logged to BE - it will be fast ?
  • 18:01:13 <NamelessCoder> definitely not fast, but much easier to work with during dev
  • 18:01:27 <NamelessCoder> the option can be disabled on production sites
  • 18:02:10 <Guest|19843> I have VHS 1.8.2
  • 18:02:13 <NamelessCoder> alternatively, combine "standalone" and "external" properties on the asset to make it include using the original path
  • 18:02:28 <NamelessCoder> you're two behind then: http://typo3.org/extensions/repository/view/vhs
  • 18:02:40 <Guest|19843> ok - tnx - I will try
  • 18:02:45 <NamelessCoder> yw
  • 18:02:53 <Guest|93698> @NamelessCoder Thank you, it seems to be the right stuff.
  • 18:03:01 <NamelessCoder> either of the two solutions - the standalone+external, or updating VHS, should solve it
  • 18:03:15 <NamelessCoder> Guest|93698 yw, thank bjo3rn for writing it ;)
  • 18:03:42 <Guest|93698> @bjo3rn Thank you!!
  • 18:44:10 <twirsing> hello!
  • 18:45:53 <twirsing> does anybody know if fal (inline) elements can work within sections?
  • 18:46:00 <cedricziel> they dont :)
  • 18:46:22 <cedricziel> technically they do, but its very unintuitive as IRRE and fal require a common "baselin"
  • 18:46:26 <twirsing> that was quick, thanx.
  • 18:46:35 <cedricziel> sure, no problem :)
  • 18:47:39 <twirsing> i supose the porblem is the ambiguous foreignMatchFields
  • 18:47:49 <cedricziel> you got it :)
  • 18:48:12 <cedricziel> nailed, to say so
  • 18:49:16 <twirsing> i wasnt able to make out the current section iterator. do you know if this iterator is available somewhere?
  • 18:49:48 <cedricziel> handing around flexform variables in the flexform is screwy
  • 18:49:58 <twirsing> i could than use it to create a custom viewhelper
  • 18:50:36 <twirsing> which adds the iterator to the foreignMatchField
  • 18:51:28 <twirsing> flexform wouldn't be touched that way
  • 18:51:43 <cedricziel> sounds great. please tell us, when you have it :)
  • 18:51:55 <cedricziel> that is really a hot question these days
  • 18:53:28 <twirsing> i will try but posting here was actually my last resort ;)
  • 18:54:01 <cedricziel> hehe, yeah i know that feeling for sure
  • 18:55:09 <twirsing> i take it as an incentive
  • 18:55:19 <twirsing> cheers
  • 18:55:31 <cedricziel> no problem, you're always welcome :)