10:30:32 <batjony> guys how do you proceed when using ajax and fluid templates/CE
10:31:14 <batjony> do you define for example a different typeNum for ajax and then based on it load different fluid templates/layouts which trims the page...
10:32:16 <batjony> if you know some articles on the web for best practices with ajax/typo3/fluid - please share them
11:05:56 <Guest|43001> hello everybody: is it possible to include TCEFORM.tt_content.header_layout.types to fluid template? so that the user can choose which headline he like?
11:07:17 <xaver> Guest|43001: no but you can sue fludi content core and replace it
11:08:42 <Guest|43001> have you a example? i'm new in fluid and dont understand what you mean
11:13:23 <Guest|43001> i think you dont understand me.. i would like to have a select box in the backend of my fluid contentelement for choosing the headline
11:13:32 <Guest|43001> i have this: <flux:field.input name="headline" label="headline" />
11:14:00 <Guest|43001> how i can let choose the headline like (h1 oder h2)
11:14:21 <xaver> ah you can also create a select with flux and you have the values available in Frontend
11:15:14 <xaver> https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme/tree/development/Resources/Private/Templates/Content take a look at the example elements
11:15:54 <dimul> Hallo, need help with f:form.select, should I take a queue?
11:16:18 <Guest|43001> it doesnt give a viewhelper?
11:18:51 <dimul> I need to ad pics or stk. indication to the select field based on the language. I have this fluid select form. <f:form.select options="{quantityArray}" id="quantitySelect" name="data[quantity]" value="{f:if(condition:data, then: data.quantity}" />. What is the correct usage of f:translate in this case?
11:19:37 <dimul> in my case translate is in dh namespace. So it will be dh:translate
11:20:19 <batjony> xaver: if I have a custom CE created by fluidcontent which also has ContentController, could I disable the layout based on typeNum parameter inside the controller action ?
11:21:56 <batjony> lets say I have a CE news with ContentController::newsAction(), so somehow in newsAction to disable the layout if for example typeNum is 77
11:34:23 <xaver> Guest|43001: for what? creating a h tag? i think that would be a little bit overhead. Create a select and pass the number to h{number}
11:39:37 <xaver> dimul: that is fluid - this channel is for vhs flux fluidcontent, fluidpages (non core stuff). I never used that f:form.select and f:translate
11:40:04 <xaver> last time i used http://fluidtypo3.org/viewhelpers/vhs/master/LViewHelper.html and http://fluidtypo3.org/viewhelpers/vhs/master/Form/SelectViewHelper.html
11:43:54 <batjony> xaver: do you know some other way to achieve it, the idea is when I have an ajax request(typeNum=77), then show only the html of the content element, so no layouts and other stuffs
11:58:35 <erredeco> I think that Guest|43001 doesn't want to add another select to choose the header hx, but wants to recycle the field header_layout of tt_content ;)
12:08:11 <xaver> erredeco: yes thats why i said fluidcontent_core
12:15:58 <erredeco> simply put {record.header_layout} in the template
13:17:05 <batjony> lets try with some guro help from NamelessCoder
13:17:12 <batjony> NamelessCoder: if I have a custom CE created by fluidcontent which also has ContentController, could I disable the layout based on typeNum parameter inside the controller action ?
13:48:26 <danilobuerger> do you use fluidpages too?
13:48:54 <batjony> danilobuerger: i am wondering about two ways 1. somehow disable the layout in the content controller action 2. some condition for typeNum in the content element template
13:53:37 <batjony> so I want to output only the html from the CE
13:54:12 <danilobuerger> ok, create a layout that only contains the render of the Main section, then in your content template do a f:if around the f:layout directive
14:09:37 <NamelessCoder> as you can see it utilizes a postParseEvent (it's very special) which means the value actually exists immediately once you parse the template
14:15:07 <NamelessCoder> https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/fluid/Classes/Core/Parser/ParsingState.php#l167 shows exactly how it is a single-instance ViewHelper that only recognizes a single node
14:23:51 <Pero1909> I'm using DCE ext. to create custom CE. One of the fields i use in my CE is "Insert Records". Does anybody know how can i output "Insert Record" records in Fluid?
14:26:38 <batjony> NamelessCoder: again same error
14:26:54 <batjony> the complete syntax I use is: <f:layout name="{f:if.condition(then: 'ContentAjax', else: 'Content', condition: '{typeNum} == 10')}" />
14:37:22 <batjony> blank white page, when I checked the apache logs, the error is : PHP Fatal error: Call to a member function getViewHelper() on a non-object
14:42:15 <xaver> Pero1909: we only do our own stuff and no DCE
14:42:44 <xaver> maybe try the official TYPO3 channel or maybe DCE has a support chat.
14:43:45 <Pero1909> xaver ok, but maybe you have an example of how to output "Insert Records" in Fluid generaly in TYPO3
14:44:01 <Pero1909> i coudln't find anything googling
14:47:44 <xaver> That depends a lot on your template system. We use fluidcontent for FCE and fluidpages. You can take a look at our documentation. Maybe it helps, but it focus on usage of flux, fluidcontent fluidpages http://fluidtypo3.org/documentation/templating-manual/introduction.html
14:49:27 <xaver> If you use PHP you need to assign your variable to fluid. IF you want something like var_dump (_all -> f:debug()) and you get all available information in you template. Pero1909
14:51:07 <xaver> If you have questions afterwards about FluidTYPO3 (flux, fluidcontent, fluidpages, vhs....) you are welcome to ask :)
14:52:03 <Pero1909> just one thing to clarify if it's not a problem
14:53:18 <Pero1909> TYPO3 Fluid means all that you wrote = flux, fluidcontent, fluidpages .. so ext. based on TYPO3 Fluid are ext. based on flux, fluidcontent, fluidpages or i got something wrong here?
14:56:42 <xaver> TYPO3 developed fluid and a very basic template system with a lot of possibility. Most users want to use a more advanced system with more features like FCE (Flexible Content Element). Different developers started projects to accomplish that in different ways. FluidTYPO3 team wrote flux, fluidcontent, fluidpages with help form a lot of contributors https://github.com/FluidTYPO3/ .
15:03:33 <xaver> we think creating 1 tempalte for FCE is a good way. https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme/blob/development/Resources/Private/Templates/Content/Alert.html Configuration creates Backend form/element, preview Backend preview in overview and Main the frontend output. Pero1909
15:04:03 <Pero1909> well, few days ago i found this DCE ext. It is really easy to make your own CE .. drop some TYPO3 fields u want, u make fluid template and that's it .. no need to write ext. So that's the thing i really need in TYPO3.. gives u much flexibility without writting an ext.
15:05:33 <xaver> DCE, Mask, FluidTYPO3, Girdlements have all "similar" goals, but work in complete different ways
15:06:03 <Pero1909> yes, i saw they mention Gridelements too but didn't try it
15:06:17 <batjony> danilobuerger: do you have any idea why <f:layout name="{f:if(then: 'ContentAjax', else: 'Content', condition: '{typeNum} == 10')}" /> does not work
15:11:28 <Pero1909> and how easy is in fluidcontent to make CE :-)
15:11:38 <xaver> https://github.com/bootstraptheme-for-typo3/fluidbootstraptheme/blob/development/Resources/Private/Templates/Content/Alert.html this easy
15:11:57 <batjony> danilobuerger: no already cleared all the caches
15:11:58 <xaver> its everyhting backend form, a icon for selection, integrated lanuage system
15:23:25 <Pero1909> i mean when i install TYPO3 6.x i get that feature by default or i have to install something :-)
15:24:25 <xaver> you need to install a couple of extensions. We split our extensions and do not provide 1 big ext with functionality you maybe don't need
15:26:03 <Pero1909> u know for me Fluid is another word for templating engine like PHP Smarty and Flux doesn't mean anything to me yet.. Flow is like some framework if i'm correct
15:26:18 <Pero1909> so i need little time to catch all that
15:39:03 <batjony> danilobuerger: ok, and what about if I want also to have a different page template/layout ?
15:59:32 <xaver> if you buy it and get the support. Everything works together
15:59:44 <danilobuerger> batjony: ok so i confirmed it, i have this working perfectly in my setup... see here fx https://gist.github.com/danilobuerger/40d4e6eab67497c6aad2
16:01:58 <batjony> danilobuerger: what kind of typo3 version you use there
16:03:09 <mrboe> nice to see that somebody earns money with our work http://t3bootstrap.de/de/typo3-bootstrap-template/
16:03:43 <danilobuerger> mrboe imagine what fx linus thinks
16:03:51 <batjony> danilobuerger: the same as mine, do you use TER versions of the fluid extensions, some old dev versions or the latest dev versions
16:04:10 <danilobuerger> i dont think the extensions matter in this specific case
16:07:44 <batjony> danilobuerger: i do not see other reason, its either extension versions or server environment
16:08:25 <NamelessCoder> or a missing variable, or a typo, or a syntax error
16:11:56 <batjony> NamelessCoder: k, i removed the variable and set the condition always to '1', so there is no missing variable and i think the syntax is also fine
16:16:28 <batjony> Thu Aug 21 17:10:19.586005 2014] [fcgid:warn] [pid 3319] [client 127.0.0.1:60434] mod_fcgid: stderr: PHP Fatal error: Call to a member function getViewHelper() on a non-object in /home/batjony/www/html/painters/public/typo3temp/Cache/Code/fluid_template/Paintersitepackage_Content_action_painterList_5dab469aee8084d7251ca9d1eafe91a481a09b0d.php on line 18
16:16:55 <batjony> all cached cleared, from install tool, also typo3temp folder
16:18:15 <danilobuerger> can you please gist that file
16:23:16 <batjony> and on line 18 we have: $viewHelper61 = $self->getViewHelper('$viewHelper61', $renderingContext, 'TYPO3\CMS\Fluid\ViewHelpers\IfViewHelper');
16:36:29 <danilobuerger> are you sure you cleared every cache? you could try deleting typo3temp and then in the database truncating every cache_ or cf_ table
16:38:54 <batjony> danilobuerger: the only thing i havent tried is clearing db cache tables
16:45:38 <batjony> same issue, tomorrow i will continue the tests
16:50:57 <randomresult> one question to the team: is there a way to donate? @NamelessCoder danilobuerger bjo3rn cedricziel ?
16:52:03 <danilobuerger> you can buy me beers @t3cm ra
16:52:06 <danilobuerger> you can buy me beers @t3cm randomresult
16:52:32 <NamelessCoder> randomresult officially: not yet. But will PM you something.