IRC logs

20150209

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

IRC log range: 20150209*

20150209

  • 03:33:05 <trendzetter> Good morning FluidTypo3
  • 03:33:08 <trendzetter> !!!
  • 03:40:49 <Tjark> Hi
  • 08:00:46 <mikemm> hi.. is there a reason why fluidcontentcore has 'vhs' => '2.1.0-2.1.99', as a dependency... is it not compatible with 2.2.x?
  • 08:13:49 <trezndzetter> hello!
  • 08:14:05 <trezndzetter> last week you saved me from giving up on the deployment
  • 08:14:31 <trezndzetter> now I am happily trying out and developing the first templates
  • 08:14:57 <trezndzetter> I wonder how you guys get rid of cache
  • 08:15:22 <trezndzetter> If I change my translationsfile it doesn't appear immediatly
  • 08:15:36 <trezndzetter> and not after flushing all caches.
  • 08:15:36 <NamelessCoder> mikemm you can safely ignore that version constraint but you may need to explicitly install VHS then fluidcontent_core and ignore the warning.
  • 08:16:16 <NamelessCoder> trezndzetter use development context for TYPO3 and the "clear system cache" cache clear method
  • 09:14:31 <jmverges> hi there folks
  • 09:35:49 <pedda> hi there
  • 09:35:59 <xaver> hi
  • 09:36:37 <pedda> i'm struggeling with a very strange error in backend related to fluidpages
  • 09:37:03 <pedda> i assume, i made a mistake somewhere, but i have no clue at which point
  • 09:37:19 <pedda> i'm not able to create a new page in list mode for example
  • 09:37:32 <xaver> php errors?
  • 09:37:44 <pedda> some removeDotsFromTS is Null instead of an error
  • 09:37:49 <pedda> i digged a bit
  • 09:38:02 <pedda> it'S related to the pageLayoutSelector
  • 09:38:21 <pedda> it seemsas if MY plugin.tx_fluidpages. = NULL
  • 09:38:24 <pedda> ö_Ö
  • 09:38:46 <pedda> iirc fluidpages includes "itself"
  • 09:38:58 <pedda> which can be controlled in em settings of fluidpages..
  • 09:39:31 <pedda> basic.autoload (automatic initialization)
  • 09:39:46 <pedda> which is enabled (default value)
  • 09:40:54 <pedda> i do have some tx_fluidpages related property in tsob, and compared to other projects of mine, which look the same in tsob
  • 09:41:05 <pedda> so this part seems "to work"
  • 09:41:42 <pedda> i must have done sth. very stupid at some point.. but i can't figure out what right now
  • 09:43:19 <pedda> EXT:builder says everything is fine with my provider extension..
  • 09:43:49 <pedda> pedda: some removeDotsFromTS is Null instead of an error <- -error + array
  • 09:44:47 <pedda> i can'T assign those page layouts in page properties either
  • 09:53:27 <pedda> NamelessCoder around?
  • 09:53:54 <pedda> i can see you did some refactoring on the pageLayoutSelector two days ago
  • 09:54:24 <pedda> especially the part i'm struggeling with
  • 09:54:48 <pedda> do i need to integrate fluidpages in a different way than before this refactoring?
  • 09:58:21 <pedda> this is the related commit: https://github.com/FluidTYPO3/fluidpages/commit/28ac27fa12a27860616b9481f143b866a19a52cb
  • 10:00:42 <jmverges> hey folks, I opened an issue yesterday, is working for you Menu.html (fluidcontent_core)
  • 10:02:36 <NamelessCoder> pedda behavior should be the same before/after that change
  • 10:02:45 <pedda> hmm
  • 10:03:29 <pedda> if i debug $typoscript right before line 113 i get NULL
  • 10:04:02 <pedda> although all this fluidpages ts things happaned behind the scenes by now
  • 10:04:09 <pedda> *happened
  • 10:04:31 <pedda> i mean.. can it be caused by some include order in backend ?
  • 10:04:36 <NamelessCoder> where is your TS set?
  • 10:05:23 <pedda> i have a basic provider extension with a single page layot, my template paths are set in that provider extensions typoscript files
  • 10:05:29 <pedda> *layout
  • 10:05:37 <jmverges> NamelessCoder, did you see the issue that I raised? https://github.com/FluidTYPO3/fluidcontent_core/issues/132
  • 10:05:48 <NamelessCoder> jmverges yes, I will get to that when I have time
  • 10:06:13 <pedda> tsob tells me there is a plugin.tx_fluidpages.siteRootInheritance property available
  • 10:06:23 <jmverges> ok, so, do you think that is a issue or is working for you?
  • 10:06:40 <pedda> but not at the moment if a page is created in list mode
  • 10:06:53 <pedda> i can coppy a page within the page tree though
  • 10:07:07 <NamelessCoder> pedda the difference from before to now is that the Flux ConfigurationManager is expected to be registered as implementation. It works the same way as the standard ConfigurationManager except it supports additional ways of determining the page UID
  • 10:07:28 <pedda> hmm
  • 10:07:42 <NamelessCoder> jmverges I don't know until I investigate it but no, I have not seen that error before.
  • 10:08:07 <pedda> i revert fluidpages to a version before this commit to see if my issue is gone..
  • 10:08:08 <NamelessCoder> pedda in PageLayoutSelector try debugging the class name of $this->configurationManager
  • 10:08:13 <pedda> k
  • 10:08:16 <pedda> gimme a sec
  • 10:08:30 <NamelessCoder> if it is NOT the one from Flux, the implementation has been overridden by something else
  • 10:08:57 <pedda> it is the one from flux
  • 10:08:58 <NamelessCoder> pedda https://github.com/FluidTYPO3/flux/blob/development/ext_localconf.php#L48
  • 10:10:09 <NamelessCoder> https://github.com/FluidTYPO3/flux/blob/development/Classes/Configuration/BackendConfigurationManager.php#L114 should be called and should return the right page UID
  • 10:10:48 <pedda> hmm..
  • 10:10:56 <NamelessCoder> if that UID is correct, the rest of the TS resolving happens in TYPO3's BackendConfigurationManager::getConfiguration
  • 10:11:14 <pedda> the only thing i missed by now is truncate the flexform field of all pages in db
  • 10:11:25 <NamelessCoder> should not be necessary
  • 10:11:33 <jmverges> thank you NamelessCoder
  • 10:11:43 <pedda> i did some adjustments to the configuration section (stripped out obsolete columns)
  • 10:11:52 <jmverges> I'm gonna try a fresh install
  • 10:11:56 <NamelessCoder> this is purely a matter of resolving the TS that applies to the currently edited page UID - it should be quite simple
  • 10:17:43 <pedda> if i debug the whole configurationManager->getConfiguration(…) i get some output where plugin. is not empty but fluidpages is missing
  • 10:18:37 <pedda> i can see felogin, flux, formhandler and tt_address, lets say .. all those "i include my own piece of ts config on load" extensions
  • 10:19:42 <pedda> as mentioned earlier.. because of basic.autoload em setting i would expect fluidpages to get listed among these
  • 10:20:48 <NamelessCoder> that's fine in that location: the typoscript at that point is only responsible for controlling your overrides of inheritance behavior for the template selector field
  • 10:21:50 <NamelessCoder> https://github.com/FluidTYPO3/fluidpages/blob/development/Classes/Service/PageService.php#L155 is used to resolve available selections
  • 10:22:02 <NamelessCoder> (it also uses the overridden ConfigurationManager)
  • 10:23:23 <NamelessCoder> https://github.com/FluidTYPO3/fluidpages/blob/development/Classes/Service/ConfigurationService.php#L73 is where the TS-related part happens: fluidpages reads all registered provider keys and resolves the view configuration (either what is set in TS or it uses fallbacks with default paths) and stores the path configurations for each provider extension key
  • 10:24:00 <pedda> but as $typoScript['plugin.']['tx_fluidpages.' ] i'm talking about line 112 and 113 of PageLayoutSelector (just to make sure) where in line 113 removeDotsFromTS is utilized on a null value because line 112'S var is lacking of plugin.ty_fluzidpages
  • 10:24:03 <NamelessCoder> pedda I assume you also have seen https://github.com/FluidTYPO3/fluidpages/commit/b5fd17bd69315589ea77a77202fc5eb0255cf0f1
  • 10:24:43 <NamelessCoder> yes pedda - that's expected. The TS option is not documented and may be removed and fluidpages itself does not define the TS in plugin.tx_fluidpages
  • 10:25:10 <NamelessCoder> but it is NOT that location that is responsible for storing your actual template paths - that has to reside in plugin.tx_yourext.view
  • 10:25:20 <pedda> hmm
  • 10:25:32 <NamelessCoder> especially true since completely removing the legacy support
  • 10:25:47 <pedda> in fact i didnÄt have noticed the removal of those legacy approaches
  • 10:25:57 <pedda> but i don't use theme anyway
  • 10:26:23 <pedda> meaning I do not use them, whilke dealing with a project of someone else ..
  • 10:26:28 <pedda> *while
  • 10:26:33 <pedda> :D
  • 10:26:35 <pedda> i need to recheck
  • 10:26:36 <NamelessCoder> what works now: registering a provider extension key + controller name "Page" and having valid template files in that location. The TS defining view paths for your provider extension is optional now - and you can use any of the supported ways of setting the paths
  • 10:27:03 <NamelessCoder> let me just throw some more links at you... ^^
  • 10:27:08 <pedda> hehe
  • 10:27:12 <drlimbo> hi there
  • 10:27:44 <pedda> always good to know about those, as the most information about breaking changes can be taken from commits only regarding ft3 tools imo
  • 10:27:49 <NamelessCoder> pedda you already have the links that removed the legacy bit and I've shown you the places where we now rely on the new ConfigurationManager to resolve our TS.
  • 10:28:21 <NamelessCoder> pedda then comes, once merge, https://github.com/FluidTYPO3/flux/pull/758 - which will enable the use of any supported structure for defining templateRootPath, templateRootPaths, overlays.xyz.templateRootPath etc.
  • 10:29:26 <pedda> i must be missing something
  • 10:29:29 <NamelessCoder> currently to resolve the view configuration we call this method: https://github.com/FluidTYPO3/flux/blob/development/Classes/Service/FluxService.php#L288 which checks if TS is set and if not, uses the method right above it to generate defaults
  • 10:29:51 <pedda> as i was able to create pages until yesterday, and i didn't update/upgrade flux by now
  • 10:29:56 <NamelessCoder> the method there should be 100% safe from any errors that is NOT caused by incorrectly setting the TS (which I assume you are doing correctly)
  • 10:30:22 <pedda> i enabled some overlay by the help of View.. this is the only thing i did in the last 24 hours related to template paths
  • 10:30:41 <drlimbo> hi there
  • 10:30:48 <NamelessCoder> that would have an effect pedda
  • 10:30:53 <drlimbo> i have a question with using the flux:form viewhelper
  • 10:31:08 <pedda> i need to check this now
  • 10:31:17 <pedda> thx for all the information ^^
  • 10:31:19 <NamelessCoder> you should consider EXT:view deprecated; flux either has or is soon getting native support for the ways the core defines multiple root paths
  • 10:31:37 <drlimbo> we used this way to include an icon: icon="{v:extension.path.resources(path: 'Icons/icon-twitter.png')}" - but icon="" is depreceated, so we should use options="{icon: 'Icons/Content/Example.gif', ...
  • 10:31:42 <NamelessCoder> and I very much would appreciate if you find the time to test the pull request(s) flux#758 ;)
  • 10:31:43 <FT3BOT1> Issue 758: [FEATURE] Implement ViewContext and TemplatePaths objects https://github.com/fluidtypo3/flux/issues/758
  • 10:31:52 <drlimbo> is there a way to use the v:extension.path.resources with the options="{icon: way?
  • 10:34:02 <NamelessCoder> drlimbo see https://github.com/FluidTYPO3/flux/blob/development/Classes/ViewHelpers/Form/Option/IconViewHelper.php (not yet published to docs). Usage: <flux:form.option.icon value="{v:extension.path...}" />
  • 10:35:34 <NamelessCoder> it's easier to use than <flux:form options="{icon: '{v:extension...}'}"> but has the same effect - and you don't have to escape single quotes inside the options array values
  • 10:36:04 <drlimbo> thanks NamelessCoder, so <flux:form.option.icon should be used inside <flux:form, right?
  • 10:36:22 <NamelessCoder> correct
  • 10:36:53 <drlimbo> ah, thats nice =)
  • 10:37:22 <xaver> icon should work without any option /Resources/Public/Icons/{Content,Page}/id.(png,gif...)
  • 10:37:56 <NamelessCoder> drlimbo true, what xaver said. You may want to check out the automatic icon-by-convention resolving
  • 10:38:23 <NamelessCoder> place your icon at the expected location and Flux uses it automatically, no need for the flux:form.option at all and better performance.
  • 10:38:37 <drlimbo> if i add the <flux:form.option.icon viewhelper, it crashes the "Tab-Layout" -> https://www.evernote.com/shard/s8/sh/b816c4ee-f9c1-4d60-b2c3-b486a1fde994/a51b7e56c46ddbddcb9ff5e73d36afd1/deep/0/ogbase--TYPO3-CMS-6.2.9-.png
  • 10:39:04 <NamelessCoder> drlimbo then you don't have the most recent code and much of what has been suggested will not work
  • 10:39:14 <drlimbo> ah xaver, thanks, i'll try
  • 10:39:18 <NamelessCoder> either switch to development or use options="{}" and remember the escapes
  • 10:41:27 <drlimbo> since Flux 7.1.2 the "Debug-Messages" in the backend disaperead?
  • 10:41:38 <drlimbo> *disapeared
  • 10:45:28 <drlimbo> did something changed in the debug settings?
  • 10:48:12 <drlimbo> something's wrong with escaping i think -> options="{group: 'Content-Elements', icon: '{v:extension.path.resources(path: \'Icons/Content/Example.gif\')}' }"
  • 10:58:15 <drlimbo> xaver or NamelessCoder?
  • 10:58:28 <drlimbo> still someone here? =P
  • 11:00:55 <xaver> i used the autoreslove stuff the last time and before the icon
  • 11:01:45 <drlimbo> allright xaver, maybe thats easier =)
  • 11:01:57 <drlimbo> do you know anything about the Flux Debug Messages?
  • 11:02:02 <xaver> yes it works out of the box
  • 11:02:21 <drlimbo> i can't find a way to re-enable the messages (i changed debug to 1 or 2 in extension settings of flux)
  • 11:02:45 <xaver> drlimbo: or take a look here https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme/blob/development/Resources/Private/Templates/Content/Carousel.html
  • 11:18:32 <drlimbo> thx xaver, this works well!
  • 12:32:20 <mrboe> good evening
  • 12:36:46 <mrboe> does anybody uses v:page.languageMenu on a website with chinese lang?
  • 13:51:56 <pedda> NamelessCoder still around?
  • 13:58:18 <pedda> i can solve my issue only if i revert fluidpages right before 28ac27f
  • 13:58:48 <pedda> i tried to follow your explanation, which was a bit too much for me, but anyway
  • 14:01:28 <pedda> as far as i can understand what happens on the mentioned lines 112 and 113 in PageLayoutSelector, there is no way to perform GeneralUtility::removeDotsFromTS($typoScript['plugin.']['tx_fluidpages.']) successfully if $typoScript['plugin.']['tx_fluidpages.'] is null
  • 14:03:11 <pedda> i can'T explain why it is null, as i would expect the ts path to exist due to the em setting of EXT:fluidpages called basic.autoload
  • 16:49:12 <jousch> Are there any plans to support dynamically precompile sass,less files combined with the assets viewhelpers?
  • 17:31:53 <NamelessCoder> hey jousch - the plan is to have an extension that's dedicated to assets and uses assetic or similar as engine, but nobody seems to want to do it :)
  • 18:28:17 <jousch> Thanks NamelessCoder, the question came up at the t3board15
  • 18:33:20 <NamelessCoder> people ask it now and then :)
  • 18:39:51 <jousch> :)