From thomas at layh.com Wed Dec 1 08:28:51 2010 From: thomas at layh.com (Thomas Layh) Date: Wed, 1 Dec 2010 08:28:51 +0100 Subject: [FLOW3-general] Custom form errors Message-ID: Hi together, using the validators in FLOW3 is a real nice feature. Just found out that I can overwrite the flashmessages by overwriting the getErrorFlashMessage in my controller. One thing I didn't found out right now is how to edit the error message for each individual form element. Any hint would be helpful. Currently there is the default text based on my selected validator. Thanks in advance. Greetings, Thomas From michael at feher.at Wed Dec 1 09:45:11 2010 From: michael at feher.at (Michael Feher) Date: Wed, 01 Dec 2010 09:45:11 +0100 Subject: [FLOW3-general] Custom form errors In-Reply-To: References: Message-ID: > One thing I didn't found out right now is how to edit the error message for > each individual form element. Any hint would be helpful. Currently there is > the default text based > on my selected validator. As far as I remember are the error messages hardcoded in the validator class. I wanted to add a feature request about this, but never did it. It would be great to customize the error message by adding an annotation to the element definition. The syntax should support internationalization and variable substitution to include the actual (false) value in the message. And the syntax should be equal for all validators which means it should be implemented in a separate class used by all validators. Michael From typo3 at kay-strobach.de Thu Dec 2 16:29:42 2010 From: typo3 at kay-strobach.de (Kay Strobach) Date: Thu, 02 Dec 2010 16:29:42 +0100 Subject: [FLOW3-general] How to use ExtJS forms In-Reply-To: References: Message-ID: Am 30.11.2010 14:52, schrieb Mick: > Hi all, > > if i build for example an form with FLUID to create or update entities, > the framework will automatically render some extra information in hidden > fields to the form. > > I'm interested in how could i create a form with ExtJS so that the > output is compatible comparable to the generated like FLUID does. > > What i would like to do is: > - Create new entities > - Update existing entities > > Cheers, > Mick Hi, Perhaps that meets your requirement: http://www.kaktusteam.de/index.php?id=mimis_blog&tx_t3blog_pi1[blogList][showUid]=97&tx_t3blog_pi1[blogList][year]=2010&tx_t3blog_pi1[blogList][month]=02&tx_t3blog_pi1[blogList][day]=15&cHash=62ac1af6f386c782a16fbe8767be869a Best regards Kay From thomas at layh.com Fri Dec 3 07:37:31 2010 From: thomas at layh.com (Thomas Layh) Date: Fri, 3 Dec 2010 07:37:31 +0100 Subject: [FLOW3-general] Fluid and Japanese Message-ID: Hey together, its me again with another problem. On my current FLOW3 Project there are about 45% of Japanese users so it is very important for me to display Japanese signs. Currently the Japanese signs are displayed as HTML Entities: 非同期通知(ク If I use the ViewHelper they are displayed correctly but then I have the problem that stuff like is executed. I checked all the ViewHelpers but I could not find one that works like I want it to. I tried the but it will not display my Japanese signs. Is there something I can do or do I have to write my own ViewHelper to catch this cases? Greetings and thanks for the help again. Thomas From typo3 at kay-strobach.de Fri Dec 3 08:09:37 2010 From: typo3 at kay-strobach.de (Kay Strobach) Date: Fri, 03 Dec 2010 08:09:37 +0100 Subject: [FLOW3-general] Fluid and Japanese In-Reply-To: References: Message-ID: Hi Thomas, what's your goal? - remove tags, but display chars? than you should be able to use the striptags viewhelper and raw recursivly if i remeber right ;) Best regards Kay Am 03.12.2010 07:37, schrieb Thomas Layh: > Hey together, its me again with another problem. > > On my current FLOW3 Project there are about 45% of Japanese users so it is > very important for me to display Japanese signs. > > Currently the Japanese signs are displayed as HTML Entities: > 非同期通知(ク > > If I use the ViewHelper they are displayed correctly but then I have > the problem that stuff like is executed. > > I checked all the ViewHelpers but I could not find one that works like I > want it to. I tried the but it will not display my Japanese > signs. > > Is there something I can do or do I have to write my own ViewHelper to catch > this cases? > > Greetings and thanks for the help again. > Thomas From christian at kitsunet.de Fri Dec 3 09:09:13 2010 From: christian at kitsunet.de (=?UTF-8?B?IkNocmlzdGlhbiBNw7xsbGVyIChLaXRzdW5ldCki?=) Date: Fri, 03 Dec 2010 09:09:13 +0100 Subject: [FLOW3-general] Fluid and Japanese In-Reply-To: References: Message-ID: On 03.12.2010 07:37, Thomas Layh wrote: > Hey together, its me again with another problem. > > On my current FLOW3 Project there are about 45% of Japanese users so it is > very important for me to display Japanese signs. > > Currently the Japanese signs are displayed as HTML Entities: > 非同期通知(ク > > If I use the ViewHelper they are displayed correctly but then I have > the problem that stuff like is executed. > > I checked all the ViewHelpers but I could not find one that works like I > want it to. I tried the but it will not display my Japanese > signs. > > Is there something I can do or do I have to write my own ViewHelper to catch > this cases? > > Greetings and thanks for the help again. > Thomas Why not go for UTF-8 and put the Kanji as they are instead of entities? Christian From firma at sfroemken.de Fri Dec 3 13:06:49 2010 From: firma at sfroemken.de (=?ISO-8859-15?Q?Stefan_Fr=F6mken?=) Date: Fri, 03 Dec 2010 13:06:49 +0100 Subject: [FLOW3-general] Problems with MM table and display in Fluid Message-ID: Hello "Get in the Flow"-Team, I just try to learn Extbase and Fluid now. But I have problems with MM-Tables. After searching a long time I find a hint to create my own Query for MM-Tables: public function indexAction(Tx_Ebsink_Domain_Model_Printer $printer) { $inks = $this->inkRepository->findInkBy($printer); //$printers = $inks->getPrinter(); $this->view->assign('inks', $inks); //$this->view->assign('printers', $printers); } and here my own function: public function findInkBy(Tx_Ebsink_Domain_Model_Printer $printer) { $query = $this->createQuery(); $query->matching($query->contains('printer', $printer)); return $query->execute(); } Very fine...when I click on a printer I get all inks for that printer. BUT!!! How to show all printers of current ink record in Fluid? {ink.printer} results in: Cannot cast object of type "Tx_Extbase_Persistence_ObjectStorage" to string. {ink.printer.printer} results in an empty output A google search is completely empty: http://www.google.de/search?hl=de&client=firefox-a&hs=4H&rls=org.mozilla%3Ade%3Aofficial&q=Cannot+cast+object+of+type+Tx_Extbase_Persistence_ObjectStorage+to+string.&aq=f&aqi=&aql=&oq=&gs_rfai= So...I hope that you have an additional idea. Stefan From typo3 at kay-strobach.de Fri Dec 3 13:14:32 2010 From: typo3 at kay-strobach.de (Kay Strobach) Date: Fri, 03 Dec 2010 13:14:32 +0100 Subject: [FLOW3-general] Problems with MM table and display in Fluid In-Reply-To: References: Message-ID: Hi, I assume, you need an array or an iterator to display all records ;) There is a debug view helper ;) Best regards Kay > {ink.printer.printer} > results in an empty output > > A google search is completely empty: > http://www.google.de/search?hl=de&client=firefox-a&hs=4H&rls=org.mozilla%3Ade%3Aofficial&q=Cannot+cast+object+of+type+Tx_Extbase_Persistence_ObjectStorage+to+string.&aq=f&aqi=&aql=&oq=&gs_rfai= > > > So...I hope that you have an additional idea. > > Stefan From firma at sfroemken.de Fri Dec 3 13:24:45 2010 From: firma at sfroemken.de (=?ISO-8859-15?Q?Stefan_Fr=F6mken?=) Date: Fri, 03 Dec 2010 13:24:45 +0100 Subject: [FLOW3-general] Problems with MM table and display in Fluid In-Reply-To: References: Message-ID: OK...I tried with Iteration: Type: {ink.type}
Color: {ink.color.colorName}
Printer: {f:for each="{ink.printer}" as="printer"}{printer.printer}{/f:for}
Base: {ink.base.base}
Drytime: {ink.drytime.drytime}
Capacity: {ink.capacity.capacity}
Everythink works but ink.printer has problems. Same errormessage as before. I will have a look in my books for debug viewhelper. Stefan Am 03.12.2010 13:14, schrieb Kay Strobach: > Hi, > > I assume, you need an array or an iterator to display all records ;) > > There is a debug view helper ;) > > Best regards > Kay > > >> {ink.printer.printer} >> results in an empty output >> >> A google search is completely empty: >> http://www.google.de/search?hl=de&client=firefox-a&hs=4H&rls=org.mozilla%3Ade%3Aofficial&q=Cannot+cast+object+of+type+Tx_Extbase_Persistence_ObjectStorage+to+string.&aq=f&aqi=&aql=&oq=&gs_rfai= >> >> >> So...I hope that you have an additional idea. >> >> Stefan > From firma at sfroemken.de Fri Dec 3 13:27:11 2010 From: firma at sfroemken.de (=?ISO-8859-15?Q?Stefan_Fr=F6mken?=) Date: Fri, 03 Dec 2010 13:27:11 +0100 Subject: [FLOW3-general] Problems with MM table and display in Fluid In-Reply-To: References: Message-ID: Ahhh...shit. I have to use < and > and not { and }. It works now. THX Stefan Am 03.12.2010 13:24, schrieb Stefan Fr?mken: > OK...I tried with Iteration: > > > Type: {ink.type}
> Color: {ink.color.colorName}
> Printer: {f:for each="{ink.printer}" > as="printer"}{printer.printer}{/f:for}
> Base: {ink.base.base}
> Drytime: {ink.drytime.drytime}
> Capacity: {ink.capacity.capacity}
>
> > Everythink works but ink.printer has problems. Same errormessage as before. > > I will have a look in my books for debug viewhelper. > > Stefan > > > Am 03.12.2010 13:14, schrieb Kay Strobach: >> Hi, >> >> I assume, you need an array or an iterator to display all records ;) >> >> There is a debug view helper ;) >> >> Best regards >> Kay >> >> >>> {ink.printer.printer} >>> results in an empty output >>> >>> A google search is completely empty: >>> http://www.google.de/search?hl=de&client=firefox-a&hs=4H&rls=org.mozilla%3Ade%3Aofficial&q=Cannot+cast+object+of+type+Tx_Extbase_Persistence_ObjectStorage+to+string.&aq=f&aqi=&aql=&oq=&gs_rfai= >>> >>> >>> >>> So...I hope that you have an additional idea. >>> >>> Stefan >> > From firma at sfroemken.de Fri Dec 3 13:29:52 2010 From: firma at sfroemken.de (=?ISO-8859-15?Q?Stefan_Fr=F6mken?=) Date: Fri, 03 Dec 2010 13:29:52 +0100 Subject: [FLOW3-general] Problems with MM table and display in Fluid In-Reply-To: References: Message-ID: I found the informations about debug-helper. ThankYou {ink.printer} This outputs my ObjectStorage Object with my two printer Objects as array. Stefan Am 03.12.2010 13:24, schrieb Stefan Fr?mken: > OK...I tried with Iteration: > > > Type: {ink.type}
> Color: {ink.color.colorName}
> Printer: {f:for each="{ink.printer}" > as="printer"}{printer.printer}{/f:for}
> Base: {ink.base.base}
> Drytime: {ink.drytime.drytime}
> Capacity: {ink.capacity.capacity}
>
> > Everythink works but ink.printer has problems. Same errormessage as before. > > I will have a look in my books for debug viewhelper. > > Stefan > > > Am 03.12.2010 13:14, schrieb Kay Strobach: >> Hi, >> >> I assume, you need an array or an iterator to display all records ;) >> >> There is a debug view helper ;) >> >> Best regards >> Kay >> >> >>> {ink.printer.printer} >>> results in an empty output >>> >>> A google search is completely empty: >>> http://www.google.de/search?hl=de&client=firefox-a&hs=4H&rls=org.mozilla%3Ade%3Aofficial&q=Cannot+cast+object+of+type+Tx_Extbase_Persistence_ObjectStorage+to+string.&aq=f&aqi=&aql=&oq=&gs_rfai= >>> >>> >>> >>> So...I hope that you have an additional idea. >>> >>> Stefan >> > From typo3 at kay-strobach.de Fri Dec 3 13:30:28 2010 From: typo3 at kay-strobach.de (Kay Strobach) Date: Fri, 03 Dec 2010 13:30:28 +0100 Subject: [FLOW3-general] Problems with MM table and display in Fluid In-Reply-To: References: Message-ID: Hi, it's easy ;) {var} Best regards Kay Am 03.12.2010 13:24, schrieb Stefan Fr?mken: > OK...I tried with Iteration: > > > Type: {ink.type}
> Color: {ink.color.colorName}
> Printer: {f:for each="{ink.printer}" > as="printer"}{printer.printer}{/f:for}
> Base: {ink.base.base}
> Drytime: {ink.drytime.drytime}
> Capacity: {ink.capacity.capacity}
>
> > Everythink works but ink.printer has problems. Same errormessage as before. > > I will have a look in my books for debug viewhelper. > > Stefan > > > Am 03.12.2010 13:14, schrieb Kay Strobach: >> Hi, >> >> I assume, you need an array or an iterator to display all records ;) >> >> There is a debug view helper ;) >> >> Best regards >> Kay >> >> >>> {ink.printer.printer} >>> results in an empty output >>> >>> A google search is completely empty: >>> http://www.google.de/search?hl=de&client=firefox-a&hs=4H&rls=org.mozilla%3Ade%3Aofficial&q=Cannot+cast+object+of+type+Tx_Extbase_Persistence_ObjectStorage+to+string.&aq=f&aqi=&aql=&oq=&gs_rfai= >>> >>> >>> >>> So...I hope that you have an additional idea. >>> >>> Stefan >> > From typo3 at kay-strobach.de Fri Dec 3 13:31:07 2010 From: typo3 at kay-strobach.de (Kay Strobach) Date: Fri, 03 Dec 2010 13:31:07 +0100 Subject: [FLOW3-general] Problems with MM table and display in Fluid In-Reply-To: References: Message-ID: Hi, So you need to iterate. Best regards Kay Am 03.12.2010 13:29, schrieb Stefan Fr?mken: > I found the informations about debug-helper. ThankYou > > {ink.printer} > > This outputs my ObjectStorage Object with my two printer Objects as array. > > Stefan > > Am 03.12.2010 13:24, schrieb Stefan Fr?mken: >> OK...I tried with Iteration: >> >> >> Type: {ink.type}
>> Color: {ink.color.colorName}
>> Printer: {f:for each="{ink.printer}" >> as="printer"}{printer.printer}{/f:for}
>> Base: {ink.base.base}
>> Drytime: {ink.drytime.drytime}
>> Capacity: {ink.capacity.capacity}
>>
>> >> Everythink works but ink.printer has problems. Same errormessage as >> before. >> >> I will have a look in my books for debug viewhelper. >> >> Stefan >> >> >> Am 03.12.2010 13:14, schrieb Kay Strobach: >>> Hi, >>> >>> I assume, you need an array or an iterator to display all records ;) >>> >>> There is a debug view helper ;) >>> >>> Best regards >>> Kay >>> >>> >>>> {ink.printer.printer} >>>> results in an empty output >>>> >>>> A google search is completely empty: >>>> http://www.google.de/search?hl=de&client=firefox-a&hs=4H&rls=org.mozilla%3Ade%3Aofficial&q=Cannot+cast+object+of+type+Tx_Extbase_Persistence_ObjectStorage+to+string.&aq=f&aqi=&aql=&oq=&gs_rfai= >>>> >>>> >>>> >>>> >>>> So...I hope that you have an additional idea. >>>> >>>> Stefan >>> >> > From typo3 at kay-strobach.de Fri Dec 3 13:59:49 2010 From: typo3 at kay-strobach.de (Kay Strobach) Date: Fri, 03 Dec 2010 13:59:49 +0100 Subject: [FLOW3-general] How to use ExtJS forms In-Reply-To: References: Message-ID: http://forge.typo3.org/wiki/extension-mvc_extjs/ViewHelpers From firma at sfroemken.de Fri Dec 3 14:16:26 2010 From: firma at sfroemken.de (=?ISO-8859-15?Q?Stefan_Fr=F6mken?=) Date: Fri, 03 Dec 2010 14:16:26 +0100 Subject: [FLOW3-general] How to show a self defined selectbox in Fluid? Message-ID: Hello at all, in my db table I have some fields defined as select (to another table) and select (with self defined values). I have a problem with my self defined select fields: $TCA['tx_ebsink_domain_model_ink']['columns']['inktype']['config'] = array( 'type' => 'select', 'items' => array( array('LLL:EXT:ebsink/Resources/Private/Language/locallang_db.xml:tx_ebsink_domain_model_ink.inktype.I.0', '0'), array('LLL:EXT:ebsink/Resources/Private/Language/locallang_db.xml:tx_ebsink_domain_model_ink.inktype.I.1', '1'), array('LLL:EXT:ebsink/Resources/Private/Language/locallang_db.xml:tx_ebsink_domain_model_ink.inktype.I.2', '2'), ), 'size' => '1' ); so in db I only find 0, 1 or 2 and same in my frontend: Inktype: 1 But I want: Inktype: MEK Is there a finnished function or viewHelper in ExtBase or Fluid? If not...I think I have to generate this fields on my own like this: Acetone MEK Water But I think that this is not very dynamic. What do you think? Stefan From thomas at layh.com Fri Dec 3 14:21:00 2010 From: thomas at layh.com (Thomas Layh) Date: Fri, 3 Dec 2010 14:21:00 +0100 Subject: [FLOW3-general] Fluid and Japanese In-Reply-To: References: Message-ID: Thanks guys, I found a solution that works for me. I am combining the raw-ViewHelper with my own ViewHelper now. The own ViewHelper just replaces the < with the corresponding entity for now and this way it is not possible anymore to execute some JS stuff. Thanks again for the help. Greetings, Thomas On Fri, Dec 3, 2010 at 09:09, "Christian M?ller (Kitsunet)" < christian at kitsunet.de> wrote: > On 03.12.2010 07:37, Thomas Layh wrote: > >> Hey together, its me again with another problem. >> >> On my current FLOW3 Project there are about 45% of Japanese users so it is >> very important for me to display Japanese signs. >> >> Currently the Japanese signs are displayed as HTML Entities: >> 非同期通知(ク >> >> If I use the ViewHelper they are displayed correctly but then I >> have >> the problem that stuff like is executed. >> >> I checked all the ViewHelpers but I could not find one that works like I >> want it to. I tried the but it will not display my Japanese >> signs. >> >> Is there something I can do or do I have to write my own ViewHelper to >> catch >> this cases? >> >> Greetings and thanks for the help again. >> Thomas >> > > Why not go for UTF-8 and put the Kanji as they are instead of entities? > > Christian > > _______________________________________________ > FLOW3-general mailing list > FLOW3-general at lists.typo3.org > http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general > From bastian at typo3.org Fri Dec 3 14:41:22 2010 From: bastian at typo3.org (Bastian Waidelich) Date: Fri, 03 Dec 2010 14:41:22 +0100 Subject: [FLOW3-general] Fluid and Japanese In-Reply-To: References: Message-ID: Thomas Layh wrote: Hi Thomas, > I found a solution that works for me. I am combining the raw-ViewHelper with > my own ViewHelper now. Just be careful with the raw ViewHelper, as content won't be htmlspecialchar'd and something like "" would be outputted as is.. What about Christians suggestion to skip HTML entities and rely on UTF-8? Bastian From thomas at layh.com Fri Dec 3 18:27:54 2010 From: thomas at layh.com (Thomas Layh) Date: Fri, 3 Dec 2010 18:27:54 +0100 Subject: [FLOW3-general] Fluid and Japanese In-Reply-To: References: Message-ID: Hey Bastian, I am not that good with all this encoding stuff. My database is running on UTF-8, but still the Japanese signs are encoded like in my first mail. That was the reason for me to start searching for another solution. Greetings, Thomas On Fri, Dec 3, 2010 at 14:41, Bastian Waidelich wrote: > Thomas Layh wrote: > > Hi Thomas, > > > I found a solution that works for me. I am combining the raw-ViewHelper >> with >> my own ViewHelper now. >> > > Just be careful with the raw ViewHelper, as content won't be > htmlspecialchar'd and something like > "" would be outputted as is.. > > What about Christians suggestion to skip HTML entities and rely on UTF-8? > > Bastian > > _______________________________________________ > FLOW3-general mailing list > FLOW3-general at lists.typo3.org > http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general > From mick.mail.typo3 at gmail.com Fri Dec 3 21:56:05 2010 From: mick.mail.typo3 at gmail.com (Mick) Date: Fri, 03 Dec 2010 21:56:05 +0100 Subject: [FLOW3-general] How to use ExtJS forms In-Reply-To: References: Message-ID: Thank you for that good hint on Extbase wiki. On 03.12.2010 13:59, Kay Strobach wrote: > http://forge.typo3.org/wiki/extension-mvc_extjs/ViewHelpers From firma at sfroemken.de Mon Dec 6 09:34:04 2010 From: firma at sfroemken.de (=?ISO-8859-15?Q?Stefan_Fr=F6mken?=) Date: Mon, 06 Dec 2010 09:34:04 +0100 Subject: [FLOW3-general] group by in extbase Message-ID: Hello, you have many functions for selecting records in extbase repository, but I can't find a function for grouping a selection (GROUP BY). Is there something like that available or is it part of myself to create such an additional function in my repository? Stefan From firma at sfroemken.de Mon Dec 6 09:49:28 2010 From: firma at sfroemken.de (=?ISO-8859-15?Q?Stefan_Fr=F6mken?=) Date: Mon, 06 Dec 2010 09:49:28 +0100 Subject: [FLOW3-general] group by in extbase In-Reply-To: References: Message-ID: Am 06.12.2010 09:34, schrieb Stefan Fr?mken: > Hello, > > you have many functions for selecting records in extbase repository, but > I can't find a function for grouping a selection (GROUP BY). > > Is there something like that available or is it part of myself to create > such an additional function in my repository? > > Stefan Ah...I just found a third documentation. Grouping is not possible and you have to make your own query. From bastian at typo3.org Mon Dec 6 10:17:15 2010 From: bastian at typo3.org (Bastian Waidelich) Date: Mon, 06 Dec 2010 10:17:15 +0100 Subject: [FLOW3-general] group by in extbase In-Reply-To: References: Message-ID: Stefan Fr?mken wrote: Hi Stefan, > you have many functions for selecting records in extbase repository, but > I can't find a function for grouping a selection (GROUP BY). This is the mailing list for FLOW3 related discussions. Please have a look at the typo3.projects.typo3v4mvc [1] ML for Extbase and Fluid for v4 related issues. Best, Bastian [1] http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/ From firma at sfroemken.de Mon Dec 6 11:47:32 2010 From: firma at sfroemken.de (=?ISO-8859-15?Q?Stefan_Fr=F6mken?=) Date: Mon, 06 Dec 2010 11:47:32 +0100 Subject: [FLOW3-general] group by in extbase In-Reply-To: References: Message-ID: Am 06.12.2010 10:17, schrieb Bastian Waidelich: > Stefan Fr?mken wrote: > > Hi Stefan, > >> you have many functions for selecting records in extbase repository, but >> I can't find a function for grouping a selection (GROUP BY). > > This is the mailing list for FLOW3 related discussions. Please have a > look at the typo3.projects.typo3v4mvc [1] ML for Extbase and Fluid for > v4 related issues. > > Best, > Bastian > > [1] http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/ Ahhh...OK...looks much better. THX From typo3 at kay-strobach.de Mon Dec 6 14:40:57 2010 From: typo3 at kay-strobach.de (Kay Strobach) Date: Mon, 06 Dec 2010 14:40:57 +0100 Subject: [FLOW3-general] How to use ExtJS forms In-Reply-To: References: Message-ID: Am 03.12.2010 21:56, schrieb Mick: > Thank you for that good hint on Extbase wiki. > > On 03.12.2010 13:59, Kay Strobach wrote: >> http://forge.typo3.org/wiki/extension-mvc_extjs/ViewHelpers > Hi, No problem - know how hard it's to find information ;) Best regards Kay From ef at aijko.de Sat Dec 11 20:08:37 2010 From: ef at aijko.de (Erik Frister) Date: Sat, 11 Dec 2010 20:08:37 +0100 Subject: [FLOW3-general] Foreign Key Handling Message-ID: Hi guys, quick questions: in the tutorial, when I delete the blog, would all related posts and the comments for each post also automatically be deleted, or do I have to program that myself in the controller? Is there an option how to handle those foreign key constraints? Thanks, Erik From robert at typo3.org Mon Dec 13 11:14:16 2010 From: robert at typo3.org (Robert Lemke) Date: Mon, 13 Dec 2010 11:14:16 +0100 Subject: [FLOW3-general] Foreign Key Handling In-Reply-To: References: Message-ID: Hi Erik, Am 11.12.2010 um 20:08 schrieb Erik Frister: > quick questions: in the tutorial, when I delete the blog, would all related posts and the comments for each post also automatically be deleted, or do I have to program that myself in the controller? Is there an option how to handle those foreign key constraints? If you delete a blog, the posts will currently not be deleted, because they reside in their own repository (PostRepository) and we don't have any further foreign key constraints implemented yet. If you delete a Post though, all related comments will be deleted with it. So, the suggestion is, for now, to extend the remove() method in the BlogRepository and make sure to remove all Posts while removing a Blog. Cheers, Robert From ef at aijko.de Mon Dec 13 20:54:19 2010 From: ef at aijko.de (Erik Frister) Date: Mon, 13 Dec 2010 20:54:19 +0100 Subject: [FLOW3-general] Foreign Key Handling In-Reply-To: References: Message-ID: Hi Robert, thanks for your reply. So if I understood you correctly, aggregates will automatically be deleted when their aggregate root is deleted, but as soon as an object gets its own repository, I can no longer add any custom relations to other objects? Will something like this be implemented in the future? Thanks, Erik Robert Lemke wrote: > Hi Erik, > > Am 11.12.2010 um 20:08 schrieb Erik Frister: > >> quick questions: in the tutorial, when I delete the blog, would all related posts and the comments for each post also automatically be deleted, or do I have to program that myself in the controller? Is there an option how to handle those foreign key constraints? > > If you delete a blog, the posts will currently not be deleted, because they reside in their own repository (PostRepository) and we don't have any further foreign key constraints implemented yet. > > If you delete a Post though, all related comments will be deleted with it. > > So, the suggestion is, for now, to extend the remove() method in the BlogRepository and make sure to remove all Posts while removing a Blog. > > Cheers, > Robert > From dpacholczyk at gmail.com Mon Dec 27 22:57:51 2010 From: dpacholczyk at gmail.com (Dawid Pacholczyk) Date: Mon, 27 Dec 2010 22:57:51 +0100 Subject: [FLOW3-general] Problem with understanding the idea Message-ID: Hi List, I have a small problem with understanding the idea of FLOW3.As a TYPO3 user I see FLOW3 as a framework ONLY for TYPO3 and I mean by that a base of core TYPO3, a base of TYPO3 extensions. But then I think "wait a second. This is a "framework". Shouldn`t it be standalone?" And now the question. Can I (or maybe will I be able) to use FLOW3 as a normal php framework that will allow me to create an application not related with TYPO3 ? Watching on extbase most functions are related with TYPO3. Where I`m wrong with my thinking process ? Please give me a hint. Best regards, Dawid Pacholczyk From svparijs at bkwi.nl Tue Dec 28 15:41:38 2010 From: svparijs at bkwi.nl (Sebastiaan van Parijs) Date: Tue, 28 Dec 2010 15:41:38 +0100 Subject: [FLOW3-general] Fluid List Item issue Message-ID: Hey Guys, The example: Department1 Employee1 Employee2 Department2 Employee3 Employee4 Employee5 Etc. This is what im trying to get with LI's in html, but i dont have a clue how to get this out of the repository, and how to put it through Fluid and get the results i want. (See example) Any suggestions? Thnx in advance, Sebastiaan van Parijs From svparijs at bkwi.nl Tue Dec 28 15:49:03 2010 From: svparijs at bkwi.nl (Sebastiaan van Parijs) Date: Tue, 28 Dec 2010 15:49:03 +0100 Subject: [FLOW3-general] Problem with understanding the idea In-Reply-To: References: Message-ID: On 12/27/10 10:57 PM, Dawid Pacholczyk wrote: > Hi List, > I have a small problem with understanding the idea of FLOW3.As a TYPO3 > user I see FLOW3 as a framework ONLY for TYPO3 and I mean by that a base > of core TYPO3, a base of TYPO3 extensions. But then I think "wait a > second. This is a "framework". Shouldn`t it be standalone?" And now the > question. Can I (or maybe will I be able) to use FLOW3 as a normal php > framework that will allow me to create an application not related with > TYPO3 ? Watching on extbase most functions are related with TYPO3. Where > I`m wrong with my thinking process ? Please give me a hint. > > Best regards, > Dawid Pacholczyk Hi Dawid, Yes Flow3 is a standalone Framework, that you can build upon. Typo3 version 5 is build upon the framework. I suggest you read a bit more on this subject on the flow3.typo3.org site. Hope this helps, Sebastiaan van Parijs From soren.malling at gmail.com Tue Dec 28 17:39:17 2010 From: soren.malling at gmail.com (=?ISO-8859-1?Q?S=F8ren_Malling?=) Date: Tue, 28 Dec 2010 17:39:17 +0100 Subject: [FLOW3-general] Problem with understanding the idea In-Reply-To: References: Message-ID: Hi Dawid, I can assure you (with out being a part of FLOW3 or the TYPO3 Phoenix team) that you can build stand-alone applications with FLOW3! A example is http://twitcode.org/ (not mine, so can't say much about it). Personally i'm writing a article workflow system for a project, to be used this summer. Best regards S?ren On Monday, December 27, 2010, Dawid Pacholczyk wrote: > Hi List, > ?I have a small problem with understanding the idea of FLOW3.As a TYPO3 user I see FLOW3 as a framework ONLY for TYPO3 and I mean by that a base of core TYPO3, a base of TYPO3 extensions. But then I think "wait a second. This is a "framework". Shouldn`t it be standalone?" And now the question. Can I (or maybe will I be able) to use FLOW3 as a normal php framework that will allow me to create an application not related with TYPO3 ? Watching on extbase most functions are related with TYPO3. Where I`m wrong with my thinking process ? Please give me a hint. > > Best regards, > Dawid Pacholczyk > _______________________________________________ > FLOW3-general mailing list > FLOW3-general at lists.typo3.org > http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general > -- S?ren Malling TYPO3 Brugergruppe Danmark: www.typo3danmark.dk Twitter: twitter.com/sorenmalling