IRC logs

20140619

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

IRC log range: 20140619*

20140619

  • 12:27:33 <erredeco> hello everyone... I'd need a little help with <v:page.menu>
  • 12:28:03 <erredeco> I set titleFields="'nav_title,title'" but it seems that nav_title is ignored :S
  • 12:31:18 <erredeco> even the text of the anchor is title instead of nav_title
  • 12:32:17 <erredeco> update:
  • 12:32:57 <erredeco> removing titleFields="'nav_title,title'" --> the text of link becomes nav_title, but the "title" attribute is title
  • 12:33:31 <erredeco> if I explicit titleFields="'nav_title,title'" then both text and title attribute are title field
  • 12:44:31 <JustAPoring> Hi guys. Is it possible to do something along the lines of {object.{key}}, or is there a viewhelper already available for something along those lines?
  • 12:45:08 <JustAPoring> In fluid, that is, in case that wasn't clear.
  • 12:49:39 <Guest|76921> Is there a ViewHelper to get Values from Flexform fields?
  • 13:00:45 <Denyerec> There was some talk of it.
  • 13:00:56 <Denyerec> But I don't know if danilobuerger ever got around to it.
  • 13:07:11 <NamelessCoder> flux:form.data
  • 13:07:32 <Denyerec> Guru Nanak Speaks!
  • 13:08:28 <NamelessCoder> just practicing my sniping :p
  • 13:10:19 <NamelessCoder> JustAPoring the answer to your question is v:variable.get (assuming you use the development branch, in TER it's still v:var.get)
  • 13:10:47 <NamelessCoder> {v:variable.get(name: 'myobjectname.{dynamicVariablePart}') -> v:variable.set(name: 'newVariableName')} for example
  • 13:12:00 <JustAPoring> NamelessCoder: Duh, of course. Thanks a bunch.
  • 13:12:09 <NamelessCoder> yw
  • 13:12:34 <NamelessCoder> by the way, the reason why that works is ObjectAccess::getPropertyPath is used
  • 13:13:16 <NamelessCoder> you may find that relevant if you ever need to for example extract a deep TS path from a full typoscript array - $value = ObjectAccess::getPropertyPath($fullTypoScript, 'plugin.tx_myext.settings.variable.foobar');
  • 13:13:35 <NamelessCoder> it also works with flexform arrays ;)
  • 14:21:33 <erredeco> another question:
  • 14:21:40 <erredeco> if I have this code:
  • 14:21:42 <erredeco> <f:if condition="{item.nav_title}">
  • 14:21:42 <erredeco> <f:then>{item.nav_title}</f:then>
  • 14:21:42 <erredeco> <f:else>{item.title}</f:else>
  • 14:21:42 <erredeco> </f:if>
  • 14:21:58 <erredeco> is it possible to write it in inline notation?
  • 14:22:11 <erredeco> I tried with {f:if(condition:'{item.nav_title}',then:'{item.nav_title}',else:'{item.title}'')}
  • 14:22:18 <erredeco> but it does not work
  • 14:23:17 <erredeco> sorry: i got it
  • 14:23:28 <erredeco> '' at the end... nailed :)
  • 15:30:21 <erredeco> how can I do something like if this AND that then DO ??
  • 15:30:39 <erredeco> I see there is v:if but I don't understand how to use it
  • 15:34:06 <cedricziel> erredeco: it has an array syntax
  • 15:34:26 <cedricziel> each comparator and operator is to placed as as an array index in the argumnt
  • 15:38:10 <erredeco> umm
  • 15:40:27 <erredeco> @cedricziel: let's say I want to build a menu...
  • 15:40:45 <erredeco> using v:page.menu
  • 15:41:19 <erredeco> I see that I can use {item.active}, {item.current} and {item.hasSubPages}
  • 15:41:33 <erredeco> but it lacks CURIFSUB and ACTIFSUB
  • 15:42:06 <erredeco> Until now I was able to write: <v:if stack="{item:'active'}">active</v:if>
  • 15:55:54 <erredeco> still don't get it :(
  • 16:21:09 <xaver> what is the argument stack - it is not registered
  • 16:31:54 <Outdoorsman> Hmmm so now that files in fileadmin are tracked... where is the appropriate place to put my customized extension file overrides?
  • 16:37:26 <Outdoorsman> I noticed that in the TYPO3 bootstrap demo it's set up like this...
  • 16:37:30 <Outdoorsman> fileadmin
  • 16:37:34 <Outdoorsman> fileadmin/public
  • 16:37:43 <Outdoorsman> fileadmin/private
  • 16:38:14 <Outdoorsman> Is anyone else following this scheme?
  • 16:39:47 <Outdoorsman> http://bootstrap.typo3cms.demo.typo3.org/typo3/backend.php
  • 16:44:03 <Outdoorsman> erredeco I'm very new to vhs still, but when I found the only way to have multiple conditions for one statement like you mentioned aboved was to nest them.
  • 16:44:53 <Outdoorsman> if this
  • 16:44:55 <erredeco> @outdoorsman mhh for now I'd try not to use them, that was mainly for my curiosity
  • 16:44:57 <Outdoorsman> then {
  • 16:45:07 <Outdoorsman> if this
  • 16:45:16 <erredeco> nested condition are not very good IMHO
  • 16:45:41 <Outdoorsman> I agree but as far as I know that's all that's supported by vhs currently.
  • 16:45:47 <xaver> we had viewhelper for multiple conditions, but had always a lot of problems.
  • 16:46:02 <erredeco> ok thanks anyway :)
  • 16:46:09 <xaver> template is not for a complete logic of your project
  • 16:46:43 <erredeco> ok, let's say I revert back and use again typoscript to build a menu
  • 16:47:07 <erredeco> (in typoscript I have CURIFSUB and ACTIFSUB)
  • 16:47:09 <xaver> so many conditions are needed for am menu? Oo
  • 16:47:41 <xaver> you have variables and arguments for that
  • 16:47:53 <erredeco> I'm trying to see how far I can push myself in replacing what I used to buid with typoscript with fluid
  • 16:47:58 <erredeco> :)
  • 16:48:24 <xaver> often set a simple class for style helps and a simple inline if is enough for that
  • 16:49:21 <Outdoorsman> Brilliant... hadn't though of handling it that way before.
  • 16:49:33 <Outdoorsman> Simple is better.
  • 16:50:09 <xaver> if i need a or conditions (not often) i can use a helper variable.
  • 16:50:22 <erredeco> the same way you should not need all the typoscript optionsplit
  • 16:50:46 <erredeco> just use :first-of-type or :first-child and so forth
  • 16:51:00 <Outdoorsman> But what about IE6 ;)
  • 16:51:05 <xaver> haha
  • 16:51:08 <erredeco> eurrrggghhhhhhhhhh
  • 16:51:15 <erredeco> lol
  • 16:51:23 <Outdoorsman> Sorry just had to throw that in there.
  • 16:51:41 <erredeco> te l'ho servita su un piatto
  • 16:52:10 <xaver> you have an iteration in for and you can use it
  • 16:52:28 <erredeco> a kinda related question, but slightly different
  • 16:52:41 <erredeco> if I add some fields to my page using flux...
  • 16:52:51 <erredeco> is it possible to access them via typoscript?
  • 16:54:03 <erredeco> for example... I add a checkbox
  • 16:54:24 <erredeco> <flux:field.checkbox name="settings.something"/>
  • 16:54:55 <erredeco> Is it possible to use this value in a typoscript object (like a TMENU ;) )?
  • 16:56:28 <erredeco> @outdoorsman - about your question - I'm using the approach suggested by fluidtypo3 and built an extension that provides the configuration for the frontend :)
  • 16:57:09 <xaver> i don't think so
  • 16:57:41 <xaver> TS rendering is slow and more conditions is even slower
  • 16:58:16 <erredeco> really? AFAIK it is a thing Templavoila can do
  • 16:58:26 <xaver> maybe it works
  • 16:58:51 <xaver> i never tried it and TV don't uses T§ implemented fields
  • 16:58:55 <xaver> TV
  • 16:59:17 <Outdoorsman> xaver Does TS rendering get cached?
  • 17:02:12 <erredeco> As far as I can remember you can get them using simply the field_something name
  • 17:02:22 <erredeco> but maybe I remember wrong
  • 17:02:52 <Outdoorsman> erredeco So about extension customization, you're saying that for every extension I customize I need to create a "provider extension"?
  • 17:03:19 <erredeco> mhh...no
  • 17:04:00 <erredeco> usually an extbase extension has some typoscript constants that let you decide the path where to retrieve your templates/layouts/partials
  • 17:04:42 <Outdoorsman> Yes, I could just set those to something like fileadmin/ext/news/Templates/ for example.
  • 17:05:11 <erredeco> ok instead of fileadmin/etc/etc
  • 17:05:26 <xaver> Outdoorsman: i think so - but every condition needs cache and will be rendered on every subpage
  • 17:05:47 <erredeco> use as path: EXT:yourproviderextension/Resources/Private/Ext/news/templates/
  • 17:06:25 <xaver> Use a provider extension, clean package no access for customer, htaccess rules are secure /Resource/Private
  • 17:07:05 <xaver> no fileadmin in git and a lot of other advantages
  • 17:07:35 <Outdoorsman> Ahhh just one provider extension segregated into subdirectories for each customized extension.
  • 17:07:58 <erredeco> yesssire
  • 17:08:09 <Outdoorsman> I feel better. Thanks.
  • 17:08:14 <erredeco> notatall
  • 17:08:39 <Outdoorsman> xaver Yikes... TS caching could add up if there's a lot of conditions or at least specific ones. But that would be the case for fluid as well I suppose.
  • 17:08:40 <xaver> that depends on your philosophy
  • 17:09:34 <erredeco> I've always admired Plato
  • 17:10:05 <xaver> Outdoorsman: TS rendering is really slow. its not a XMl rendered, implemented in php and optimized - its text, rendered to a giant array
  • 17:10:49 <xaver> also use view extension if you use news or powermail. Overwrite only needed templates partials...
  • 17:11:17 <Outdoorsman> I do have view installed but had already forgot why :)
  • 17:11:20 <erredeco> by the way
  • 17:12:04 <Outdoorsman> I'm familiar with fallback if a file is not overwritten because I also work with Magento.
  • 17:12:06 <erredeco> I knew that "news" allows you to copy only the modified partials to another folder
  • 17:12:24 <erredeco> yeah, that's what I mean: news supports the fallback
  • 17:12:38 <erredeco> I'm not sure about the other extensions like powermail
  • 17:13:09 <erredeco> I fear you have to copy all the files from the original ext to yours
  • 17:13:23 <xaver> erredeco: view works good and fast
  • 17:13:41 <Outdoorsman> That's what view will do for you automatically though. Enables fallback for any extension I belive.
  • 17:14:24 <erredeco> could you share an example?
  • 17:14:30 <xaver> plugin.tx_powermail.view.overlays.yourporvider.partialRootPath = EXT:yourporvider/Resources/Private/Partials/
  • 17:14:41 <xaver> and you copy what you need
  • 17:14:49 <xaver> and modify
  • 17:15:12 <xaver> maybe create a extension folder
  • 17:15:16 <erredeco> ohhh nice
  • 17:15:27 <xaver> https://github.com/FluidTYPO3/view
  • 17:15:30 <erredeco> maybe I forgot the "overlays"
  • 17:15:59 <erredeco> for "news" I used the method suggested with Typo3 6.2
  • 17:16:40 <erredeco> plugin.tx_news.view.templateRootPaths.101 = EXT:bhsiteconf/Resources/Private/Ext/News/Templates/
  • 17:16:50 <erredeco> (100 was the original value)
  • 17:17:25 <xaver> 6.2 has a new implementation, but something was a disadvantage. You can use view for all extensions.
  • 17:18:47 <erredeco> I'll try ASAP to unleash the power of view.overlays !!
  • 17:20:03 <xaver> fluidcontent_core isn't released, but works. It will get rid you the div div div, also text with image. Allows you to have different versions and variants.
  • 17:22:21 <erredeco> as far as I can see from the documentation of view the correct syntax is:
  • 17:22:21 <Outdoorsman> xaver Are there plans for a conversion script down the road to move from CSS Styled Content to fluidcontent_core?
  • 17:22:28 <erredeco> plugin.tx_news.view.overlays.myext.partialRootPath = EXT:myext/Resources/Private/Partials/
  • 17:22:42 <erredeco> sorry
  • 17:22:48 <erredeco> bad cut and paste
  • 17:22:53 <erredeco> that was for me :)
  • 17:23:12 <erredeco> fluidcontent_core seems interesting
  • 17:23:53 <erredeco> at least because I'm not very happy with the CSC rendering
  • 17:24:13 <Outdoorsman> I'll jump on the fluidcontent_core bandwagon but not until I know it's stable and is going to be around a looooong time. I don't want to have to migrate content manually for 50 websites down the road.
  • 17:25:00 <erredeco> :)
  • 17:25:17 <Outdoorsman> I've gotta get back to work, thanks guys.
  • 17:25:30 <erredeco> thank to you have a nice day
  • 17:25:46 <Outdoorsman> and you too erredeco!
  • 17:28:32 <xaver> conversion script?
  • 17:29:27 <Outdoorsman> Porting script. Port CSS Styled Content content elements to fluidcontent_core content elements.
  • 17:29:44 <xaver> you can uninstall csc and install fluidcore_content - only "problems" are text with image and also if you relay on some standard classes. You need to added them in your template.
  • 17:30:16 <xaver> you cant convert text with image, because it depends on your solution
  • 17:31:25 <xaver> Why text with image is gone - You can't style every possible case, Customers are able to destroy the layout, not really responsive
  • 17:33:05 <Outdoorsman> So if I have csc installed and create a Text Only CE, then uninstall csc and install fluidcontent_core, the CE will just work?
  • 17:34:46 <xaver> Outdoorsman: maybe some styles classes you need to set, you have no avoidable tags.
  • 17:34:56 <xaver> also images and other stuff works
  • 17:35:05 <xaver> you can crate multiple variants
  • 17:35:46 <Outdoorsman> I can handle changing CSS if need be.
  • 17:35:47 <xaver> or addmultiple classes via multiselect like in access beuser select.
  • 17:35:56 <xaver> you can easily ocnvert
  • 17:36:01 <xaver> "convert"
  • 17:36:49 <Outdoorsman> but the conversion is CSS not recreation of the CE itself right?
  • 17:37:41 <xaver> no
  • 17:37:51 <xaver> everything is stored in same fields
  • 17:38:03 <xaver> Outdoorsman: i send you a pm
  • 17:45:17 <Outdoorsman> Soooo excited to hear about that. I thought fluidcontent_core was a breaking solution but it sounds more like a native solution???
  • 17:46:25 <xaver> csc is a extension and it can be replaced. its deep in TYPO3, but it is possible
  • 17:47:38 <xaver> a switch is not so easy and a lot of people want csc. Maybe if fluidcontent_core grows in popularity a own solution from T3 core will be planed. I don't know.
  • 17:48:58 <Outdoorsman> I bet it will get more popular, but until it has good following and is stable the big-timers may drag their feet a bit.
  • 17:49:30 <Outdoorsman> Anything to get away from inline styles would be good.