From info at rs-websystems.de Tue Jul 1 08:12:39 2008 From: info at rs-websystems.de (Steffen Ritter) Date: Tue, 01 Jul 2008 08:12:39 +0200 Subject: [TYPO3-dev] Ideas Message-ID: Hello list, I'm currently thinking about the following: TYPO3s Pages lacks somne kind of "current state" and "assigned to" functionality. Admins should have the possibility to set Asssign to be user, be users should have the possibility zu self-assign to page if no-one has it until now. Further more author, and author_email could automatically be set if assigned to took place. In fact with this data we could improve page tree with highlighting of your "jobs". This might be done with an button in header, graying out (like with search) the pages not assigned to you oder by another backgroundcolor for the row with the page, or another font color. Additionally I would like to introduce some kind of workingstate so that we might apply things like "not started yet" "currently working on" "backponed" "finished, not reviewed" "reviewed" and / or others. IN BE this should go in Icon Overlay, title Tag of page and automatic generated ToDo List in Taskcenter and dashboard. In addition we might use such thing on informational websites showing up the "quality" of content. Such as MediaWiki shows if page was reviewed. What do you think about such improovements? Steffen From xoonsji02 at sneakemail.com Tue Jul 1 12:14:31 2008 From: xoonsji02 at sneakemail.com (bernd wilke) Date: Tue, 1 Jul 2008 10:14:31 +0000 (UTC) Subject: [TYPO3-dev] Ideas References: Message-ID: on Tue, 01 Jul 2008 08:12:39 +0200, Steffen Ritter wrote: > Hello list, > I'm currently thinking about the following: TYPO3s Pages lacks somne > kind of "current state" and "assigned to" functionality. Admins should > have the possibility to set Asssign to be user, be users should have the > possibility zu self-assign to page if no-one has it until now. Further > more author, and author_email could automatically be set if assigned to > took place. In fact with this data we could improve page tree with > highlighting of your "jobs". This might be done with an button in > header, graying out (like with search) the pages not assigned to you > oder by another backgroundcolor for the row with the page, or another > font color. > > > Additionally I would like to introduce some kind of workingstate so that > we might apply things like "not started yet" "currently working on" > "backponed" "finished, not reviewed" "reviewed" and / or others. > > IN BE this should go in Icon Overlay, title Tag of page and automatic > generated ToDo List in Taskcenter and dashboard. In addition we might > use such thing on informational websites showing up the "quality" of > content. Such as MediaWiki shows if page was reviewed. > > What do you think about such improovements? if you want to invent this you should go one step further: not only a state for the page, but a possibility to let customers or chief editors evaluate single pages. maybe something like a bugtracker on page-base. Allowed FE-users (FE-group or BE-User with FE-edit) should be able to store remarks (like comments) and change the state of the page. bernd -- http://www.pi-phi.de/t3v4/cheatsheet.html From steffen at sk-typo3.de Tue Jul 1 12:55:10 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Tue, 01 Jul 2008 12:55:10 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org Message-ID: Hi, i proudly present you a new service on support.typo3.org: Snippets http://support.typo3.org/snippets/ What is it for? * paste your code to present it in newslist posts * paste your code if you find it useful for others * paste your code if you have a problem * vote for snippets if you find them useful * comment snippets if they are wrong * comment snippet to help if snippet has a problem * search in snippets if you have a problem Goal is to have all the snippets on a central place for easy refering to. Some rules for posting snippets: * use your real name (or log in with your typo3-account) * Add an description what is the snippet for * If snippet has a problem, mark it * Add useful tags to your snippet Commenting function is for logged in - users only. If you encounter any prolems, send me a mail. Have fun and use it! vg Steffen From fsuter at cobweb.ch Tue Jul 1 13:17:35 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Tue, 01 Jul 2008 13:17:35 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects Message-ID: Dear Developers, As you saw if you also subscribe to the Announce list, we just launched today the first sponsored projects. If you don't know what we're talking about, you can catch up with the news posted on news.typo3.org. Basically sponsored projects are Core TYPO3 v4 projects with well-defined goals for which we will try to raise in money in order to actually pay the developers for their work. This form of support should help accelerate the development of TYPO3. The best thing is that you can be part of this. Sponsored projects aim for a greater involvement of the community. Refer to [1] for more information. See also [2] for a more personal view of how you can participate in sponsored projects and what you can gain from them. So reach for your wallet! Alternately if you prefer getting your hands dirty there are currently two open positions, both for the New FORM project. We are looking for a developer who would also act as backup project leader to Patrick Broens and an additional reviewer. Please refer to [3] for more details. We hope you will find these opportunities as exciting as we do. -- Francois Suter (francois at typo3.org) TYPO3 v4 Sponsorship Manager [1] http://typo3.org/sponsoring/ [2] http://typo3.org/development/sponsoring/sponsored-projects-and-me/ [3] http://typo3.org/development/sponsoring/open-positions/ From ernst at cron-it.de Tue Jul 1 14:41:06 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Tue, 01 Jul 2008 14:41:06 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Hi Steffen, very cool. As snippets tend to get "old" and obsolet by newer TYPO3 (or extension) versions, it might be cool to have a way to tag some snippet like we do in TYPO3 extensions: dependencies: TYPO3 4.0.0- or tt_news 2.4.0- etc. Cheers, Ernesto Steffen Kamper wrote: on 01.07.2008 12:37: > Hi, > > i proudly present you a new service on support.typo3.org: > Snippets > > http://support.typo3.org/snippets/ > > What is it for? > > * paste your code to present it in newslist posts > * paste your code if you find it useful for others > * paste your code if you have a problem > > * vote for snippets if you find them useful > * comment snippets if they are wrong > * comment snippet to help if snippet has a problem > * search in snippets if you have a problem > > Goal is to have all the snippets on a central place for easy refering to. > > Some rules for posting snippets: > * use your real name (or log in with your typo3-account) > * Add an description what is the snippet for > * If snippet has a problem, mark it > * Add useful tags to your snippet > > Commenting function is for logged in - users only. > If you encounter any prolems, send me a mail. > > Have fun and use it! > > vg Steffen From Felix.Buenemann at gmx.de Tue Jul 1 15:04:58 2008 From: Felix.Buenemann at gmx.de (Felix Buenemann) Date: Tue, 01 Jul 2008 15:04:58 +0200 Subject: [TYPO3-dev] GIFBUILDER Caching-Scheme for Extension Message-ID: Hello, I am currently coding on an extension that uses GIFBUILDER from PHP to create a thumbnail-gallery of random project records. Currently the thumbnails are regenerated on every page load. I would like to include a caching theme, which only generates a thumbnail for each record once and then keeps if for the future (or until image cache is cleared). I'm not sure how to approach this. Currently the thumbnail filenames are autogenerated, so there's no way to reuse it unless I do a database update to store this filename along with the record. Another way would be to use php to move the autogenerated file to a filename matching the original image's filename, which would save database updates, improving performance. But probably there is a much more elegant way to use Typo3 API and inbuild caching scheme so please enlighten me on this issue. Best Regards, Felix Buenemann From steffen at sk-typo3.de Tue Jul 1 15:35:40 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Tue, 01 Jul 2008 15:35:40 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Ernesto Baschny [cron IT] schrieb: > Hi Steffen, > > very cool. As snippets tend to get "old" and obsolet by newer TYPO3 (or > extension) versions, it might be cool to have a way to tag some snippet > like we do in TYPO3 extensions: dependencies: TYPO3 4.0.0- or tt_news > 2.4.0- etc. > > Cheers, > Ernesto > Hi Ernesto, yes, good idea. How should this be done, extra Version-field as text input? vg Steffen From fsuter at cobweb.ch Tue Jul 1 16:34:39 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Tue, 01 Jul 2008 16:34:39 +0200 Subject: [TYPO3-dev] t3lib_tcemain::log() question Message-ID: Hi all, I am playing around with TCEmain at the moment. Many messages get written using the log() method. All these messages are stored in the sys_log. Errors (messages with error status > 0) are also stored in an internal array called $this->errorLog. I wanted to use this array to write errors to the devlog so that I could check all errors in one place and not switch between devlog and sys_log. The messages as stored in $this->errorLog are not very helpful. Messages are comprised of a string (paremeter $details in the log() call) which may contain %s markers. Another parameter ($data) may be an array whose data can be taken to replace the %s markers. But this substitution is not done in the log() method. Neither is it done in the sys_log. It is only done when the sys_log is displayed in the Log BE module. This means that the message stored in $this->errorLog is rather useless. It looks like: [1.1.12]: SQL error: '%s' (%s) whereas the sys_log in the Log module looks like: Attempt to insert a record on page 'Duplicate entry '408143' for key 2' (tx_whfdb_individual_associates:NEW_5) from table '' without permissions. Or non-existing page. (msg#1.1.12) Slightly more informative, isn't it? So the question is: what is $this->errorLog for? For sure it can be used just to do count($this->errorLog) to see if any error happened, but it is not informative enough to be useful. Is it useless then or would it be worth patching the log() method to store better messages in $this->errorLog? Cheers -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From masi-no at spam-typo3.org Tue Jul 1 16:39:31 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Tue, 01 Jul 2008 16:39:31 +0200 Subject: [TYPO3-dev] GIFBUILDER Caching-Scheme for Extension In-Reply-To: References: Message-ID: Felix Buenemann schrieb: > Hello, > > I am currently coding on an extension that uses GIFBUILDER from PHP to > create a thumbnail-gallery of random project records. Currently the > thumbnails are regenerated on every page load. Why? How do you generate them? If you use an IMAGE TS object the image will be cached. Masi From steffen at sk-typo3.de Tue Jul 1 18:29:51 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Tue, 01 Jul 2008 18:29:51 +0200 Subject: [TYPO3-dev] Mailing in workspaces Message-ID: Hi, when i look to core how mailing is done in workspaces [1], it's not flexible and there is no flow control Is there still a VETO from Kasper to all this things concerning workspaces or is it allowed to modify? vg Steffen [1] http://support.typo3.org/snippets/c/8/ From typo3RE.MO.VE. at RE.MO.VE.prolabium.com Tue Jul 1 21:32:43 2008 From: typo3RE.MO.VE. at RE.MO.VE.prolabium.com (Krystian Szymukowicz) Date: Tue, 01 Jul 2008 21:32:43 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Steffen Kamper wrote: > i proudly present you a new service on support.typo3.org: > Snippets > > http://support.typo3.org/snippets/ > Thanks for that Steffen. It is long awaited feature. I've just added one snippet and discovered a little bug. In description quotes " are shown as " But besides that - a really good work :) -- grtz Krystian From bb at bellevuevej.dk Tue Jul 1 21:55:51 2008 From: bb at bellevuevej.dk (Brian Bendtsen) Date: Tue, 01 Jul 2008 21:55:51 +0200 Subject: [TYPO3-dev] itemsProcFunc datamap? In-Reply-To: References: Message-ID: Brian Bendtsen skrev: > Steffen Kamper skrev: >> Brian Bendtsen schrieb: >>> Steffen Kamper skrev: >>>> Brian Bendtsen schrieb: >>>>> Hi >>>>> >>>>> Im using IRRE in an extension of mine and need a select box in >>>>> child element to show special values. Therefore im using the >>>>> itemsProcFunc option. >>>>> >>>>> The problem is, that the items in the selectbox has to generated by >>>>> using a value from the parent record. Im just not sure how to fetch >>>>> a value from the parent record. When using hooks like >>>>> processDatamap_afterDatabaseOperations its possible to access a >>>>> complete datamap. Is this possible with a function called from >>>>> itemsProcFunc? >>>>> >>>>> Any hints? >>>>> >>>>> /Brian >>>> >>>> sure, you need to declare the function with the params >>>> function doTheItemsProcFunc($params, $conf) { ... } >>>> >>>> vg Steffen >>> Hi >>> >>> Yeah, Im with you this far, but I have tried to fetch the datamap >>> like this: >>> >>> $conf->datamap - but it returns nothing >>> >>> /Brian >> >> look at the arrays, it's all in >> t3lib_div::debug(array($params,$conf),'show me'); >> >> the arrays are plaiin arrays, there are no objects in. >> >> vg Steffen > I use this: > > t3lib_div::devlog('myFunction','extName',0,array($params, $conf)); > > The $conf returns a "unknown object" > > /Brian Am I misunderstanding something? /Brian From masi-no at spam-typo3.org Tue Jul 1 22:10:12 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Tue, 01 Jul 2008 22:10:12 +0200 Subject: [TYPO3-dev] Mailing in workspaces In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi, > > when i look to core how mailing is done in workspaces [1], it's not > flexible and there is no flow control > > Is there still a VETO from Kasper to all this things concerning > workspaces or is it allowed to modify? I think it's ok to propose a patch if it touches only the icing and not the guts of the workspace systems. Adding configurable (and localizable!) mails won't be troublesome. Masi From dmitry at typo3.org Tue Jul 1 22:27:23 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 01 Jul 2008 23:27:23 +0300 Subject: [TYPO3-dev] Mailing in workspaces In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > Is there still a VETO from Kasper to all this things concerning > workspaces or is it allowed to modify? Kasper never vetoed workspace changes. The only rule is: Kasper must approve any workspaces-related change. -- Dmitry Dulepov http://typo3bloke.net/ From dmitry at typo3.org Tue Jul 1 22:29:50 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 01 Jul 2008 23:29:50 +0300 Subject: [TYPO3-dev] t3lib_tcemain::log() question In-Reply-To: References: Message-ID: Francois Suter wrote: > So the question is: what is $this->errorLog for? For sure it can be used > just to do count($this->errorLog) to see if any error happened, but it > is not informative enough to be useful. Is it useless then or would it > be worth patching the log() method to store better messages in > $this->errorLog? As far as I know it is for use from applications. Formatters were introduced later and "slipped" into $errorLog. However alt_doc shows error correctly. Check how it formats them, may be we need a new official public method in TCEmain to perform such formatting. -- Dmitry Dulepov http://typo3bloke.net/ From steffen at sk-typo3.de Wed Jul 2 01:17:28 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Wed, 02 Jul 2008 01:17:28 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Krystian Szymukowicz schrieb: > Steffen Kamper wrote: >> i proudly present you a new service on support.typo3.org: >> Snippets >> >> http://support.typo3.org/snippets/ >> > > Thanks for that Steffen. It is long awaited feature. > > > I've just added one snippet and discovered a little bug. > In description quotes " are shown as " > > But besides that - a really good work :) > Hi Krystian, thx, i fixed that. vg Steffen From christoph.koehler at gmail.com Wed Jul 2 08:39:01 2008 From: christoph.koehler at gmail.com (Christoph Koehler) Date: Wed, 2 Jul 2008 06:39:01 +0000 (UTC) Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org References: Message-ID: In article Steffen Kamper wrote: > Hi, > i proudly present you a new service on support.typo3.org: > Snippets > http://support.typo3.org/snippets/ > What is it for? > * paste your code to present it in newslist posts > * paste your code if you find it useful for others > * paste your code if you have a problem > * vote for snippets if you find them useful > * comment snippets if they are wrong > * comment snippet to help if snippet has a problem > * search in snippets if you have a problem > Goal is to have all the snippets on a central place for easy > refering to. > Some rules for posting snippets: > * use your real name (or log in with your typo3-account) > * Add an description what is the snippet for > * If snippet has a problem, mark it > * Add useful tags to your snippet > Commenting function is for logged in - users only. > If you encounter any prolems, send me a mail. > Have fun and use it! Do you have an API for it so I can create snippets directly from my editor? REST would be perfect. Christoph -- I'm using an evaluation license of nemo since 386 days. You should really try it! http://www.malcom-mac.com/nemo From steffen at sk-typo3.de Wed Jul 2 08:56:20 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Wed, 02 Jul 2008 08:56:20 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Christoph Koehler schrieb: > > Do you have an API for it so I can create snippets directly from my > editor? REST would be perfect. > > Christoph > > not yet, will follow in next time, Jeff already asked for. vg Steffen From ben at netcreators.com Wed Jul 2 09:29:12 2008 From: ben at netcreators.com (ben van 't ende [netcreators]) Date: Wed, 02 Jul 2008 09:29:12 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Megacool!! tHNx ben -- netcreators :: creation and innovation www.netcreators.com - www.TYPO3.nl From fsuter at cobweb.ch Wed Jul 2 09:30:42 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Wed, 02 Jul 2008 09:30:42 +0200 Subject: [TYPO3-dev] t3lib_tcemain::log() question In-Reply-To: References: Message-ID: Hi Dmitry, > As far as I know it is for use from applications. Formatters were > introduced later and "slipped" into $errorLog. However alt_doc shows > error correctly. Check how it formats them, may be we need a new > official public method in TCEmain to perform such formatting. Thanks for the background info. I'll try to look into that when I have some time (whenever that might be :-) ) Cheers -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From typo3dev2008.nospam1 at geithware.de Wed Jul 2 09:40:02 2008 From: typo3dev2008.nospam1 at geithware.de (Stefan Geith) Date: Wed, 02 Jul 2008 09:40:02 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi, > > i proudly present you a new service on support.typo3.org: > Snippets > > http://support.typo3.org/snippets/ Great ! Until now I often used the (german only) site pi-phi(dot)de/t3v4/cheatsheet.html Maybe Bernd Wilke, who did this page with lots of TS snippets is willing to copy them ? - Stefan From Felix.Buenemann at gmx.de Wed Jul 2 11:07:27 2008 From: Felix.Buenemann at gmx.de (Felix Buenemann) Date: Wed, 02 Jul 2008 11:07:27 +0200 Subject: [TYPO3-dev] GIFBUILDER Caching-Scheme for Extension In-Reply-To: References: Message-ID: Hello Martin, Martin Kutschker schrieb: > Felix Buenemann schrieb: >> Hello, >> >> I am currently coding on an extension that uses GIFBUILDER from PHP to >> create a thumbnail-gallery of random project records. Currently the >> thumbnails are regenerated on every page load. > > Why? How do you generate them? If you use an IMAGE TS object the image > will be cached. I did some more research and now I see that the images are cached, I was not seing this before because I was using a lot of duplicated entries int he database which also created duplicates of the images. Now working with a small dataset I can see it is doing caching. However only images are cached, but I also create GIFBUILDER text objects as overlays displayed by a javascript mouseover. These overlays are only generated once where needed per page (i.e. if i have the same record displaying two times, it'll use the same text overlay graphic), but if I reload the page, those overlay get regenerated. So how can I make use of caching for those GIFBUILDER text graphics aswell (they contain part of the title attribute from the record). Also I noticed that format attribute is ignored when creating gifbuilder objects from PHP, they always match the input file format, using code like: $ts['img'] = 'IMAGE'; $ts['img.']['file'] = $imgFullPath; $ts['img.']['file.']['format'] = 'jpg'; $ts['img.']['file.']['quality'] = 85; $ts['img.']['file.']['width'] = '107c'; $ts['img.']['file.']['height'] = '107c'; $thumbnailImg = $this->cObj->IMAGE($ts['img.']); (resulting thumb: gif=>gif, jpg=>jpg,png=>png) This is using Typo3 4.2.1. > > Masi Best Regards, Felix Buenemann From steffen at sk-typo3.de Wed Jul 2 13:22:14 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Wed, 02 Jul 2008 13:22:14 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Christoph Koehler schrieb: > > Do you have an API for it so I can create snippets directly from my > editor? REST would be perfect. > > Christoph > > i like the idea of an API and looked for possibilities. i think xml-rpc is a good way to do the communication. Do you know any examples of "native" php and xml-rpc? vg Steffen From shadow333 at gmail.com Wed Jul 2 13:36:57 2008 From: shadow333 at gmail.com (Oliver Leitner) Date: Wed, 2 Jul 2008 13:36:57 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Hello Guys Just a few general Things: 1. Most of the code should be going to wiki.typo3.org, or is that new snippets thing a replacement for the wiki? 2. Secondly, as far as i know we already have an api, that everyone may download and read, even if it might be unofficial: http://www.typo3-unleashed.net/typo3_api.html If we go for php snippets, it would be nice if it would be possible to integrate that api into the typo3 homepage... I hope im not stepping onto anyones feet with my questions. Greetings On Wed, Jul 2, 2008 at 1:22 PM, Steffen Kamper wrote: > Christoph Koehler schrieb: > > > > Do you have an API for it so I can create snippets directly from my > > editor? REST would be perfect. > > > > Christoph > > > > > > i like the idea of an API and looked for possibilities. i think xml-rpc > is a good way to do the communication. > Do you know any examples of "native" php and xml-rpc? > > vg Steffen > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > -- Oliver Leitner http://www.neverslair-blog.net From steffen at sk-typo3.de Wed Jul 2 13:52:00 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Wed, 02 Jul 2008 13:52:00 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Oliver Leitner schrieb: > Hello Guys > > Just a few general Things: > > 1. Most of the code should be going to wiki.typo3.org, or is that new > snippets thing a replacement for the wiki? > 2. Secondly, as far as i know we already have an api, that everyone may > download and read, even if it might be unofficial: > http://www.typo3-unleashed.net/typo3_api.html > > If we go for php snippets, it would be nice if it would be possible to > integrate that api into the typo3 homepage... > > > I hope im not stepping onto anyones feet with my questions. > > Greetings > > Hi, you misunderstood. API is meant for snippets only, so you can receive or send snippets out of any application. This has nothing to do with TYPO3 API. If you look for that, look here: http://typo3.org/fileadmin/typo3api-4.0.0/ vg Steffen From christoph.koehler at gmail.com Wed Jul 2 16:34:19 2008 From: christoph.koehler at gmail.com (Christoph Koehler) Date: Wed, 2 Jul 2008 14:34:19 +0000 (UTC) Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org References: Message-ID: In article Steffen Kamper wrote: > Christoph Koehler schrieb: >> >> Do you have an API for it so I can create snippets directly from >> my editor? REST would be perfect. >> >> Christoph >> > i like the idea of an API and looked for possibilities. i think > xml-rpc is a good way to do the communication. > Do you know any examples of "native" php and xml-rpc? > vg Steffen No, I don't, sorry. All I know about APIs is Rails' RESTful stuff :) Christoph -- I'm using an evaluation license of nemo since 386 days. You should really try it! http://www.malcom-mac.com/nemo From simon at rundell.org.uk Wed Jul 2 16:41:00 2008 From: simon at rundell.org.uk (Fr. Simon Rundell SCP) Date: Wed, 2 Jul 2008 15:41:00 +0100 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: I don't know about anyone else, but those computer-generated API documents are really impenetrable. Oh for a human-created set of examples! S+ 2008/7/2 Christoph Koehler : > In article > Steffen > Kamper wrote: > > Christoph Koehler schrieb: > >> > >> Do you have an API for it so I can create snippets directly from > >> my editor? REST would be perfect. > >> > >> Christoph > >> > > > i like the idea of an API and looked for possibilities. i think > > xml-rpc is a good way to do the communication. > > Do you know any examples of "native" php and xml-rpc? > > > vg Steffen > > No, I don't, sorry. All I know about APIs is Rails' RESTful stuff :) > > Christoph > > -- > I'm using an evaluation license of nemo since 386 days. > You should really try it! > http://www.malcom-mac.com/nemo > > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > -- Fr. Simon Rundell SCP Parish of S. Thomas the Apostle, Elson The Vicarage, 21 Elson Road, Gosport, Hants, UK, PO12 4BL Tel: 02392 582824 Mob: 07976 802123 email: simon at rundell.org.uk web: http://www.saintthomaselson.org.uk blog: http://frsimon.wordpress.com "I came that you may have life - life in all its fullness" John 10:10 READ CAREFULLY. By reading this email, you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. From shadow333 at gmail.com Wed Jul 2 16:43:53 2008 From: shadow333 at gmail.com (Oliver Leitner) Date: Wed, 2 Jul 2008 16:43:53 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: I agree, human examples are nice, but wiki anyone?;=) On Wed, Jul 2, 2008 at 4:41 PM, Fr. Simon Rundell SCP wrote: > I don't know about anyone else, but those computer-generated API documents > are really impenetrable. Oh for a human-created set of examples! > S+ > > 2008/7/2 Christoph Koehler : > > > In article > > Steffen > > Kamper wrote: > > > Christoph Koehler schrieb: > > >> > > >> Do you have an API for it so I can create snippets directly from > > >> my editor? REST would be perfect. > > >> > > >> Christoph > > >> > > > > > i like the idea of an API and looked for possibilities. i think > > > xml-rpc is a good way to do the communication. > > > Do you know any examples of "native" php and xml-rpc? > > > > > vg Steffen > > > > No, I don't, sorry. All I know about APIs is Rails' RESTful stuff :) > > > > Christoph > > > > -- > > I'm using an evaluation license of nemo since 386 days. > > You should really try it! > > http://www.malcom-mac.com/nemo > > > > _______________________________________________ > > TYPO3-dev mailing list > > TYPO3-dev at lists.netfielders.de > > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > > > > > > -- > Fr. Simon Rundell SCP > Parish of S. Thomas the Apostle, Elson > The Vicarage, 21 Elson Road, Gosport, Hants, UK, PO12 4BL > Tel: 02392 582824 Mob: 07976 802123 > email: simon at rundell.org.uk > web: http://www.saintthomaselson.org.uk > blog: http://frsimon.wordpress.com > > > "I came that you may have life - life in all its fullness" > John 10:10 > > READ CAREFULLY. By reading this email, you agree, on behalf of your > employer, to release me from all obligations and waivers arising from any > and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, > clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and > acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with > your employer, its partners, licensors, agents and assigns, in perpetuity, > without prejudice to my ongoing rights and privileges. You further > represent > that you have the authority to release me from any BOGUS AGREEMENTS on > behalf of your employer. > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > -- Oliver Leitner http://www.neverslair-blog.net From xoonsji02 at sneakemail.com Wed Jul 2 17:27:33 2008 From: xoonsji02 at sneakemail.com (bernd wilke) Date: Wed, 2 Jul 2008 15:27:33 +0000 (UTC) Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org References: Message-ID: on Wed, 02 Jul 2008 09:40:02 +0200, Stefan Geith wrote: > Steffen Kamper schrieb: >> Hi, >> >> i proudly present you a new service on support.typo3.org: Snippets >> >> http://support.typo3.org/snippets/ > > Great ! > > Until now I often used the (german only) site > pi-phi(dot)de/t3v4/cheatsheet.html > > Maybe Bernd Wilke, who did this page with lots of TS snippets is willing > to copy them ? > feel free to copy and translate the description of missing snippets :-) at that time: please test it whether it works with the actual TYPO3- version in the described way bernd -- http://www.pi-phi.de/t3v4/cheatsheet.html From steffen at sk-typo3.de Wed Jul 2 18:10:19 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Wed, 02 Jul 2008 18:10:19 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Christoph Koehler schrieb: > In article > Steffen > Kamper wrote: >> Christoph Koehler schrieb: >>> >>> Do you have an API for it so I can create snippets directly from >>> my editor? REST would be perfect. >>> >>> Christoph >>> > >> i like the idea of an API and looked for possibilities. i think >> xml-rpc is a good way to do the communication. >> Do you know any examples of "native" php and xml-rpc? > >> vg Steffen > > No, I don't, sorry. All I know about APIs is Rails' RESTful stuff :) > > Christoph > > things can be easy :) http://typo3.org/documentation/document-library/extension-manuals/xmlrpc_lib/1.0.0/view/toc/0/ vg Steffen From christoph.koehler at gmail.com Wed Jul 2 20:27:54 2008 From: christoph.koehler at gmail.com (Christoph Koehler) Date: Wed, 2 Jul 2008 18:27:54 +0000 (UTC) Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org References: Message-ID: In article Steffen Kamper wrote: >> >> No, I don't, sorry. All I know about APIs is Rails' RESTful stuff >> :) >> Christoph >> > things can be easy :) > http://typo3.org/documentation/document-library/extension-manuals/xmlr > pc_lib/1.0.0/view/toc/0/ > vg Steffen Way to go! :) -- I'm using an evaluation license of nemo since 386 days. You should really try it! http://www.malcom-mac.com/nemo From steffen at sk-typo3.de Wed Jul 2 21:03:52 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Wed, 02 Jul 2008 21:03:52 +0200 Subject: [TYPO3-dev] Mountpoint handling / problems In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Steffen Kamper wrote: >> Any opinions on that? > > Just mount it for user as user mount point. > Hi, the problem is following root |- [1] main page |- [2] theme 1 |- - [3] subtheme 1 [4]subagency |- [5] mountpage of theme 1 Now when you see page 4 in FE, you have [2] and [3] in menu because they are mounted with mp 5. But - I'm not possible to link to subtheme 1 page as subpage from mp 5, i always are child of root, but i need to stay beyond subageny (4) When I change the link in rte manually (say id=3&MP=2-5) rte says: page not found But Left menu creates this link and this works I hope that describes the problem better, i don't know how i can do it. vg Steffen vg Steffen From ss at cabag.ch Thu Jul 3 10:08:40 2008 From: ss at cabag.ch (Sonja Scholz) Date: Thu, 03 Jul 2008 10:08:40 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... Message-ID: Hi everyone We would like to select records from a table with certain criterias. The records should be translated by language overlay and the workspace preview should also be considered. Additionally of course the enableFields should be taken care of. We could not find any satisfying solution. Language and enableFields is easy, but the whole workspace thing is nearly impossible to do it the right way. There should be really ONE simple snippet/example which includes everything which should be considered. There are nearly no extensions which do workspace preview, because it is so hard to implement. It would also be nice to have a general function for doing that: http://bugs.typo3.org/view.php?id=8889 It would be also great if one could JOIN multiple tables and still the workspace would be recognized. Imagine you have some records which have a (real) MM relation to another table (categories) and you want to select all records which are in category B, but translated and workspace preview... If you want to have extension developer implementing workspace, it has to be as easy as possible :-) Does anybody have a usable example? Best regards, Sonja From ernst at cron-it.de Thu Jul 3 10:12:16 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Thu, 03 Jul 2008 10:12:16 +0200 Subject: [TYPO3-dev] Mountpoint handling / problems In-Reply-To: References: Message-ID: Hi, I don't think this is currently possible, but I like the idea of having also mount-point sub-pages shown in the page tree, which can be very useful for the linking purpose. Might be that also RTE has to be instructed to handle that. Stan is your man to do that. :) Cheers, Ernesto Steffen Kamper wrote: on 02.07.2008 21:03: > Dmitry Dulepov [typo3] schrieb: >> Hi! >> >> Steffen Kamper wrote: >>> Any opinions on that? >> >> Just mount it for user as user mount point. >> > > Hi, > > the problem is following > > root > |- [1] main page > |- [2] theme 1 > |- - [3] subtheme 1 > [4]subagency > |- [5] mountpage of theme 1 > > Now when you see page 4 in FE, you have [2] and [3] in menu because they > are mounted with mp 5. > But - I'm not possible to link to subtheme 1 page as subpage from mp 5, > i always are child of root, but i need to stay beyond subageny (4) > > When I change the link in rte manually (say id=3&MP=2-5) rte says: page > not found > But Left menu creates this link and this works > > I hope that describes the problem better, i don't know how i can do it. > > vg Steffen > > vg Steffen From ernst at cron-it.de Thu Jul 3 10:41:13 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Thu, 03 Jul 2008 10:41:13 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Sonja Scholz wrote: on 03.07.2008 10:08: > We would like to select records from a table with certain criterias. The > records should be translated by language overlay and the workspace > preview should also be considered. Additionally of course the > enableFields should be taken care of. > > We could not find any satisfying solution. Language and enableFields is > easy, but the whole workspace thing is nearly impossible to do it the > right way. > > There should be really ONE simple snippet/example which includes > everything which should be considered. > > There are nearly no extensions which do workspace preview, because it is > so hard to implement. > > It would also be nice to have a general function for doing that: > http://bugs.typo3.org/view.php?id=8889 > > It would be also great if one could JOIN multiple tables and still the > workspace would be recognized. Imagine you have some records which have > a (real) MM relation to another table (categories) and you want to > select all records which are in category B, but translated and workspace > preview... > > If you want to have extension developer implementing workspace, it has > to be as easy as possible :-) > > Does anybody have a usable example? Well, versionOL() should be all you need for workspace support if you are selecting records based on an uid (single-view) or a pid: $row = get your records as you do, using ->enableFields ... $GLOBALS['TSFE']->sys_page->versionOL($table, $row); $GLOBALS['TSFE']->sys_page->fixVersioningPid($table,$row); if ($GLOBALS['TSFE']->sys_language_content > 0) { $row = $GLOBALS['TSFE']->sys_page->getRecordOverlay( $table, $row, $GLOBALS['TSFE']->sys_language_content, $GLOBALS['TSFE']->sys_language_contentOL ); } I found it important to do the versionOL before doing the recordOverlay for translations. Ok, more complex stuff might be required in special cases. Also take a look at tt_news, because it probably contains all stuff needed for workspaces, although it is a bit confusing to find. About the "join" problem, yea, that will probably need more "brain activity" than I can handle at the moment. :) Cheers, Ernesto From steffen at sk-typo3.de Thu Jul 3 11:52:07 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Thu, 03 Jul 2008 11:52:07 +0200 Subject: [TYPO3-dev] Mountpoint handling / problems In-Reply-To: References: Message-ID: Ernesto Baschny [cron IT] schrieb: > Hi, > > I don't think this is currently possible, but I like the idea of having > also mount-point sub-pages shown in the page tree, which can be very > useful for the linking purpose. Might be that also RTE has to be > instructed to handle that. Stan is your man to do that. :) > > Cheers, > Ernesto > > Hi Ernesto, you are right, the subpages are only needed in browse-tree. But this is not rte only as you also can link form other fields in tceforms, so Stan is not the only one involved. But he has his own browse_links so it should be in both solutions. I will try to dig deeper in this and give it a try and i will ask Stan if he like to help out. vg Steffen From ss at cabag.ch Thu Jul 3 12:20:29 2008 From: ss at cabag.ch (Sonja Scholz) Date: Thu, 03 Jul 2008 12:20:29 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Ernesto Baschny [cron IT] schrieb: > Sonja Scholz wrote: on 03.07.2008 10:08: > >> We would like to select records from a table with certain criterias. >> The records should be translated by language overlay and the workspace >> preview should also be considered. Additionally of course the >> enableFields should be taken care of. >> >> We could not find any satisfying solution. Language and enableFields >> is easy, but the whole workspace thing is nearly impossible to do it >> the right way. >> >> There should be really ONE simple snippet/example which includes >> everything which should be considered. >> >> There are nearly no extensions which do workspace preview, because it >> is so hard to implement. >> >> It would also be nice to have a general function for doing that: >> http://bugs.typo3.org/view.php?id=8889 >> >> It would be also great if one could JOIN multiple tables and still the >> workspace would be recognized. Imagine you have some records which >> have a (real) MM relation to another table (categories) and you want >> to select all records which are in category B, but translated and >> workspace preview... >> >> If you want to have extension developer implementing workspace, it has >> to be as easy as possible :-) >> >> Does anybody have a usable example? > > Well, versionOL() should be all you need for workspace support if you > are selecting records based on an uid (single-view) or a pid: > > $row = get your records as you do, using ->enableFields > ... > $GLOBALS['TSFE']->sys_page->versionOL($table, $row); > $GLOBALS['TSFE']->sys_page->fixVersioningPid($table,$row); > if ($GLOBALS['TSFE']->sys_language_content > 0) { > $row = $GLOBALS['TSFE']->sys_page->getRecordOverlay( > $table, > $row, > $GLOBALS['TSFE']->sys_language_content, > $GLOBALS['TSFE']->sys_language_contentOL > ); > } > > I found it important to do the versionOL before doing the recordOverlay > for translations. > > Ok, more complex stuff might be required in special cases. Also take a > look at tt_news, because it probably contains all stuff needed for > workspaces, although it is a bit confusing to find. > > About the "join" problem, yea, that will probably need more "brain > activity" than I can handle at the moment. :) > > Cheers, > Ernesto Hello Ernesto thank you for your fast answer with the example. I tried to use it in my extension, but for now it doesn't work. I don't get the workspace version of the records. I get only the same records as in the live modus. $dbRes = $GLOBALS['TYPO3_DB']->exec_SELECTQuery( 'DISTINCT table_1.*, table_2.uid as category_uid, table_2.name as category_name', 'table_1, table_2', $where.' AND table_1.sys_language_uid = 0 AND table_1.category = table_2.uid AND table_2.sys_language_uid = table_1.sys_language_uid '.$this->cObj->enableFields('table_1').' '.$this->cObj->enableFields('table_2'), '', $order ); // array where the article objects will be put in $finalRecords= array(); // fetch basic data and create article objects while($currentRecord= $GLOBALS['TYPO3_DB']->sql_fetch_assoc($dbRes)){ $GLOBALS['TSFE']->sys_page->versionOL('table_1', $currentRecord); $GLOBALS['TSFE']->sys_page->fixVersioningPid('table_1', $currentRecord); // check if not the default language is selected if ($GLOBALS['TSFE']->sys_language_content > 0) { $currentRecord= $GLOBALS['TSFE']->sys_page->getRecordOverlay( 'table_1', $currentRecord, $GLOBALS['TSFE']->sys_language_content, $this->OLmode); } // add record to result array if it exists if($currentRecord) { $finalRecords[] = $currentRecord; } } I tried to do a workspace preview by changing on record in the workspace and then looking on (with the magnifying glass) the page which shows a list of records. Have I understood something wrong? Kind regards, Sonja From ernst at cron-it.de Thu Jul 3 12:27:10 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Thu, 03 Jul 2008 12:27:10 +0200 Subject: [TYPO3-dev] Mountpoint handling / problems In-Reply-To: References: Message-ID: Steffen Kamper wrote: on 03.07.2008 11:52: >> I don't think this is currently possible, but I like the idea of >> having also mount-point sub-pages shown in the page tree, which can be >> very useful for the linking purpose. Might be that also RTE has to be >> instructed to handle that. Stan is your man to do that. :) > Hi Ernesto, > > you are right, the subpages are only needed in browse-tree. But this is > not rte only as you also can link form other fields in tceforms, so Stan > is not the only one involved. But he has his own browse_links so it > should be in both solutions. > I will try to dig deeper in this and give it a try and i will ask Stan > if he like to help out. No, I mean RTE needs to be able to handle the x-y Syntax in links. I expect that this feature needs a LOT more stuff in many parts of the core to work. Imagine fields of type "group" where page elements can be selected. In case of a shortcut, you will then need to be able to store (and process!!) not only integers, but also x-y MP syntax. This is probably not really backwards-compatible. Maybe those fields will have to be split in two internally and the UI then displays it corretly, so that only "new" extensions (and new core) will handle this, old extensions will handle it like it has always been. Going through all possible places where such "beasts" should be processed will probably be a pain, but it might be possible. Cheers, Ernesto From ernst at cron-it.de Thu Jul 3 12:29:28 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Thu, 03 Jul 2008 12:29:28 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Hi Sonja, Sonja Scholz wrote: on 03.07.2008 12:20: > thank you for your fast answer with the example. > > I tried to use it in my extension, but for now it doesn't work. I don't > get the workspace version of the records. I get only the same records as > in the live modus. Are you sure you have all "versioning" fields in your table and that you have "version" support on for your table? Kickstarter is able to generate those, have a look at what he creates when you tick on "versioning support". Cheers, Ernesto From steffen at sk-typo3.de Thu Jul 3 13:07:21 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Thu, 03 Jul 2008 13:07:21 +0200 Subject: [TYPO3-dev] Mountpoint handling / problems In-Reply-To: References: Message-ID: Hi Ernesto, Ernesto Baschny [cron IT] schrieb: > Steffen Kamper wrote: on 03.07.2008 11:52: > >>> I don't think this is currently possible, but I like the idea of >>> having also mount-point sub-pages shown in the page tree, which can >>> be very useful for the linking purpose. Might be that also RTE has to >>> be instructed to handle that. Stan is your man to do that. :) > >> Hi Ernesto, >> >> you are right, the subpages are only needed in browse-tree. But this >> is not rte only as you also can link form other fields in tceforms, so >> Stan is not the only one involved. But he has his own browse_links so >> it should be in both solutions. >> I will try to dig deeper in this and give it a try and i will ask Stan >> if he like to help out. > > No, I mean RTE needs to be able to handle the x-y Syntax in links. imho rte can do this. You are able to link to a "top" mountpage, and the link is build with correct x-y-syntax. vg Steffen From admin at commandline.ch Thu Jul 3 13:45:01 2008 From: admin at commandline.ch (=?ISO-8859-15?Q?Jonas_D=FCbi?=) Date: Thu, 03 Jul 2008 13:45:01 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Hi Ernesto I tried this also, but it does not work. The function returns the same as I set as parameter. I can make versions, I can publish them and then they are live. But the preview just not work. I don't know any extension (expect news) which has a working preview. And how would you do preview if you have a join with an other table and if you wan't to search for special fields. I would be realy happy if somebuddy could tell me a simple example where I can see how it works, tt_news is just to complicated. They are working with special selects and the pi1 is more than 3500 lines of code. I wrothe the option splitting for tt_news, but I don't unserstand how they do the workspace thing. By the way how does versionOL handle records which are completely new in the workspace or deleted? The records which are hidden or deleted in the live won't be sent to versionOL because they are blocked by enableFields in the previous select. And please don't tell me to remove enableFields, that's one of the few things in TYPO3 which are used everywhere all over the code. Best regards, Jonas Ernesto Baschny [cron IT] schrieb: > Hi Sonja, > > Sonja Scholz wrote: on 03.07.2008 12:20: > >> thank you for your fast answer with the example. >> >> I tried to use it in my extension, but for now it doesn't work. I >> don't get the workspace version of the records. I get only the same >> records as in the live modus. > > Are you sure you have all "versioning" fields in your table and that you > have "version" support on for your table? Kickstarter is able to > generate those, have a look at what he creates when you tick on > "versioning support". > > Cheers, > Ernesto From admin at commandline.ch Thu Jul 3 13:46:59 2008 From: admin at commandline.ch (=?ISO-8859-15?Q?Jonas_D=FCbi?=) Date: Thu, 03 Jul 2008 13:46:59 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Hi Sonja There is realy no good example, your totaly right. Best would be a simple extension with list and single view and two mm related tables. With a simple keyword search... Kind of a proof of concept and 'how to do it right' extension from the core team would be great! Best regards, Jonas From petro.boychuk at gmail.com Thu Jul 3 16:01:40 2008 From: petro.boychuk at gmail.com (=?KOI8-R?B?4s/K3tXLIPDF1NLP?=) Date: Thu, 3 Jul 2008 17:01:40 +0300 Subject: [TYPO3-dev] TYPO3 4.2.1, PHP5 and zend.ze1_compatibility_mode issue Message-ID: Hello list, I spend about 5 hours figuring why toolbar (with workspace, shortcut, clearcache and search buttons) does not work on my fresh TYPO3 4.2.1 install on PHP 5.2.5. The problem was that hoster switched on php's flag "zend.ze1_compatibility_mode". Maybe someone from installer team or core team can add check for this option in installer? I gues it will be nice to know why some parts of backend does not work right before we install TYPO3. Thanks. -- ? ???????, ?????? ????? From patrick.rodacker at the-reflection.de Thu Jul 3 16:29:15 2008 From: patrick.rodacker at the-reflection.de (Patrick Rodacker) Date: Thu, 03 Jul 2008 16:29:15 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Hi Steffen, Steffen Kamper schrieb: > Christoph Koehler schrieb: >> >> Do you have an API for it so I can create snippets directly from my >> editor? REST would be perfect. >> >> Christoph >> >> > > i like the idea of an API and looked for possibilities. i think xml-rpc > is a good way to do the communication. I would prefer the REST way and not xml-rpc. The book "RESTful webservices" [1] is a good way to start and do it the right way. just my 2 cents Patrick [1] http://oreilly.com/catalog/9780596529260/ From ernst at cron-it.de Thu Jul 3 17:10:09 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Thu, 03 Jul 2008 17:10:09 +0200 Subject: [TYPO3-dev] Mountpoint handling / problems In-Reply-To: References: Message-ID: Steffen Kamper wrote: on 03.07.2008 13:07: > Hi Ernesto, > > Ernesto Baschny [cron IT] schrieb: >> Steffen Kamper wrote: on 03.07.2008 11:52: >> >>>> I don't think this is currently possible, but I like the idea of >>>> having also mount-point sub-pages shown in the page tree, which can >>>> be very useful for the linking purpose. Might be that also RTE has >>>> to be instructed to handle that. Stan is your man to do that. :) >> >>> Hi Ernesto, >>> >>> you are right, the subpages are only needed in browse-tree. But this >>> is not rte only as you also can link form other fields in tceforms, >>> so Stan is not the only one involved. But he has his own browse_links >>> so it should be in both solutions. >>> I will try to dig deeper in this and give it a try and i will ask >>> Stan if he like to help out. >> >> No, I mean RTE needs to be able to handle the x-y Syntax in links. > > imho rte can do this. You are able to link to a "top" mountpage, and the > link is build with correct x-y-syntax. Cool! Then we probably are already 1% done. ;) Cheers, Ernesto From ernst at cron-it.de Thu Jul 3 17:24:45 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Thu, 03 Jul 2008 17:24:45 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Hi, just one "quick reply": If you use enableFields() and you are in a draft-preview, the enableFields will be ignored in your first query, meaning that even hidden and not-in-time records will be selected, but then "dropped" later by versionOL(), which is why this should work. Other then that, I will have to see if I have time to construct a howto or a "working example". The code I send before "works for me", but maybe because the scenario where I took it from is rather trivial. Cheers, Ernesto Jonas D?bi wrote: on 03.07.2008 13:45: > I tried this also, but it does not work. The function returns the same > as I set as parameter. > > I can make versions, I can publish them and then they are live. But the > preview just not work. > > I don't know any extension (expect news) which has a working preview. > > And how would you do preview if you have a join with an other table and > if you wan't to search for special fields. > > I would be realy happy if somebuddy could tell me a simple example where > I can see how it works, tt_news is just to complicated. They are working > with special selects and the pi1 is more than 3500 lines of code. I > wrothe the option splitting for tt_news, but I don't unserstand how they > do the workspace thing. > > By the way how does versionOL handle records which are completely new in > the workspace or deleted? The records which are hidden or deleted in the > live won't be sent to versionOL because they are blocked by enableFields > in the previous select. > > And please don't tell me to remove enableFields, that's one of the few > things in TYPO3 which are used everywhere all over the code. > > Best regards, > Jonas > > > Ernesto Baschny [cron IT] schrieb: >> Hi Sonja, >> >> Sonja Scholz wrote: on 03.07.2008 12:20: >> >>> thank you for your fast answer with the example. >>> >>> I tried to use it in my extension, but for now it doesn't work. I >>> don't get the workspace version of the records. I get only the same >>> records as in the live modus. >> >> Are you sure you have all "versioning" fields in your table and that >> you have "version" support on for your table? Kickstarter is able to >> generate those, have a look at what he creates when you tick on >> "versioning support". >> >> Cheers, >> Ernesto From steffen at sk-typo3.de Thu Jul 3 17:39:03 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Thu, 03 Jul 2008 17:39:03 +0200 Subject: [TYPO3-dev] TYPO3 4.2.1, PHP5 and zend.ze1_compatibility_mode issue In-Reply-To: References: Message-ID: ?????? ????? schrieb: > Hello list, > I spend about 5 hours figuring why toolbar (with workspace, shortcut, > clearcache and search buttons) does not work on my fresh TYPO3 4.2.1 > install on PHP 5.2.5. > The problem was that hoster switched on php's flag > "zend.ze1_compatibility_mode". > Maybe someone from installer team or core team can add check for this > option in installer? I gues it will be nice to know why some parts of > backend does not work right before we install TYPO3. > > Thanks. > Hi, why doesn't it work with this flag set? i don't see any dependency. vg Steffen From steffen at sk-typo3.de Thu Jul 3 19:08:31 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Thu, 03 Jul 2008 19:08:31 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Sonja Scholz schrieb: > Hi everyone > > We would like to select records from a table with certain criterias. The > records should be translated by language overlay and the workspace > preview should also be considered. Additionally of course the > enableFields should be taken care of. > > We could not find any satisfying solution. Language and enableFields is > easy, but the whole workspace thing is nearly impossible to do it the > right way. > > There should be really ONE simple snippet/example which includes > everything which should be considered. > > There are nearly no extensions which do workspace preview, because it is > so hard to implement. > > It would also be nice to have a general function for doing that: > http://bugs.typo3.org/view.php?id=8889 > > It would be also great if one could JOIN multiple tables and still the > workspace would be recognized. Imagine you have some records which have > a (real) MM relation to another table (categories) and you want to > select all records which are in category B, but translated and workspace > preview... > > If you want to have extension developer implementing workspace, it has > to be as easy as possible :-) > > Does anybody have a usable example? > > Best regards, > Sonja Hi, did you looked at this? http://forge.typo3.org/repositories/show/extension-nwt_workspace_preview May be there are some answers in. vg Steffen From steffen at sk-typo3.de Thu Jul 3 19:10:05 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Thu, 03 Jul 2008 19:10:05 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Sonja Scholz schrieb: >> Hi everyone >> >> We would like to select records from a table with certain criterias. >> The records should be translated by language overlay and the workspace >> preview should also be considered. Additionally of course the >> enableFields should be taken care of. >> >> We could not find any satisfying solution. Language and enableFields >> is easy, but the whole workspace thing is nearly impossible to do it >> the right way. >> >> There should be really ONE simple snippet/example which includes >> everything which should be considered. >> >> There are nearly no extensions which do workspace preview, because it >> is so hard to implement. >> >> It would also be nice to have a general function for doing that: >> http://bugs.typo3.org/view.php?id=8889 >> >> It would be also great if one could JOIN multiple tables and still the >> workspace would be recognized. Imagine you have some records which >> have a (real) MM relation to another table (categories) and you want >> to select all records which are in category B, but translated and >> workspace preview... >> >> If you want to have extension developer implementing workspace, it has >> to be as easy as possible :-) >> >> Does anybody have a usable example? >> >> Best regards, >> Sonja > > Hi, > > did you looked at this? > http://forge.typo3.org/repositories/show/extension-nwt_workspace_preview > > May be there are some answers in. > > vg Steffen ok, it's an empty project :-) but may be a start for teamwork? vg Steffen From mehdiguermazi at medissix.com Thu Jul 3 19:14:23 2008 From: mehdiguermazi at medissix.com (medissix) Date: Thu, 3 Jul 2008 10:14:23 -0700 (PDT) Subject: [TYPO3-dev] Solved - Problem with 4.2.0RC1 Message-ID: Same problem with templavoila: file: db_new_content_el.php line 285: $defVals = t3lib_div::implodeArrayForUrl('defVals', is_array($this->defVals)?$this->defVals:array()); Steffen Ritter-2 wrote: > > I did > :) > > Dmitry Dulepov [typo3] schrieb: >> Hi! >> >> Steffen Ritter wrote: >>> Problem was located in an Extension on tt_news, which did change link >>> generation in tt_news... I just corrected it there. >>> >>> Thanks to Francois hinting me at which places to look. >> >> Please, do not forget to note it on bug report that you have opened... >> > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > > -- View this message in context: http://www.nabble.com/Problem-with-4.2.0RC1-tp16490476p18255668.html Sent from the TYPO3 Dev mailing list archive at Nabble.com. From patrick at typo3quebec.org Thu Jul 3 19:49:21 2008 From: patrick at typo3quebec.org (Patrick Gaumond) Date: Thu, 03 Jul 2008 13:49:21 -0400 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Steffen Kamper wrote: >> did you looked at this? >> http://forge.typo3.org/repositories/show/extension-nwt_workspace_preview > ok, it's an empty project :-) but may be a start for teamwork? No, it "really exist" ! http://typo3.org/documentation/document-library/extension-manuals/nwt_workspace_preview/1.0.0/view/1/1/#id3975730 And is more appealing than the current preview... Patrick From fsuter at cobweb.ch Thu Jul 3 19:59:03 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Thu, 03 Jul 2008 19:59:03 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Hi Jonas, > I don't know any extension (expect news) which has a working preview. Actually my tag cloud extension (vge_tagcloud) does correct previews, but I copied the code from tt_news :-) Cheers -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From fsuter at cobweb.ch Thu Jul 3 20:06:17 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Thu, 03 Jul 2008 20:06:17 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Hi Sonja, > We would like to select records from a table with certain criterias. The > records should be translated by language overlay and the workspace > preview should also be considered. Additionally of course the > enableFields should be taken care of. I have started looking into that with extension dataquery [1], but it is far from functional yet. For the moment it handles delete flag and enableFields, but not when there's a join. It is my intention to get it fully working (i.e. with language and workspace overlays) but I can't promise when. Cheers -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch [1] http://typo3.org/extensions/repository/view/dataquery/0.1.4/ From bram.vandenbussche at gmail.com Fri Jul 4 08:54:55 2008 From: bram.vandenbussche at gmail.com (Bram Vandenbussche) Date: Fri, 04 Jul 2008 08:54:55 +0200 Subject: [TYPO3-dev] Need some pointers for site configuration In-Reply-To: References: Message-ID: Bram Vandenbussche schreef: > Ok, so what I'm about to ask may already be answered in the thousands of > posts that are already in here, but searching for this is not that obvious. > > What I'm trying to do is pretty basic when you look at it from a > developers perspective (which is me) but it has got me in the blue when > it comes to typo3 configuration. Let me sketch the situation: > > I've got a typo3 install with a few sites running in it. Among those > sites are numerous "portfolio" sites. I'm using the DAM extension to > manage all of the images into categories and such. (about 3 levels of > categories in all I think). > > Each site contains a page called "Portfolio" or "Gallery" or something > like that. When this page is loaded, I would like to display a menu (ul) > with the first level of categories for that site. When you click on one, > it opens the subcategories on the next line, and this goes on, until > there are no more subcategories. When you click on an endpoint (category > with no subcategories) it should load the same page, but this time > enables the SmoothGallery component (which is capable of showing a set > of images for a given DAM category) which then shows the images for the > given category. > > Like I said, this is fairly easy if you're working as a developer but > I'm clueless as of how to implement this in Typo3. This is pretty > standard behaviour I think, so somebody must have done this before. > > I'm stuck trying to show the menu of categories on a single page and I > have no idea how I have to pass the category ID's to the SmoothGallery > component. > > Anyone has any practical help? I'm not sure under wich group this falls > so I'm just posting it here, if it needs to be directed somewhere else, > just let me know. > > Any help is greatly appreciated. > I'm overwhelmed with all the lack of response here.. :P Does this mean it's impossible or that no one has ever done this before? -- Bram Vandenbussche Project Manager Web Tel: +32 497 21 33 04 bram.vandenbussche at breeze.be From fsuter at cobweb.ch Fri Jul 4 09:36:34 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Fri, 04 Jul 2008 09:36:34 +0200 Subject: [TYPO3-dev] Need some pointers for site configuration In-Reply-To: References: Message-ID: Hi Bram, > I'm overwhelmed with all the lack of response here.. :P Well, this is open source and we are all volunteers. So sometimes questions don't get answered... > Does this mean it's impossible or that no one has ever done this before? I don't know of any extension that does this out of the box. You may want to look at extension mm_dam_filelist which does more and is not really a gallery. The main problem is that extensions like Smooth Gallery are keyed to display images from a DAM category that is defined in the content element instance. It is not designed to accept a parameter (like tx_rgsmoothgallery_pi1[catUid] or whatever) and dynamically change the DAM category it displays. Furthermore you also need to render the DAM category tree, which no extension does without doing something else too. So maybe looking at mm_dam_filelist will help you find the right pieces of code and you can get doing something on your own. HTH -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From petro.boychuk at gmail.com Fri Jul 4 10:17:35 2008 From: petro.boychuk at gmail.com (=?KOI8-R?B?4s/K3tXLIPDF1NLP?=) Date: Fri, 4 Jul 2008 11:17:35 +0300 Subject: [TYPO3-dev] TYPO3 4.2.1, PHP5 and zend.ze1_compatibility_mode issue In-Reply-To: References: Message-ID: It was surprise or me to, as far as & present in function definition, but it was not working until i set "php_flag zend.ze1_compatibility_mode off" in my .htaccess file. PHP man says "In this mode, objects are passed by value instead of reference by default" In that case backend object (class TYPO3backend) is passed to clear cache button object (class ClearCacheMenu) by value and no javascript file reference from this (clear cache) object is passed to the backend object. The same for other buttons in toolbar. 2008/7/3 Steffen Kamper : > ?????? ????? schrieb: >> Hello list, >> I spend about 5 hours figuring why toolbar (with workspace, shortcut, >> clearcache and search buttons) does not work on my fresh TYPO3 4.2.1 >> install on PHP 5.2.5. >> The problem was that hoster switched on php's flag >> "zend.ze1_compatibility_mode". >> Maybe someone from installer team or core team can add check for this >> option in installer? I gues it will be nice to know why some parts of >> backend does not work right before we install TYPO3. >> >> Thanks. >> > > Hi, > > why doesn't it work with this flag set? i don't see any dependency. > > vg Steffen > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev -- ? ???????, ?????? ????? From steffen at sk-typo3.de Fri Jul 4 10:23:38 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Fri, 04 Jul 2008 10:23:38 +0200 Subject: [TYPO3-dev] TYPO3 4.2.1, PHP5 and zend.ze1_compatibility_mode issue In-Reply-To: References: Message-ID: ?????? ????? schrieb: > It was surprise or me to, as far as & present in function definition, > but it was not working until i set "php_flag > zend.ze1_compatibility_mode off" in my .htaccess file. > > PHP man says > "In this mode, objects are passed by value instead of reference by default" > > In that case backend object (class TYPO3backend) is passed to clear > cache button object (class ClearCacheMenu) by value and no javascript > file reference from this (clear cache) object is passed to the backend > object. > > The same for other buttons in toolbar. > > > ah, I see. Well, i take this into account with the new installer, thx. vg Steffen From admin at commandline.ch Fri Jul 4 13:24:02 2008 From: admin at commandline.ch (=?ISO-8859-15?Q?Jonas_D=FCbi?=) Date: Fri, 04 Jul 2008 13:24:02 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Hi Ernesto Thank you for the answer. Ernesto Baschny [cron IT] schrieb: > just one "quick reply": If you use enableFields() and you are in a > draft-preview, the enableFields will be ignored in your first query, > meaning that even hidden and not-in-time records will be selected, but > then "dropped" later by versionOL(), which is why this should work. > > Other then that, I will have to see if I have time to construct a howto > or a "working example". The code I send before "works for me", but maybe > because the scenario where I took it from is rather trivial. > That would be realy great, I think there is a big need for such examples. They could also be put into the new snippet database from Steffen. Best regards, Jonas From admin at commandline.ch Fri Jul 4 13:27:39 2008 From: admin at commandline.ch (=?ISO-8859-15?Q?Jonas_D=FCbi?=) Date: Fri, 04 Jul 2008 13:27:39 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Hi Patrick and Steffen Thank you for the tip. I will check that. But this still doesn't solve the problem, that most extension do not support workspace preview, and that it is realy hard to implement it. Best regards, Jonas Patrick Gaumond schrieb: > Steffen Kamper wrote: > >>> did you looked at this? >>> http://forge.typo3.org/repositories/show/extension-nwt_workspace_preview > >> ok, it's an empty project :-) but may be a start for teamwork? > > No, it "really exist" ! > > http://typo3.org/documentation/document-library/extension-manuals/nwt_workspace_preview/1.0.0/view/1/1/#id3975730 > > > And is more appealing than the current preview... > > Patrick From ss at cabag.ch Fri Jul 4 13:31:31 2008 From: ss at cabag.ch (Sonja Scholz) Date: Fri, 04 Jul 2008 13:31:31 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Francois Suter schrieb: > Hi Jonas, > >> I don't know any extension (expect news) which has a working preview. > > Actually my tag cloud extension (vge_tagcloud) does correct previews, > but I copied the code from tt_news :-) > > Cheers > Hi Francois, thanks for your answers and for the note with your extension. I will study the code of the extension. Kind regards, Sonja From admin at commandline.ch Fri Jul 4 13:33:42 2008 From: admin at commandline.ch (=?ISO-8859-15?Q?Jonas_D=FCbi?=) Date: Fri, 04 Jul 2008 13:33:42 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Hi Francois Great! That's exactly what is needed, but someday it has to go into the core, because everyone should use such a query function! Thank you for doing that! Would be great, if you get it working. Did you talk to someone from the core team who knows the Workspace module? By the way who is cheef master wizard of Workspaces? (Kasper of course, but who else) Best regards, Jonas Francois Suter schrieb: > Hi Sonja, > >> We would like to select records from a table with certain criterias. >> The records should be translated by language overlay and the workspace >> preview should also be considered. Additionally of course the >> enableFields should be taken care of. > > I have started looking into that with extension dataquery [1], but it is > far from functional yet. For the moment it handles delete flag and > enableFields, but not when there's a join. It is my intention to get it > fully working (i.e. with language and workspace overlays) but I can't > promise when. > > Cheers > From steffen at sk-typo3.de Fri Jul 4 13:35:03 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Fri, 04 Jul 2008 13:35:03 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Jonas D?bi schrieb: > Hi Patrick and Steffen > > Thank you for the tip. I will check that. > > But this still doesn't solve the problem, that most extension do not > support workspace preview, and that it is realy hard to implement it. > I see the need. May be pibase should be enhanced to give support function for language overlay and workspace handling? Something like $row = $this->pi_getOverlayRecord($row); $row = $this->pi_getVersionPreviewRecord($row, $table); (just simplified) vg Steffen From admin at commandline.ch Fri Jul 4 13:44:06 2008 From: admin at commandline.ch (=?ISO-8859-15?Q?Jonas_D=FCbi?=) Date: Fri, 04 Jul 2008 13:44:06 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Hi Steffen Steffen Kamper schrieb: > I see the need. May be pibase should be enhanced to give support > function for language overlay and workspace handling? > > Something like > $row = $this->pi_getOverlayRecord($row); > $row = $this->pi_getVersionPreviewRecord($row, $table); > (just simplified) Something like that would be great. But I think it should not be on a record base, it should be on a select base. Like: $joinTables = array( 'left' => 'categries', 'left' => 'owner', ); $where = "owner.name LIKE '%jimmy%'"; $records = $this->pi_getRecords($table, $where, $order, $limit, $joinTables); -> The relation between the joined tables should be done by TCA. -> no $fields, because that would be a problem for overlay! So if you have a related category which you want to get the title of, you will have to select them separately Wouldn't that be cool, that would help a lot of developers. Best regards, Jonas From fsuter at cobweb.ch Fri Jul 4 14:04:11 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Fri, 04 Jul 2008 14:04:11 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: Hi, > Thank you for doing that! Would be great, if you get it working. Yep, when I have time :-) > Did you talk to someone from the core team who knows the Workspace module? No. I'm just going with what I learned doing vge_tagcloud. > By the way who is cheef master wizard of Workspaces? (Kasper of course, > but who else) Theres' not really anyone. AFAIK Dmitry knows quite a bit and it seems like Ingo too, I don't know for the others. But I'm not sure any of them would really call themselves "masters of workspaces"... (sounds like a dangerous title to bear ;-) ) Cheers -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From admin at commandline.ch Fri Jul 4 15:22:09 2008 From: admin at commandline.ch (=?ISO-8859-15?Q?Jonas_D=FCbi?=) Date: Fri, 04 Jul 2008 15:22:09 +0200 Subject: [TYPO3-dev] Workspaces, languages, where, enableFields... In-Reply-To: References: Message-ID: And we realy tried to understand all the technical concept, now I know why it is so hard :-D But we developed a patch which disables the default (-1) internal workspace, at least something we could understand :-D But still, workspace is realy needed by a lot of customers and something which boosts typo3 against other cms Francois Suter schrieb: > Hi, > >> Thank you for doing that! Would be great, if you get it working. > > Yep, when I have time :-) > >> Did you talk to someone from the core team who knows the Workspace >> module? > > No. I'm just going with what I learned doing vge_tagcloud. > >> By the way who is cheef master wizard of Workspaces? (Kasper of >> course, but who else) > > Theres' not really anyone. AFAIK Dmitry knows quite a bit and it seems > like Ingo too, I don't know for the others. But I'm not sure any of them > would really call themselves "masters of workspaces"... (sounds like a > dangerous title to bear ;-) ) > > Cheers > From lolli at schwarzbu.ch Sat Jul 5 01:37:50 2008 From: lolli at schwarzbu.ch (Christian Kuhn) Date: Sat, 05 Jul 2008 01:37:50 +0200 Subject: [TYPO3-dev] Call for extension review: Password manager Message-ID: Hi folks, I am proud to announce the first version of a password manager extension for the TYPO3 backend. If you ever had the problem to manage dozens of passwords for different services, you have written them down to paper or stuffed into a more or less secure excel sheet or the like, this extension might be a better solution. This extension provides a backend module to store, manage and retrieve passwords with informations like name, link, username and the password to the service. The password itself is encrypted with openssl public key mechanism and stored encrypted in the TYPO3 database. The module features a group system to enable multiple backend users to access passwords. A first alpha version 0.0.1 (key: passwordmgr) with a manual has been released to TER and needs some reviewers. This extension has been written with a (hopefully) straight MVC pattern in mind for TYPO3 >= 4.2.0 and php >= 5.2.0. It makes use of some php SPL features like ArrayAccess and Iterator. Development information can be found on forge [1]. I kindly ask for code reviews, testers, bug reports, feature requests and general feedback. Have fun, Christian [1] http://forge.typo3.org/projects/show/extension-passwordmgr From steffen at sk-typo3.de Sat Jul 5 15:51:33 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sat, 05 Jul 2008 15:51:33 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Hi, here a info about update: Now RSS is available: http://support.typo3.org/snippets/snippets.xml Also you can link a snippet with following rule: n123456 - link to a newslist post with ID 123456 b1234 - link to a mantis bug #1234 i888 - link to a forge issue #888 This description is available also in submit form. Following will be done in next update: * allow logged-in-users to attach/deattach tags to snippets * allow logged-in-users to attach/deattach links to snippets happy snippets! vg Steffen From typo3 at pegu.de Mon Jul 7 15:10:34 2008 From: typo3 at pegu.de (Petra Arentzen) Date: Mon, 07 Jul 2008 13:10:34 +0000 Subject: [TYPO3-dev] New extension: pgtigerrss Message-ID: Hi, I wrote a new extension for showing newsfeeds from remote sites. I know there are many extension which can do this. But since none of them fits my requirements I wrote one myself. Feeds are organized in categories and can be shown in three different modes (categories, newsfeed, feed). Since this is my very first TYPO3 extension (I published). I'm hoping for some comments what I've done right or wrong (but do not hurt my poor developer soul too much ;). Until now it was only tested with TYPO3 4.2.1. Regards Petra -- Buchtipps: shop.g-arentzen.de "Die T?ren der Unterwelt" haben sich ge?ffnet - From phil at goli.at Mon Jul 7 14:40:43 2008 From: phil at goli.at (Philipp Metzler) Date: Mon, 7 Jul 2008 14:40:43 +0200 Subject: [TYPO3-dev] Developer of extension nsb_cat2menu doesn't answer Message-ID: Hello, We use the extension nsb_cat2menu to display tt_products categories in the frontend. If possible we would like to implement some features and give it back to the community by releasing a new version. The developer of the extension Sami Ben-yahia sittinggoat at hotmail.com unfortunately doesn't answer to emails. Sent one on the 18th of June and one on the 30th of June. Do you have another contact to him? What do you suggest? Release it by using another name? Thanks, Best regards, Philipp _______________________________________________________________ DI Philipp Metzler Goli.at GesbR. Dorf Rieden 7/11 A-6900 Bregenz EU-Austria eMail: phil at goli.at Skype (Internet Phone): googol Tel: +43 / 676 / 72 94 176 ICQ: 13950954 o www.philippmetzler.com - Softwareentwicklung und Websites mit Typo3. o www.goli.at - Ihr Speicherplatz im Web. Messen Sie uns an unseren Daten. o www.clickshopping.at - Wir bringen Ihre Produkte auf den Punkt. o www.greencar.at - Elektroautos und mehr ... _______________________________________________________________ From tapio.markula at xetpoint.fi Mon Jul 7 15:00:35 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Mon, 07 Jul 2008 16:00:35 +0300 Subject: [TYPO3-dev] Developer of extension nsb_cat2menu doesn't answer In-Reply-To: References: Message-ID: Philipp Metzler kirjoitti: > Hello, > > We use the extension nsb_cat2menu to display tt_products categories in > the frontend. If possible we would like to implement some features and > give it back to the community by releasing a new version. The developer > of the extension Sami Ben-yahia sittinggoat at hotmail.com unfortunately > doesn't answer to emails. Sent one on the 18th of June and one on the > 30th of June. Do you have another contact to him? What do you suggest? > Release it by using another name? yes - I have made some improvements to that plugin - maybe you are interested on them? From steffen at sk-typo3.de Mon Jul 7 15:34:51 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Mon, 07 Jul 2008 15:34:51 +0200 Subject: [TYPO3-dev] New service "Snippets" on support.typo3.org In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi, > > here a info about update: > > Now RSS is available: > http://support.typo3.org/snippets/snippets.xml > > Also you can link a snippet with following rule: > > n123456 - link to a newslist post with ID 123456 > b1234 - link to a mantis bug #1234 > i888 - link to a forge issue #888 > > This description is available also in submit form. > > Following will be done in next update: > > * allow logged-in-users to attach/deattach tags to snippets > * allow logged-in-users to attach/deattach links to snippets > > happy snippets! > > vg Steffen next improvement in comments: you can use code there too with syntax [code=php]...[/code] See here for an example http://support.typo3.org/snippets/c/27/comments/1/#CommentStart vg Steffen From stig at 8620.dk Tue Jul 8 13:14:21 2008 From: stig at 8620.dk (=?ISO-8859-1?Q?Stig_N=F8rgaard_F=E6rch?=) Date: Tue, 08 Jul 2008 13:14:21 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: It doesn't seem like that there is much progress collecting money for these projects. (unless the page isn't updated?) http://typo3.org/development/sponsoring/list-of-sponsored-projects/ I don't think it's because that the community don't want to support these projects. But I guess that that many people only want to pay if the project actually gets started, - or they can get their money back if the project will not get started because of insufficient money. If there is no real progress in the near future, I suggest to consider fundable.com. Here we can start collections for each project. Each project will have a goal amount. There will be a deadline for collections for each project. People can make a pledge with an amount they choose themselves. If the goal isn't reached before the deadline, noone pays anything. If the goal is reached before the deadline, all the pledges are transfered. The downside: A 10% fee is taken from the totals. But isn't it better to pay this fee, than the project not being realized at all? Just my thoughts... /Stig Francois Suter skrev: > Dear Developers, > > As you saw if you also subscribe to the Announce list, we just launched > today the first sponsored projects. If you don't know what we're talking > about, you can catch up with the news posted on news.typo3.org. > Basically sponsored projects are Core TYPO3 v4 projects with > well-defined goals for which we will try to raise in money in order to > actually pay the developers for their work. This form of support should > help accelerate the development of TYPO3. > > The best thing is that you can be part of this. Sponsored projects aim > for a greater involvement of the community. Refer to [1] for more > information. See also [2] for a more personal view of how you can > participate in sponsored projects and what you can gain from them. > > So reach for your wallet! Alternately if you prefer getting your hands > dirty there are currently two open positions, both for the New FORM > project. We are looking for a developer who would also act as backup > project leader to Patrick Broens and an additional reviewer. Please > refer to [3] for more details. > > We hope you will find these opportunities as exciting as we do. > From ingmar at typo3.org Tue Jul 8 14:04:21 2008 From: ingmar at typo3.org (Ingmar Schlecht) Date: Tue, 08 Jul 2008 14:04:21 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Hi Stig, Francois, being the TYPO3 v4 Sponsorship Manager, is currently on holidays until 19. July, so don't expect updates of the amount until then (he has an Out-of-office reply on his mail address, so potential sponsors know this). I really like the idea of fundable.com, but on the other hand the 10% fee actually is quite a lot. cheers Ingmar Stig N?rgaard F?rch schrieb: > It doesn't seem like that there is much progress collecting money for > these projects. (unless the page isn't updated?) > http://typo3.org/development/sponsoring/list-of-sponsored-projects/ > > I don't think it's because that the community don't want to support > these projects. But I guess that that many people only want to pay if > the project actually gets started, - or they can get their money back if > the project will not get started because of insufficient money. > > If there is no real progress in the near future, I suggest to consider > fundable.com. > Here we can start collections for each project. > Each project will have a goal amount. > There will be a deadline for collections for each project. > People can make a pledge with an amount they choose themselves. > If the goal isn't reached before the deadline, noone pays anything. > If the goal is reached before the deadline, all the pledges are transfered. > > The downside: > A 10% fee is taken from the totals. > But isn't it better to pay this fee, than the project not being realized > at all? > > Just my thoughts... > > /Stig > > Francois Suter skrev: >> Dear Developers, >> >> As you saw if you also subscribe to the Announce list, we just >> launched today the first sponsored projects. If you don't know what >> we're talking about, you can catch up with the news posted on >> news.typo3.org. Basically sponsored projects are Core TYPO3 v4 >> projects with well-defined goals for which we will try to raise in >> money in order to actually pay the developers for their work. This >> form of support should help accelerate the development of TYPO3. >> >> The best thing is that you can be part of this. Sponsored projects aim >> for a greater involvement of the community. Refer to [1] for more >> information. See also [2] for a more personal view of how you can >> participate in sponsored projects and what you can gain from them. >> >> So reach for your wallet! Alternately if you prefer getting your hands >> dirty there are currently two open positions, both for the New FORM >> project. We are looking for a developer who would also act as backup >> project leader to Patrick Broens and an additional reviewer. Please >> refer to [3] for more details. >> >> We hope you will find these opportunities as exciting as we do. >> -- Ingmar Schlecht TYPO3 Association Active Member From stig at 8620.dk Tue Jul 8 14:16:28 2008 From: stig at 8620.dk (=?ISO-8859-1?Q?Stig_N=F8rgaard_F=E6rch?=) Date: Tue, 08 Jul 2008 14:16:28 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Hi Ingmar :-) Ingmar Schlecht skrev: > Hi Stig, > > Francois, being the TYPO3 v4 Sponsorship Manager, is currently on > holidays until 19. July, so don't expect updates of the amount until > then (he has an Out-of-office reply on his mail address, so potential > sponsors know this). Ok. Nice to know :-) > I really like the idea of fundable.com, but on the other hand the 10% > fee actually is quite a lot. Yes. It's very true. But again, I think its an okay pricetag if the alternative is not being able to collect enough money or not collecting as fast as we want to. I still wonder if it would be realistic to make our own fundable.com? /Stig From ingmar at typo3.org Tue Jul 8 15:41:25 2008 From: ingmar at typo3.org (Ingmar Schlecht) Date: Tue, 08 Jul 2008 15:41:25 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Stig N?rgaard F?rch schrieb: > I still wonder if it would be realistic to make our own fundable.com? I think that can be done through: - a policy that says payments will be paid back when the project doesn't start - fast updates to the sponsorship amounts on the webpage as they come in I think Francois is aiming for both already, so lets just wait until he comes back. cheers Ingmar -- Ingmar Schlecht TYPO3 Association Active Member From admin at commandline.ch Tue Jul 8 20:18:33 2008 From: admin at commandline.ch (=?ISO-8859-1?Q?Jonas_D=FCbi?=) Date: Tue, 08 Jul 2008 20:18:33 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Hi Stig We'r already discussing the sponsorship internally. I can not guaranty that and I can not guaranty how much. But as soon as we know how much we want to spend on which project, we will do so. I think it's a great idea it just needs some time! Perhaps a little smaller improvement with less budged as pilot project would be nice, so everyone can see that it works. Best regards, Jonas Stig N?rgaard F?rch schrieb: > It doesn't seem like that there is much progress collecting money for > these projects. (unless the page isn't updated?) > http://typo3.org/development/sponsoring/list-of-sponsored-projects/ > > I don't think it's because that the community don't want to support > these projects. But I guess that that many people only want to pay if > the project actually gets started, - or they can get their money back if > the project will not get started because of insufficient money. > > If there is no real progress in the near future, I suggest to consider > fundable.com. > Here we can start collections for each project. > Each project will have a goal amount. > There will be a deadline for collections for each project. > People can make a pledge with an amount they choose themselves. > If the goal isn't reached before the deadline, noone pays anything. > If the goal is reached before the deadline, all the pledges are transfered. > > The downside: > A 10% fee is taken from the totals. > But isn't it better to pay this fee, than the project not being realized > at all? > > Just my thoughts... > > /Stig > > Francois Suter skrev: >> Dear Developers, >> >> As you saw if you also subscribe to the Announce list, we just >> launched today the first sponsored projects. If you don't know what >> we're talking about, you can catch up with the news posted on >> news.typo3.org. Basically sponsored projects are Core TYPO3 v4 >> projects with well-defined goals for which we will try to raise in >> money in order to actually pay the developers for their work. This >> form of support should help accelerate the development of TYPO3. >> >> The best thing is that you can be part of this. Sponsored projects aim >> for a greater involvement of the community. Refer to [1] for more >> information. See also [2] for a more personal view of how you can >> participate in sponsored projects and what you can gain from them. >> >> So reach for your wallet! Alternately if you prefer getting your hands >> dirty there are currently two open positions, both for the New FORM >> project. We are looking for a developer who would also act as backup >> project leader to Patrick Broens and an additional reviewer. Please >> refer to [3] for more details. >> >> We hope you will find these opportunities as exciting as we do. >> From admin at commandline.ch Tue Jul 8 20:20:01 2008 From: admin at commandline.ch (=?ISO-8859-1?Q?Jonas_D=FCbi?=) Date: Tue, 08 Jul 2008 20:20:01 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Hi Ingmar I think there should be some notice, that the next update of sponsorship list will be on 20th of july. Otherwise a lot of agencies will think that there are no other sponsors, so they don't sponsor them selve. What do you think? Best regards, Jonas Ingmar Schlecht schrieb: > Hi Stig, > > Francois, being the TYPO3 v4 Sponsorship Manager, is currently on > holidays until 19. July, so don't expect updates of the amount until > then (he has an Out-of-office reply on his mail address, so potential > sponsors know this). > > I really like the idea of fundable.com, but on the other hand the 10% > fee actually is quite a lot. > > cheers > Ingmar > > > Stig N?rgaard F?rch schrieb: >> It doesn't seem like that there is much progress collecting money for >> these projects. (unless the page isn't updated?) >> http://typo3.org/development/sponsoring/list-of-sponsored-projects/ >> >> I don't think it's because that the community don't want to support >> these projects. But I guess that that many people only want to pay if >> the project actually gets started, - or they can get their money back >> if the project will not get started because of insufficient money. >> >> If there is no real progress in the near future, I suggest to consider >> fundable.com. >> Here we can start collections for each project. >> Each project will have a goal amount. >> There will be a deadline for collections for each project. >> People can make a pledge with an amount they choose themselves. >> If the goal isn't reached before the deadline, noone pays anything. >> If the goal is reached before the deadline, all the pledges are >> transfered. >> >> The downside: >> A 10% fee is taken from the totals. >> But isn't it better to pay this fee, than the project not being >> realized at all? >> >> Just my thoughts... >> >> /Stig >> >> Francois Suter skrev: >>> Dear Developers, >>> >>> As you saw if you also subscribe to the Announce list, we just >>> launched today the first sponsored projects. If you don't know what >>> we're talking about, you can catch up with the news posted on >>> news.typo3.org. Basically sponsored projects are Core TYPO3 v4 >>> projects with well-defined goals for which we will try to raise in >>> money in order to actually pay the developers for their work. This >>> form of support should help accelerate the development of TYPO3. >>> >>> The best thing is that you can be part of this. Sponsored projects >>> aim for a greater involvement of the community. Refer to [1] for more >>> information. See also [2] for a more personal view of how you can >>> participate in sponsored projects and what you can gain from them. >>> >>> So reach for your wallet! Alternately if you prefer getting your >>> hands dirty there are currently two open positions, both for the New >>> FORM project. We are looking for a developer who would also act as >>> backup project leader to Patrick Broens and an additional reviewer. >>> Please refer to [3] for more details. >>> >>> We hope you will find these opportunities as exciting as we do. >>> > > From nospam at nospam.de Tue Jul 8 20:32:31 2008 From: nospam at nospam.de (=?UTF-8?B?RGFuaWVsIFDCmsO2dHppbmdlcg==?=) Date: Tue, 08 Jul 2008 20:32:31 +0200 Subject: [TYPO3-dev] getRootline function not stopping Message-ID: Hey The sys_page->getRootline function just stops if pid 0 is found. I am asking if that is the correct behaviour: In my opinion we have to signs were a rootline can/should be stopped earlier: 1) template with rootflag set 2) the page has the checkbox "Is root of website" What do you think? From ingmar at typo3.org Tue Jul 8 21:06:55 2008 From: ingmar at typo3.org (Ingmar Schlecht) Date: Tue, 08 Jul 2008 21:06:55 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Jonas D?bi schrieb: > Hi Ingmar > > I think there should be some notice, that the next update of sponsorship > list will be on 20th of july. Otherwise a lot of agencies will think > that there are no other sponsors, so they don't sponsor them selve. > > What do you think? Done. http://typo3.org/development/sponsoring/list-of-sponsored-projects/ - Ingmar -- Ingmar Schlecht TYPO3 Association Active Member From dmitry at typo3.org Tue Jul 8 21:31:01 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 08 Jul 2008 22:31:01 +0300 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: Hi! Daniel P??tzinger wrote: > The sys_page->getRootline function just stops if pid 0 is found. > I am asking if that is the correct behaviour: > > In my opinion we have to signs were a rootline can/should be stopped > earlier: > 1) template with rootflag set > 2) the page has the checkbox "Is root of website" > > What do you think? This cannot be changed now because it changes the behavior that existed in all previous versions. phpDoc for this function says clearly: "Returns array with fields of the pages from here ($uid) and back to the root". You always can check for "is_siteroot" flag in the root line. -- Dmitry Dulepov http://typo3bloke.net/ From stig at 8620.dk Tue Jul 8 21:47:14 2008 From: stig at 8620.dk (=?ISO-8859-1?Q?Stig_N=F8rgaard_F=E6rch?=) Date: Tue, 08 Jul 2008 21:47:14 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: http://typo3.org/development/sponsoring/list-of-sponsored-projects/ Reason: Segment "list-of-sponsored-projects" was not a keyword for a postVarSet as expected! /Stig Ingmar Schlecht skrev: > Jonas D?bi schrieb: >> Hi Ingmar >> >> I think there should be some notice, that the next update of >> sponsorship list will be on 20th of july. Otherwise a lot of agencies >> will think that there are no other sponsors, so they don't sponsor >> them selve. >> >> What do you think? > > Done. > > http://typo3.org/development/sponsoring/list-of-sponsored-projects/ > > - Ingmar > From stig at 8620.dk Tue Jul 8 21:48:14 2008 From: stig at 8620.dk (=?ISO-8859-1?Q?Stig_N=F8rgaard_F=E6rch?=) Date: Tue, 08 Jul 2008 21:48:14 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Actually all subpages of "Sponsored Projects" returns this error. /Stig Stig N?rgaard F?rch skrev: > http://typo3.org/development/sponsoring/list-of-sponsored-projects/ > Reason: Segment "list-of-sponsored-projects" was not a keyword for a > postVarSet as expected! > > /Stig > > Ingmar Schlecht skrev: >> Jonas D?bi schrieb: >>> Hi Ingmar >>> >>> I think there should be some notice, that the next update of >>> sponsorship list will be on 20th of july. Otherwise a lot of agencies >>> will think that there are no other sponsors, so they don't sponsor >>> them selve. >>> >>> What do you think? >> >> Done. >> >> http://typo3.org/development/sponsoring/list-of-sponsored-projects/ >> >> - Ingmar >> From michael at typo3.org Tue Jul 8 22:22:37 2008 From: michael at typo3.org (Michael Stucki) Date: Tue, 08 Jul 2008 22:22:37 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects References: Message-ID: Hi Stig, seems like this was just a temporary issue. It's working fine on this side... - michael Stig N?rgaard F?rch wrote: > Actually all subpages of "Sponsored Projects" returns this error. > > /Stig > > Stig N?rgaard F?rch skrev: >> http://typo3.org/development/sponsoring/list-of-sponsored-projects/ >> Reason: Segment "list-of-sponsored-projects" was not a keyword for a >> postVarSet as expected! >> >> /Stig >> >> Ingmar Schlecht skrev: >>> Jonas D?bi schrieb: >>>> Hi Ingmar >>>> >>>> I think there should be some notice, that the next update of >>>> sponsorship list will be on 20th of july. Otherwise a lot of agencies >>>> will think that there are no other sponsors, so they don't sponsor >>>> them selve. >>>> >>>> What do you think? >>> >>> Done. >>> >>> http://typo3.org/development/sponsoring/list-of-sponsored-projects/ >>> >>> - Ingmar >>> -- Use a newsreader! Check out http://typo3.org/community/mailing-lists/use-a-news-reader/ From nospam at nospam.de Tue Jul 8 23:11:18 2008 From: nospam at nospam.de (=?UTF-8?B?RGFuaWVsIFDCmsO2dHppbmdlcg==?=) Date: Tue, 08 Jul 2008 23:11:18 +0200 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Daniel P??tzinger wrote: >> The sys_page->getRootline function just stops if pid 0 is found. >> I am asking if that is the correct behaviour: >> >> In my opinion we have to signs were a rootline can/should be stopped >> earlier: >> 1) template with rootflag set >> 2) the page has the checkbox "Is root of website" >> >> What do you think? > > This cannot be changed now because it changes the behavior that existed > in all previous versions. phpDoc for this function says clearly: > "Returns array with fields of the pages from here ($uid) and back to the > root". OK but the definition of root is missing. The root of a tree is not always the page 0. e.g. typo3(0) -rootpage --domain1 --domain2 this causes the behaviour that typolink between domains even with the flag config.typolinkLinkAccessRestrictedPages do not work. From nospam at nospam.de Tue Jul 8 23:12:38 2008 From: nospam at nospam.de (=?UTF-8?B?RGFuaWVsIFDCmsO2dHppbmdlcg==?=) Date: Tue, 08 Jul 2008 23:12:38 +0200 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: >> clearly: "Returns array with fields of the pages from here ($uid) and >> back to the root". > OK but the definition of root is missing. The root of a tree is not > always the page 0. > > e.g. > > typo3(0) > -rootpage > --domain1 > --domain2 > > this causes the behaviour that typolink between domains even with the > flag config.typolinkLinkAccessRestrictedPages do not work. > sorry i mean config.typolinkCheckRootline=1 From admin at commandline.ch Wed Jul 9 08:11:49 2008 From: admin at commandline.ch (=?ISO-8859-1?Q?Jonas_D=FCbi?=) Date: Wed, 09 Jul 2008 08:11:49 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Ingmar Schlecht schrieb: > Done. > > http://typo3.org/development/sponsoring/list-of-sponsored-projects/ > > - Ingmar > Thank you! That was a realy fast reaction. typo3.org team rocks From stig at 8620.dk Wed Jul 9 09:14:43 2008 From: stig at 8620.dk (=?ISO-8859-15?Q?Stig_N=F8rgaard_F=E6rch?=) Date: Wed, 09 Jul 2008 09:14:43 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Yes. It's working again now. /Stig Michael Stucki skrev: > Hi Stig, > > seems like this was just a temporary issue. It's working fine on this > side... > > - michael > > Stig N?rgaard F?rch wrote: > >> Actually all subpages of "Sponsored Projects" returns this error. >> >> /Stig >> >> Stig N?rgaard F?rch skrev: >>> http://typo3.org/development/sponsoring/list-of-sponsored-projects/ >>> Reason: Segment "list-of-sponsored-projects" was not a keyword for a >>> postVarSet as expected! >>> >>> /Stig >>> >>> Ingmar Schlecht skrev: >>>> Jonas D?bi schrieb: >>>>> Hi Ingmar >>>>> >>>>> I think there should be some notice, that the next update of >>>>> sponsorship list will be on 20th of july. Otherwise a lot of agencies >>>>> will think that there are no other sponsors, so they don't sponsor >>>>> them selve. >>>>> >>>>> What do you think? >>>> Done. >>>> >>>> http://typo3.org/development/sponsoring/list-of-sponsored-projects/ >>>> >>>> - Ingmar >>>> > From simon at rundell.org.uk Wed Jul 9 10:24:11 2008 From: simon at rundell.org.uk (Fr. Simon Rundell SCP) Date: Wed, 9 Jul 2008 09:24:11 +0100 Subject: [TYPO3-dev] exec_SELECTgetRows parameters Message-ID: Has anyone had any success with ordering the results of exec_SELECTgetRows in descending order? $res=$GLOBALS["TYPO3_DB"]->exec_SELECTgetRows("uid", "tx_table", "1=1", "uid DESC", 1); this would in theory give me the last uid in "tx_table" by it only ever seems to return the first. I know I could ref it by $res[count($res)]["uid"] but it simply does not seem right to this this outside the function. Have I missed something so obvious. The docs in http://typo3.org/documentation/document-library/core-documentation/doc_core_cgl/4.1.0/view/1/4/are a bit out of date and don't mention the exec_ functions which have superceded SELECTquery and the like, so any help is appreciated. Fr. S -- Fr. Simon Rundell SCP Parish of S. Thomas the Apostle, Elson The Vicarage, 21 Elson Road, Gosport, Hants, UK, PO12 4BL Tel: 02392 582824 Mob: 07976 802123 email: simon at rundell.org.uk web: http://www.saintthomaselson.org.uk blog: http://frsimon.wordpress.com From dmitry at typo3.org Wed Jul 9 10:31:52 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 09 Jul 2008 11:31:52 +0300 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: Hi! Daniel P??tzinger wrote: > OK but the definition of root is missing. The root of a tree is not > always the page 0. > > e.g. > > typo3(0) > -rootpage > --domain1 > --domain2 > > this causes the behaviour that typolink between domains even with the > flag config.typolinkLinkAccessRestrictedPages do not work. The root of the *tree* is 0 from TYPO3 point of view. Applications should determine other restrictions (including mountpoints, etc). If you are in Frontend, you can actually use $GLOBALS['TSFE']->tmpl->rootLine, which is the rootline for the current web site. -- Dmitry Dulepov http://typo3bloke.net/ From dmitry at typo3.org Wed Jul 9 10:34:35 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 09 Jul 2008 11:34:35 +0300 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: Hi! Daniel P??tzinger wrote: >> typo3(0) >> -rootpage >> --domain1 >> --domain2 >> >> this causes the behaviour that typolink between domains even with the >> flag config.typolinkLinkAccessRestrictedPages do not work. >> > sorry i mean config.typolinkCheckRootline=1 I had this case for a client some time ago. It works with latest realurl. You can even put domains like this: globe |-- domain1 |-- page1 |-- domain2 And it links properly. At least here. But you must have both root template at each domain and "Is root of website" set in page properties. -- Dmitry Dulepov http://typo3bloke.net/ From rgn at windinternet.nl Wed Jul 9 10:37:07 2008 From: rgn at windinternet.nl (Rudy Gnodde) Date: Wed, 09 Jul 2008 10:37:07 +0200 Subject: [TYPO3-dev] exec_SELECTgetRows parameters In-Reply-To: References: Message-ID: Hello, Fr. Simon Rundell SCP wrote: > $res=$GLOBALS["TYPO3_DB"]->exec_SELECTgetRows("uid", "tx_table", "1=1", "uid > DESC", 1); exec_SELECTgetRows has the following parameters: whatToSelect, table, where, groupBy, orderBy, limit. You forgot the groupBy, so it's trying to group by "uid DESC" and order by "1" now. Regards, Rudy Gnodde WIND Internet http://www.windinternet.nl From dmitry at typo3.org Wed Jul 9 10:38:21 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 09 Jul 2008 11:38:21 +0300 Subject: [TYPO3-dev] exec_SELECTgetRows parameters In-Reply-To: References: Message-ID: Hi! Fr. Simon Rundell SCP wrote: > Has anyone had any success with ordering the results of exec_SELECTgetRows > in descending order? Yes but not your way ;) > $res=$GLOBALS["TYPO3_DB"]->exec_SELECTgetRows("uid", "tx_table", "1=1", "uid > DESC", 1); You pass "uid DESC" to "group by", not "order by". And you pass "1" to "order by". Check function parameters: function exec_SELECTgetRows($select_fields,$from_table,$where_clause, $groupBy='',$orderBy='',$limit='',$uidIndexField='') And use single quotes, not double ;) It saves you time for each request. Good luck! -- Dmitry Dulepov http://typo3bloke.net/ From jens.bergau at gmx.de Wed Jul 9 10:59:56 2008 From: jens.bergau at gmx.de (Jens Bergau) Date: Wed, 09 Jul 2008 10:59:56 +0200 Subject: [TYPO3-dev] how to find out where certain links are generated Message-ID: Hi @ all, please appologize for bad english... I want to find out, where (on which page(s)) certain links are generated: In the Web-Info module exists the function 'indexedsearch' where i can view indexed pages. Here i have entries like that: example 1: PageId=56 1. no GET-params -> thats how it should be 2. &tx_ttnews[pointer]=1 -> on which page is this link generated? example 2: PageID=220 1. &tx_ttnews[tt_news]=195 -> thats how it should be 2. &L=0&tx_ttnews[tt_news]=195 -> on which page is this link generated? The problem is, that in example 1 theoretical no links with param tx_ttnews[pointer] to that page should exist, because on this page are only news-plugin showing the 3 latest news without an pagebrowser. Additionally dontUseBackPid = 1 is set. The same in example 2: no links with param L=0 should exist because the sys_language_id is always 0 and L is not part of linkVars... So how can i find out, where these links are generated? Does anybody have any hints for me? thanks a lot Jens From jens.bergau at gmx.de Wed Jul 9 11:03:54 2008 From: jens.bergau at gmx.de (Jens Bergau) Date: Wed, 09 Jul 2008 11:03:54 +0200 Subject: [TYPO3-dev] how to find out where certain links are generated In-Reply-To: References: Message-ID: i forgot to mention that i use TYPO3 4.1.7 with simulateStaticDocuments, if this is important to that topic... From masi-no at spam-typo3.org Wed Jul 9 11:18:21 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Wed, 09 Jul 2008 11:18:21 +0200 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Daniel P??tzinger wrote: >> OK but the definition of root is missing. The root of a tree is not >> always the page 0. >> >> e.g. >> >> typo3(0) >> -rootpage >> --domain1 >> --domain2 >> >> this causes the behaviour that typolink between domains even with the >> flag config.typolinkLinkAccessRestrictedPages do not work. > > The root of the *tree* is 0 from TYPO3 point of view. Applications > should determine other restrictions (including mountpoints, etc). > > If you are in Frontend, you can actually use > $GLOBALS['TSFE']->tmpl->rootLine, which is the rootline for the current > web site. I don't think that this distinction is clear from the inline docs. Needless to say that having an isRoot-flag both in the page and the template records doesn't make things easier. * Masi * Is it somewhere stated what these flags actually do and why there are two of them? From masi-no at spam-typo3.org Wed Jul 9 12:49:44 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Wed, 09 Jul 2008 12:49:44 +0200 Subject: [TYPO3-dev] how to find out where certain links are generated In-Reply-To: References: Message-ID: Jens Bergau schrieb: > Hi @ all, > > please appologize for bad english... > > I want to find out, where (on which page(s)) certain links are generated: > > In the Web-Info module exists the function 'indexedsearch' where i can > view indexed pages. Here i have entries like that: > > example 1: > PageId=56 > 1. no GET-params -> thats how it should be > 2. &tx_ttnews[pointer]=1 -> on which page is this link generated? > > example 2: > PageID=220 > 1. &tx_ttnews[tt_news]=195 -> thats how it should be > 2. &L=0&tx_ttnews[tt_news]=195 -> on which page is this link generated? > > The problem is, that in example 1 theoretical no links with param > tx_ttnews[pointer] to that page should exist, because on this page are > only news-plugin showing the 3 latest news without an pagebrowser. > Additionally dontUseBackPid = 1 is set. > The same in example 2: no links with param L=0 should exist because the > sys_language_id is always 0 and L is not part of linkVars... > > So how can i find out, where these links are generated? > Does anybody have any hints for me? Check the webservers log and have a look at the referer. Masi From simon at rundell.org.uk Wed Jul 9 13:15:09 2008 From: simon at rundell.org.uk (Fr. Simon Rundell SCP) Date: Wed, 9 Jul 2008 12:15:09 +0100 Subject: [TYPO3-dev] exec_SELECTgetRows parameters In-Reply-To: References: Message-ID: classic error! My apologies for my continued stupidity and thank you for the list's tolerance of me. Fr. Simon On 09/07/2008, Dmitry Dulepov [typo3] wrote: > Hi! > > Fr. Simon Rundell SCP wrote: >> Has anyone had any success with ordering the results of exec_SELECTgetRows >> in descending order? > > Yes but not your way ;) > >> $res=$GLOBALS["TYPO3_DB"]->exec_SELECTgetRows("uid", "tx_table", "1=1", >> "uid >> DESC", 1); > > You pass "uid DESC" to "group by", not "order by". And you pass "1" to > "order by". Check function parameters: > > function exec_SELECTgetRows($select_fields,$from_table,$where_clause, > $groupBy='',$orderBy='',$limit='',$uidIndexField='') > > And use single quotes, not double ;) It saves you time for each request. > > Good luck! > > -- > Dmitry Dulepov > http://typo3bloke.net/ > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > -- Fr. Simon Rundell SCP Parish of S. Thomas the Apostle, Elson The Vicarage, 21 Elson Road, Gosport, Hants, UK, PO12 4BL Tel: 02392 582824 Mob: 07976 802123 email: simon at rundell.org.uk web: http://www.saintthomaselson.org.uk blog: http://frsimon.wordpress.com "I came that you may have life - life in all its fullness" John 10:10 READ CAREFULLY. By reading this email, you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. From nospam at nospam.de Wed Jul 9 13:14:26 2008 From: nospam at nospam.de (=?UTF-8?B?RGFuaWVsIFDCmsO2dHppbmdlcg==?=) Date: Wed, 09 Jul 2008 13:14:26 +0200 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Daniel P??tzinger wrote: >>> typo3(0) >>> -rootpage >>> --domain1 >>> --domain2 >>> >>> this causes the behaviour that typolink between domains even with the >>> flag config.typolinkLinkAccessRestrictedPages do not work. >>> >> sorry i mean config.typolinkCheckRootline=1 > > I had this case for a client some time ago. It works with latest > realurl. You can even put domains like this: > > globe > |-- domain1 > |-- page1 > |-- domain2 > > And it links properly. At least here. But you must have both root > template at each domain and "Is root of website" set in page properties. > cool i have to check. does this version include that the realurl configuration for that domain is used - if they have diffrent configuration? From jens.bergau at gmx.de Wed Jul 9 13:24:44 2008 From: jens.bergau at gmx.de (Jens Bergau) Date: Wed, 09 Jul 2008 13:24:44 +0200 Subject: [TYPO3-dev] how to find out where certain links are generated In-Reply-To: References: Message-ID: thx a lot after that i know, that these links are in the cache of web-crawlers like mnsbot and so on... Jens Martin Kutschker schrieb: > Jens Bergau schrieb: >> Hi @ all, >> >> please appologize for bad english... >> >> I want to find out, where (on which page(s)) certain links are generated: >> >> In the Web-Info module exists the function 'indexedsearch' where i can >> view indexed pages. Here i have entries like that: >> >> example 1: >> PageId=56 >> 1. no GET-params -> thats how it should be >> 2. &tx_ttnews[pointer]=1 -> on which page is this link generated? >> >> example 2: >> PageID=220 >> 1. &tx_ttnews[tt_news]=195 -> thats how it should be >> 2. &L=0&tx_ttnews[tt_news]=195 -> on which page is this link generated? >> >> The problem is, that in example 1 theoretical no links with param >> tx_ttnews[pointer] to that page should exist, because on this page are >> only news-plugin showing the 3 latest news without an pagebrowser. >> Additionally dontUseBackPid = 1 is set. >> The same in example 2: no links with param L=0 should exist because the >> sys_language_id is always 0 and L is not part of linkVars... >> >> So how can i find out, where these links are generated? >> Does anybody have any hints for me? > > Check the webservers log and have a look at the referer. > > Masi From dmitry at typo3.org Wed Jul 9 15:43:19 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 09 Jul 2008 16:43:19 +0300 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: Hi Daniel! Daniel P??tzinger wrote: > does this version include that the realurl configuration for that domain > is used - if they have diffrent configuration? I am not sure that I understood the question. There is no changes in RealURL configuration needed to use nested domains. But I must say that TYPO3 does not expect nested domains, so having them may cause strange effects with links. -- Dmitry Dulepov http://typo3bloke.net/ From dmitry at typo3.org Wed Jul 9 15:45:49 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 09 Jul 2008 16:45:49 +0300 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: Hi! Martin Kutschker wrote: >> If you are in Frontend, you can actually use >> $GLOBALS['TSFE']->tmpl->rootLine, which is the rootline for the current >> web site. > > I don't think that this distinction is clear from the inline docs. > Needless to say that having an isRoot-flag both in the page and the > template records doesn't make things easier. * I absolutely and fully agree. > * Is it somewhere stated what these flags actually do and why there are > two of them? Not really. I think "Is site root?" in page properties was created to avoid searching for root TS template in some functions. -- Dmitry Dulepov http://typo3bloke.net/ From phil at goli.at Wed Jul 9 19:00:01 2008 From: phil at goli.at (Philipp Metzler) Date: Wed, 9 Jul 2008 19:00:01 +0200 Subject: [TYPO3-dev] Developer of extension nsb_cat2menu doesn't answer Message-ID: Hi, Thanks a lot for your answer. I'd be willing to spend some money for an update but I'd like to release the new version to the TER then. So is there any possibility to get hold of the username/password/key whatever necessary to upload the new version. The original programmer of the extension doesn't answer anymore. What do you think guys? > Philipp Metzler kirjoitti: >> Hello, >> >> We use the extension nsb_cat2menu to display tt_products categories >> in >> the frontend. If possible we would like to implement some features >> and >> give it back to the community by releasing a new version. The >> developer >> of the extension Sami Ben-yahia sittinggoat at hotmail.com unfortunately >> doesn't answer to emails. Sent one on the 18th of June and one on the >> 30th of June. Do you have another contact to him? What do you >> suggest? >> Release it by using another name? > > yes - I have made some improvements to that plugin - maybe you are > interested on them? Best regards, Philipp _______________________________________________________________ DI Philipp Metzler Goli.at GesbR. Dorf Rieden 7/11 A-6900 Bregenz EU-Austria eMail: phil at goli.at Skype (Internet Phone): googol Tel: +43 / 676 / 72 94 176 ICQ: 13950954 o www.philippmetzler.com - Softwareentwicklung und Websites mit Typo3. o www.goli.at - Ihr Speicherplatz im Web. Messen Sie uns an unseren Daten. o www.clickshopping.at - Wir bringen Ihre Produkte auf den Punkt. o www.greencar.at - Elektroautos und mehr ... _______________________________________________________________ From tapio.markula at xetpoint.fi Wed Jul 9 19:41:56 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Wed, 09 Jul 2008 20:41:56 +0300 Subject: [TYPO3-dev] Developer of extension nsb_cat2menu doesn't answer In-Reply-To: References: Message-ID: Philipp Metzler kirjoitti: > Hi, > > Thanks a lot for your answer. I'd be willing to spend some money for an > update but I'd like to release the new version to the TER then. So is > there any possibility to get hold of the username/password/key whatever > necessary to upload the new version. The original programmer of the > extension doesn't answer anymore. Afaik the original author should made the change and assign key to someone else. Otherwise can do an XCLASS and use that fixing problems or just adding features. From scecere at krur.com Thu Jul 10 06:57:37 2008 From: scecere at krur.com (stefano cecere) Date: Thu, 10 Jul 2008 06:57:37 +0200 Subject: [TYPO3-dev] cObj and html templates in CLI script Message-ID: hallo everybody i'm setting up a CLI script to send customized email when particular things happens. everything works perfectly (using phpmailer class), but now i'd like to put all email templates in a separate html file and use common cObj templates functions. i know it is a bit difficult , and maybe to "heavy" to load all FE classes for just a few functions. what do you think? any idea how to bring simple templates functions to CLI? any BE library around? stefano From dmitry at typo3.org Thu Jul 10 08:37:21 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Thu, 10 Jul 2008 09:37:21 +0300 Subject: [TYPO3-dev] cObj and html templates in CLI script In-Reply-To: References: Message-ID: Hi! stefano cecere wrote: > any idea how to bring simple templates functions to CLI? > any BE library around? Look in t3lib/class.t3lib_parsehtml.php -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From ernst at cron-it.de Thu Jul 10 09:48:22 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Thu, 10 Jul 2008 09:48:22 +0200 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] wrote: on 09.07.2008 15:45: > Hi! > > Martin Kutschker wrote: >>> If you are in Frontend, you can actually use >>> $GLOBALS['TSFE']->tmpl->rootLine, which is the rootline for the current >>> web site. >> >> I don't think that this distinction is clear from the inline docs. >> Needless to say that having an isRoot-flag both in the page and the >> template records doesn't make things easier. * > > I absolutely and fully agree. > >> * Is it somewhere stated what these flags actually do and why there are >> two of them? > > Not really. I think "Is site root?" in page properties was created to > avoid searching for root TS template in some functions. The flag is used: - in "sliding" functions (to stop the sliding), - typolink uses it to stop looking for a domain record. - also it is used by the page-tree (in BE) to put the "domain name" besides the page title in case options.pageTree.showDomainNameWithTitle is set. - for TCA methods that can substitute the marker "###SITEROOT###", this is the flag that is checked for this. AFAIK these are the only parts where is_siteroot is used, besides the mentioned RealURL part. Cheers, Ernesto From ss at cabag.ch Thu Jul 10 13:56:21 2008 From: ss at cabag.ch (Sonja Scholz) Date: Thu, 10 Jul 2008 13:56:21 +0200 Subject: [TYPO3-dev] keep the good old extensions alive / crawler and cachemgm In-Reply-To: References: Message-ID: Daniel P??tzinger schrieb: > ben van 't ende [netcreators] schrieb: >> Daniel P??tzinger wrote: >>> Sonja Scholz schrieb: >>>> Hello all, >>>> >>>> i use the useful extension crawler. >>>> >>>> And my question is: Is there an advancement for this extension, in >>>> future? Because nothing has been done, since march 2007. Who is the >>>> responsible developer, then? >>>> >>>> Thanks for your answer. >>>> >>>> Kind regards, >>>> >>>> Sonja >>> >>> Hello >>> >>> It is kasper. >>> >>> Do you found any bugs - because we solved some of the bugs we had >>> recently. >>> >>> greetings >> >> Hi Daniel, >> >> I think Kasper would be glad to hand over the key to you if you would >> want to do further development. We have improved "loginusertrack" (not >> updated since - 24.05.2003) and hope to get the key transferred any >> time soon to publish a new version. >> >> gRTz >> >> ben > ok - i will ask him - thx Hello Daniel, did you ask Kasper, because of the key of the crawler extension? It would also be great, if the crawler (and also the useful cachemgm) extension would become part of forge.typo3.org. Whats your opinion here? It would be a pity, if this useful extensions wouldn't be improved in the future. Kind regards, Sonja From stephane.lists at gmail.com Thu Jul 10 17:07:32 2008 From: stephane.lists at gmail.com (Stephane) Date: Thu, 10 Jul 2008 17:07:32 +0200 Subject: [TYPO3-dev] External DB connection inside an extension ? Message-ID: Hi Typo'Gurus I nedd your help. I have a question about external db connection inside typo3 extension. I'm writing an extension who needs to get data from another db (I know, accessing directly to external db is not the best way, but it's the more efficient approach (for speed) than I found after testing SOAP (SOAP is very very very slow) and Co). Then, in my extension, I open a new connection to my external db via mysql_connect command. I'm able to get all necessaries datas with queries ... no problem .. until here. The problem come just after. After this mysql_query on external db, I don't know why but I lost the connection to Typo3 db :(. $GLOBALS['TYPO3_DB']->sql_num_rows return always return 0 (records exist of course), until I call back $GLOBALS['TYPO3_DB']->connectDB(). After this call I could again access to Typo3 db. Sample code / algo : $mylink = mysql_pconnect($server, $username, $password); $mydb = mysql_select_db($dbname, $mylink); ... $result = mysql_query($myquery, $mylink); [ ok I'm able to get external records ] ... $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $this->table, $whereClause); [always = 0 :( ] ... $GLOBALS['TYPO3_DB']->connectDB(); [now it's ok again, I could access to Typo3 db (normal I create a new link ressource) ... :s ] I have try to use also "datasources" and "adob" approach (as done in rlmp_extdbauth for example) instead of "direct php approach", but with the same result :(. I try also pconnect or not, using t3lib_DB::sql_pconnect functions ... a lot of test but without better results ... Typo3 seems to use current active database, and not the $link information I'm using Typo3 4.2.1 and develop a service extension ... What is wrong in my approach ? It's a Typo3 know issue (with a solution ;)) or a problem on my php/mysql configuration ? Thanks a lot for your help (and sorry for my english) BR Stef From mauro.lorenzutti at webformat.com Thu Jul 10 17:27:51 2008 From: mauro.lorenzutti at webformat.com (Mauro Lorenzutti) Date: Thu, 10 Jul 2008 17:27:51 +0200 Subject: [TYPO3-dev] External DB connection inside an extension ? In-Reply-To: References: Message-ID: Hi Stephane, > Hi Typo'Gurus > > I nedd your help. I have a question about external db connection inside > typo3 extension. > > I'm writing an extension who needs to get data from another db (I know, > accessing directly to external db is not the best way, but it's the more > efficient approach (for speed) than I found after testing SOAP (SOAP is > very very very slow) and Co). > > Then, in my extension, I open a new connection to my external db via > mysql_connect command. I'm able to get all necessaries datas with > queries ... no problem .. until here. > > The problem come just after. After this mysql_query on external db, I > don't know why but I lost the connection to Typo3 db :(. > > $GLOBALS['TYPO3_DB']->sql_num_rows return always return 0 (records exist > of course), until I call back $GLOBALS['TYPO3_DB']->connectDB(). > After this call I could again access to Typo3 db. > > Sample code / algo : > > $mylink = mysql_pconnect($server, $username, $password); > I already noticed this problem and I solved it with a mysql_nconnect insteas of mysql_pconnect. I hope this will solve your problem. P.S. If you are connecting an external DB in TYPO3, have you ever tried the "DB Integration" (wfqbe) extension? Regards, -- Mauro Lorenzutti e-mail: mauro.lorenzutti at webformat.com --------------------------------------------------------- WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN Tel +39-0427-926.389 -- Fax +39-0427-927.653 info at webformat.com -- http://www.webformat.com --------------------------------------------------------- From stephane.lists at gmail.com Thu Jul 10 17:50:11 2008 From: stephane.lists at gmail.com (Stephane) Date: Thu, 10 Jul 2008 17:50:11 +0200 Subject: [TYPO3-dev] External DB connection inside an extension ? In-Reply-To: References: Message-ID: Hi Mauro Lorenzutti wrote: > Hi Stephane, > >> Hi Typo'Gurus >> >> I nedd your help. I have a question about external db connection inside >> typo3 extension. >> >> I'm writing an extension who needs to get data from another db (I know, >> accessing directly to external db is not the best way, but it's the more >> efficient approach (for speed) than I found after testing SOAP (SOAP is >> very very very slow) and Co). >> >> Then, in my extension, I open a new connection to my external db via >> mysql_connect command. I'm able to get all necessaries datas with >> queries ... no problem .. until here. >> >> The problem come just after. After this mysql_query on external db, I >> don't know why but I lost the connection to Typo3 db :(. >> >> $GLOBALS['TYPO3_DB']->sql_num_rows return always return 0 (records exist >> of course), until I call back $GLOBALS['TYPO3_DB']->connectDB(). >> After this call I could again access to Typo3 db. >> >> Sample code / algo : >> >> $mylink = mysql_pconnect($server, $username, $password); >> > > I already noticed this problem and I solved it with a mysql_nconnect > insteas of mysql_pconnect. I hope this will solve your problem. mysql_Nconnect ? or you talk about ADOdb->NConnect ? If you talk about mysql_connect / mysql_pconnect, this approach work only if you use a mysql connect # as Typo3 config. To resume, if you try 2 mysql_connect, I lost the T3 connection If you try with 2 mysql_pconnect, I lost the connection too With 1 mysql_connect and 1 mysql_pconnect, this approach works but I think it's not a good one (pconnect should be keep as T3 parameter depending of hosting configuration). > > P.S. If you are connecting an external DB in TYPO3, have you ever tried > the "DB Integration" (wfqbe) extension? I have a look on your extension. But you use also ADOdb, and I do exactly the same thinks as inside tx_wfqbe_connect::connect function. But it doesn't work in my case (thanks for your extension but I just need to do 1 request, I don't new all the nice stuff presented in cour extension). BR Stef > > Regards, > From stephane.lists at gmail.com Thu Jul 10 17:55:14 2008 From: stephane.lists at gmail.com (Stephane) Date: Thu, 10 Jul 2008 17:55:14 +0200 Subject: [TYPO3-dev] External DB connection inside an extension ? In-Reply-To: References: Message-ID: Hi again I just done a test with $dbConn->NConnect($server, $username, $password, $dbname); instead of connect or pconnect (with ADOdb) and it's seems to work well now. Thanks a lot !!! Stephane Mauro Lorenzutti wrote: > Hi Stephane, > > >> Hi Typo'Gurus >> >> I nedd your help. I have a question about external db connection inside >> typo3 extension. >> >> I'm writing an extension who needs to get data from another db (I know, >> accessing directly to external db is not the best way, but it's the more >> efficient approach (for speed) than I found after testing SOAP (SOAP is >> very very very slow) and Co). >> >> Then, in my extension, I open a new connection to my external db via >> mysql_connect command. I'm able to get all necessaries datas with >> queries ... no problem .. until here. >> >> The problem come just after. After this mysql_query on external db, I >> don't know why but I lost the connection to Typo3 db :(. >> >> $GLOBALS['TYPO3_DB']->sql_num_rows return always return 0 (records exist >> of course), until I call back $GLOBALS['TYPO3_DB']->connectDB(). >> After this call I could again access to Typo3 db. >> >> Sample code / algo : >> >> $mylink = mysql_pconnect($server, $username, $password); >> >> > > I already noticed this problem and I solved it with a mysql_nconnect > insteas of mysql_pconnect. I hope this will solve your problem. > > P.S. If you are connecting an external DB in TYPO3, have you ever tried > the "DB Integration" (wfqbe) extension? > > Regards, > > From mauro.lorenzutti at webformat.com Thu Jul 10 18:07:07 2008 From: mauro.lorenzutti at webformat.com (Mauro Lorenzutti) Date: Thu, 10 Jul 2008 18:07:07 +0200 Subject: [TYPO3-dev] External DB connection inside an extension ? In-Reply-To: References: Message-ID: Hi Stephane, >> I already noticed this problem and I solved it with a mysql_nconnect >> insteas of mysql_pconnect. I hope this will solve your problem. >> > mysql_Nconnect ? or you talk about ADOdb->NConnect ? > yes, you are right, it's an ADODB function... Regards, -- Mauro Lorenzutti e-mail: mauro.lorenzutti at webformat.com --------------------------------------------------------- WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN Tel +39-0427-926.389 -- Fax +39-0427-927.653 info at webformat.com -- http://www.webformat.com --------------------------------------------------------- From mauro.lorenzutti at webformat.com Thu Jul 10 18:07:40 2008 From: mauro.lorenzutti at webformat.com (Mauro Lorenzutti) Date: Thu, 10 Jul 2008 18:07:40 +0200 Subject: [TYPO3-dev] External DB connection inside an extension ? In-Reply-To: References: Message-ID: Stephane ha scritto: > Hi again > > I just done a test with $dbConn->NConnect($server, $username, $password, > $dbname); instead of connect or pconnect (with ADOdb) and it's seems to > work well now. > > Thanks a lot !!! > great! Have a nice coding night ;-) -- Mauro Lorenzutti e-mail: mauro.lorenzutti at webformat.com --------------------------------------------------------- WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN Tel +39-0427-926.389 -- Fax +39-0427-927.653 info at webformat.com -- http://www.webformat.com --------------------------------------------------------- From dmitry at typo3.org Thu Jul 10 19:49:08 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Thu, 10 Jul 2008 20:49:08 +0300 Subject: [TYPO3-dev] External DB connection inside an extension ? In-Reply-To: References: Message-ID: Hi! Stephane wrote: > Then, in my extension, I open a new connection to my external db via > mysql_connect command. I'm able to get all necessaries datas with > queries ... no problem .. until here. > > The problem come just after. After this mysql_query on external db, I > don't know why but I lost the connection to Typo3 db :(. This happens in PHP if you use the same user name and password to different databases. PHP just selects another database and reuses the same connections. Normally each database must have its own user. > $GLOBALS['TYPO3_DB']->sql_num_rows return always return 0 (records exist > of course), until I call back $GLOBALS['TYPO3_DB']->connectDB(). > After this call I could again access to Typo3 db. Yes, this call will select TYPO3 database again :) -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From ernst at cron-it.de Thu Jul 10 20:04:11 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Thu, 10 Jul 2008 20:04:11 +0200 Subject: [TYPO3-dev] External DB connection inside an extension ? In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] wrote: on 10.07.2008 19:49: >> Then, in my extension, I open a new connection to my external db via >> mysql_connect command. I'm able to get all necessaries datas with >> queries ... no problem .. until here. >> >> The problem come just after. After this mysql_query on external db, I >> don't know why but I lost the connection to Typo3 db :(. > > This happens in PHP if you use the same user name and password to > different databases. PHP just selects another database and reuses the > same connections. Normally each database must have its own user. True! And Stephane, Mauro: The reason why with AdoDB it works, is because NConnect calls mysql_connect with the $new_link=TRUE parameter, which defaults to "FALSE" (re-use existing link). See: http://www.php.net/mysql_connect for more details on the mysql_connect parameter $new_link. Cheers, Ernesto From typo3 at rvt.dds.nl Thu Jul 10 23:13:49 2008 From: typo3 at rvt.dds.nl (Ries van Twisk) Date: Thu, 10 Jul 2008 17:13:49 -0400 Subject: [TYPO3-dev] External DB connection inside an extension ? In-Reply-To: References: Message-ID: you can use DBAL or rvt_adodb. rvt_adodb uses a DBAL compatible syntax, but will not slow down your overall TYPO3 installation. rvt_adodb will just open an additional connection for you at the moment TYPO3 initializes a DB connection. Ries On Jul 10, 2008, at 11:07 AM, Stephane wrote: > Hi Typo'Gurus > > I nedd your help. I have a question about external db connection > inside > typo3 extension. > > I'm writing an extension who needs to get data from another db (I > know, > accessing directly to external db is not the best way, but it's the > more > efficient approach (for speed) than I found after testing SOAP (SOAP > is > very very very slow) and Co). > > Then, in my extension, I open a new connection to my external db via > mysql_connect command. I'm able to get all necessaries datas with > queries ... no problem .. until here. > > The problem come just after. After this mysql_query on external db, I > don't know why but I lost the connection to Typo3 db :(. > > $GLOBALS['TYPO3_DB']->sql_num_rows return always return 0 (records > exist > of course), until I call back $GLOBALS['TYPO3_DB']->connectDB(). > After this call I could again access to Typo3 db. > > Sample code / algo : > > $mylink = mysql_pconnect($server, $username, $password); > $mydb = mysql_select_db($dbname, $mylink); > ... > $result = mysql_query($myquery, $mylink); > [ ok I'm able to get external records ] > ... > $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $this->table, > $whereClause); > [always = 0 :( ] > ... > $GLOBALS['TYPO3_DB']->connectDB(); > [now it's ok again, I could access to Typo3 db (normal I create a new > link ressource) ... :s ] > > I have try to use also "datasources" and "adob" approach (as done in > rlmp_extdbauth for example) instead of "direct php approach", but with > the same result :(. I try also pconnect or not, using > t3lib_DB::sql_pconnect functions ... a lot of test but without better > results ... Typo3 seems to use current active database, and not the > $link information > > I'm using Typo3 4.2.1 and develop a service extension ... > > What is wrong in my approach ? It's a Typo3 know issue (with a > solution > ;)) or a problem on my php/mysql configuration ? > > Thanks a lot for your help (and sorry for my english) > > BR > > Stef > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev From stephane.lists at gmail.com Fri Jul 11 08:25:41 2008 From: stephane.lists at gmail.com (Stephane) Date: Fri, 11 Jul 2008 08:25:41 +0200 Subject: [TYPO3-dev] External DB connection inside an extension ? In-Reply-To: References: Message-ID: Thanks Dimitry and Ernesto (and all) for this both informations. Stephane Ernesto Baschny [cron IT] wrote: > Dmitry Dulepov [typo3] wrote: on 10.07.2008 19:49: > > >>> Then, in my extension, I open a new connection to my external db via >>> mysql_connect command. I'm able to get all necessaries datas with >>> queries ... no problem .. until here. >>> >>> The problem come just after. After this mysql_query on external db, I >>> don't know why but I lost the connection to Typo3 db :(. >>> >> This happens in PHP if you use the same user name and password to >> different databases. PHP just selects another database and reuses the >> same connections. Normally each database must have its own user. >> > > True! And Stephane, Mauro: The reason why with AdoDB it works, is > because NConnect calls mysql_connect with the $new_link=TRUE parameter, > which defaults to "FALSE" (re-use existing link). > > See: > > http://www.php.net/mysql_connect > > for more details on the mysql_connect parameter $new_link. > > Cheers, > Ernesto > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > From tapio.markula at xetpoint.fi Fri Jul 11 09:23:33 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Fri, 11 Jul 2008 10:23:33 +0300 Subject: [TYPO3-dev] function makeDocSel() in alt_doc.php Message-ID: Hi * 850: function makeDocSel() the function doesn't exist in Typo3 4.2.1 The function could be added near
###LANGSELECTOR###
like
###DOC_SEL###
From tapio.markula at xetpoint.fi Fri Jul 11 09:47:14 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Fri, 11 Jul 2008 10:47:14 +0300 Subject: [TYPO3-dev] function makeDocSel() in alt_doc.php In-Reply-To: References: Message-ID: Tapio Markula kirjoitti: > Hi > > * 850: function makeDocSel() > > the function doesn't exist in Typo3 4.2.1 > > The function could be added near >
###LANGSELECTOR###
> > like >
###DOC_SEL###
maybe that has been regarded as confusing but that could be added as an optional feature into tm_shared_lib and setting in TS config for users/user groups mod.xMOD_alt_doc.enableDocSelector=1 so if somebody would like to us it, it would be available, but not as default From gawain at camlann.de Fri Jul 11 18:53:28 2008 From: gawain at camlann.de (Christian Welzel) Date: Fri, 11 Jul 2008 18:53:28 +0200 Subject: [TYPO3-dev] xajax in backend of 4.2.1 ? Message-ID: hi there, i want to use the tbo_xajax extension in one of my backend modules. This works fine in version prior 4.2 but now in 4.2.1 i get an error "Your browser is not supported". Is there a way to disable this warning? or circumvent it? -- MfG, Christian Welzel GPG-Key: http://www.camlann.de/key.asc Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15 From masi-no at spam-typo3.org Fri Jul 11 22:06:52 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Fri, 11 Jul 2008 22:06:52 +0200 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: Ernesto Baschny [cron IT] schrieb: > Dmitry Dulepov [typo3] wrote: on 09.07.2008 15:45: >> Hi! >> >> Martin Kutschker wrote: >>>> If you are in Frontend, you can actually use >>>> $GLOBALS['TSFE']->tmpl->rootLine, which is the rootline for the current >>>> web site. >>> >>> I don't think that this distinction is clear from the inline docs. >>> Needless to say that having an isRoot-flag both in the page and the >>> template records doesn't make things easier. * >> >> I absolutely and fully agree. >> >>> * Is it somewhere stated what these flags actually do and why there are >>> two of them? >> >> Not really. I think "Is site root?" in page properties was created to >> avoid searching for root TS template in some functions. > > The flag is used: > > - in "sliding" functions (to stop the sliding), > - typolink uses it to stop looking for a domain record. > - also it is used by the page-tree (in BE) to put the "domain name" > besides the page title in case options.pageTree.showDomainNameWithTitle > is set. > - for TCA methods that can substitute the marker "###SITEROOT###", this > is the flag that is checked for this. > > AFAIK these are the only parts where is_siteroot is used, besides the > mentioned RealURL part. Besides the fact, that a template could include a template with the is-root-flag set, could the flag in the template be obsoleted like the page types advanced and not-in-menu? Here we have the same thing: two options with the same (?) meaning. Masi From andreas at otto-hanika.de Sat Jul 12 17:12:36 2008 From: andreas at otto-hanika.de (Andreas Otto) Date: Sat, 12 Jul 2008 17:12:36 +0200 Subject: [TYPO3-dev] TYPO3xdev moves to Forge Message-ID: Hi, not all developers registered on TYPO3xdev have added their TYPO3.org account name to the list in the TYPO3 wiki [1]. Hurry up, you can still update the list until one day before TYPO3xdev will be moved to Forge. The move of all projects on TYPO3xdev to Forge will happen on 2008-07-26 and 2008-07-27. This means that all SVN write access on TYPO3xdev will be disabled on 2008-07-25 22:00 GMT+1. All SVN commits should have been done by then. An announcement will be made when access to the imported projects on Forge is possible. [1] Cheers, Andreas -- Amazon wishlist: From dosipov at phillyburbs.com Sat Jul 12 19:41:32 2008 From: dosipov at phillyburbs.com (Dan Osipov) Date: Sat, 12 Jul 2008 13:41:32 -0400 Subject: [TYPO3-dev] tables_modify Message-ID: The be_groups table has a field 'tables_modify', which I assume holds the list of tables that BE users have the right to modify. How do I add tables to it through the back end? If the field is empty, the back end users can't make changes through my extension's module... -- Dan Osipov Calkins Media http://danosipov.com/blog/ From masi-no at spam-typo3.org Sat Jul 12 21:00:16 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sat, 12 Jul 2008 21:00:16 +0200 Subject: [TYPO3-dev] How to deal with wrongly named labels? Message-ID: Hi! I just found out that there is the label tx_cssstyledcontent_tableparsing_delimiter_colon should be named tx_cssstyledcontent_tableparsing_delimiter_comma because colon means this character ":" and not that ",". Is there any reasonable way to correct this error just in case we REALLY wanted have a colon as separator (why not?). Masi From dmitry at typo3.org Sat Jul 12 22:59:43 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Sat, 12 Jul 2008 23:59:43 +0300 Subject: [TYPO3-dev] How to deal with wrongly named labels? In-Reply-To: References: Message-ID: Hi! Martin Kutschker wrote: > I just found out that there is the label > tx_cssstyledcontent_tableparsing_delimiter_colon should be named > tx_cssstyledcontent_tableparsing_delimiter_comma because colon means > this character ":" and not that ",". > > Is there any reasonable way to correct this error just in case we REALLY > wanted have a colon as separator (why not?). Unfortunately no. Labels cannot be renamed or removed and values cannot be significally changed. Only new labels and values can be introduced. This is the limitation of translation system. But in this particular case, if this label refers only to ",", I think it will be safe to rename. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From steffen at sk-typo3.de Sun Jul 13 01:13:52 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sun, 13 Jul 2008 01:13:52 +0200 Subject: [TYPO3-dev] How to deal with wrongly named labels? In-Reply-To: References: Message-ID: Martin Kutschker schrieb: > Hi! > > I just found out that there is the label > tx_cssstyledcontent_tableparsing_delimiter_colon should be named > tx_cssstyledcontent_tableparsing_delimiter_comma because colon means > this character ":" and not that ",". > > Is there any reasonable way to correct this error just in case we REALLY > wanted have a colon as separator (why not?). > > Masi Hi, i think in this case it's totally safe as ther will be no translation for it, displayed is the sign "," only vg Steffen From steffen at sk-typo3.de Sun Jul 13 01:15:37 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sun, 13 Jul 2008 01:15:37 +0200 Subject: [TYPO3-dev] tables_modify In-Reply-To: References: Message-ID: Dan Osipov schrieb: > The be_groups table has a field 'tables_modify', which I assume holds > the list of tables that BE users have the right to modify. How do I add > tables to it through the back end? If the field is empty, the back end > users can't make changes through my extension's module... > look to access-list, there you set the tables where modify is allowed vg Steffen From dosipov at phillyburbs.com Sun Jul 13 01:37:24 2008 From: dosipov at phillyburbs.com (Dan Osipov) Date: Sat, 12 Jul 2008 19:37:24 -0400 Subject: [TYPO3-dev] tables_modify In-Reply-To: References: Message-ID: Ah, I had to check "include access lists"... Thanks!! Dan Osipov Calkins Media http://danosipov.com/blog/ Steffen Kamper wrote: > Dan Osipov schrieb: >> The be_groups table has a field 'tables_modify', which I assume holds >> the list of tables that BE users have the right to modify. How do I >> add tables to it through the back end? If the field is empty, the back >> end users can't make changes through my extension's module... >> > > look to access-list, there you set the tables where modify is allowed > > vg Steffen From steffen at sk-typo3.de Sun Jul 13 18:03:35 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sun, 13 Jul 2008 18:03:35 +0200 Subject: [TYPO3-dev] New flexform featur Message-ID: Hi, i would like to hear your opinion. 1) There is no official way to set default values for flexform vars via pageTS. I would like to have this feature. Possible syntax could be TCAdefaults.tt_content.pi_flexform.myVar = xyz 2) There is no way to give user rights to fields like you can do with normal db-fields. I would like to have some fields in flexform protected by uservars. A possible way in flexform XML could be a syntax like 1 So this field would be hidden for "non-admins". May be an option could set the rights to the admin-fields to other user/usergroups by having a setting in TS rights.flexformAdminFields = 1 (don't know best way to name it) vg Steffen From masi-no at spam-typo3.org Sun Jul 13 18:34:31 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sun, 13 Jul 2008 18:34:31 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi, > > i would like to hear your opinion. > 1) There is no official way to set default values for flexform vars via > pageTS. I would like to have this feature. Possible syntax could be > TCAdefaults.tt_content.pi_flexform.myVar = xyz Hm, are now ff-fields unique within the complete ff or not? As us usually have to address them via the sheet name (which is IMHO a bad thing) I fear it has to be TCAdefaults.tt_content.pi_flexform.mySheet.myField = xyz But I'd be delighted if we can declare that field names have to be globally unique and you syntax can live. > 2) There is no way to give user rights to fields like you can do with > normal db-fields. I would like to have some fields in flexform protected > by uservars. A possible way in flexform XML could be a syntax like > 1 > So this field would be hidden for "non-admins". > May be an option could set the rights to the admin-fields to other > user/usergroups by having a setting in TS > rights.flexformAdminFields = 1 (don't know best way to name it) Sadly you cannot do anything with ff via TS :-( I think that in the XML the usual excludeField property should be used. The only difference would be that you have to enable this field by userTS. Masi From steffen at sk-typo3.de Sun Jul 13 19:11:22 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sun, 13 Jul 2008 19:11:22 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi Masi, Martin Kutschker schrieb: > Steffen Kamper schrieb: >> Hi, >> >> i would like to hear your opinion. >> 1) There is no official way to set default values for flexform vars via >> pageTS. I would like to have this feature. Possible syntax could be >> TCAdefaults.tt_content.pi_flexform.myVar = xyz > > Hm, are now ff-fields unique within the complete ff or not? As us > usually have to address them via the sheet name (which is IMHO a bad > thing) I fear it has to be > > TCAdefaults.tt_content.pi_flexform.mySheet.myField = xyz > > But I'd be delighted if we can declare that field names have to be > globally unique and you syntax can live. Yes, uniqueness should be required (i think the most do that automatic) For this uniqueness a check has to be done to generate a warning. And having uniqueness the syntax can be such easy without fiddling to get sheetname. > >> 2) There is no way to give user rights to fields like you can do with >> normal db-fields. I would like to have some fields in flexform protected >> by uservars. A possible way in flexform XML could be a syntax like >> 1 >> So this field would be hidden for "non-admins". >> May be an option could set the rights to the admin-fields to other >> user/usergroups by having a setting in TS >> rights.flexformAdminFields = 1 (don't know best way to name it) > > Sadly you cannot do anything with ff via TS :-( > > I think that in the XML the usual excludeField property should be used. ah yes, this could be used, and it sounds better. > The only difference would be that you have to enable this field by userTS. > I see the problem because normally TCA is asked for that. In case of flexforms that is a problem, as they are only definded with the XML, which is enough while rendering, but difficult for other modules to extract the information. May be a "virual" TCA could be added to let TYPO3 know about fields in flexform vg Steffen > Masi From steffen at sk-typo3.de Sun Jul 13 19:26:08 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sun, 13 Jul 2008 19:26:08 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks Message-ID: Hi, as all know JS-frameworks are not compatible and installing an extension based on a JS-framework can destroy a page. So i vote for a additional flag for extensions that use a framework, and user know that before installing and testing. This flag should mention the used framework vg Steffen From masi-no at spam-typo3.org Sun Jul 13 19:29:59 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sun, 13 Jul 2008 19:29:59 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > >> The only difference would be that you have to enable this field by >> userTS. >> > I see the problem because normally TCA is asked for that. In case of > flexforms that is a problem, as they are only definded with the XML, > which is enough while rendering, but difficult for other modules to > extract the information. May be a "virual" TCA could be added to let > TYPO3 know about fields in flexform I don't understand you. TCEforms parses the ff definition and data to display the form. Now the only thing missing is a pageTS syntax that let's you enable/disable/rename/etc the field like a normal field. The normal way is: TCEforms.. Maybe it can be: TCEforms.
..flexForm. Masi From masi-no at spam-typo3.org Sun Jul 13 19:32:24 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sun, 13 Jul 2008 19:32:24 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi, > > as all know JS-frameworks are not compatible and installing an extension > based on a JS-framework can destroy a page. > > So i vote for a additional flag for extensions that use a framework, and > user know that before installing and testing. This flag should mention > the used framework If it's a flag it cannot carry additional data. The author could add text data or some kind of framework key. But then we would need to define the know frameworks. As the version might be of interest I would require that every key carries a version number. Masi From dmitry at typo3.org Sun Jul 13 19:38:53 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Sun, 13 Jul 2008 20:38:53 +0300 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi! Martin Kutschker wrote: > Steffen Kamper schrieb: >> i would like to hear your opinion. >> 1) There is no official way to set default values for flexform vars via >> pageTS. I would like to have this feature. Possible syntax could be >> TCAdefaults.tt_content.pi_flexform.myVar = xyz Yes, this is a missing feature that would be great to have. > Hm, are now ff-fields unique within the complete ff or not? As us > usually have to address them via the sheet name (which is IMHO a bad > thing) I fear it has to be > > TCAdefaults.tt_content.pi_flexform.mySheet.myField = xyz Also sections :) TCAdefaults.tt_content.pi_flexform.mySheet.mySection.myContainer.myAnotherContainer.myField = 1 What about language? That should be also taken into account,s o the above may become: TCAdefaults.tt_content.pi_flexform.mySheet.mySection.myContainer.myAnotherContainer.myField.lDE = 1 > Sadly you cannot do anything with ff via TS :-( > > I think that in the XML the usual excludeField property should be used. > The only difference would be that you have to enable this field by userTS. There is an idea around to modify stdWrap's getData to enable {field:pi_flexform:field_myfield}. But this idea is not implemented due to problems with sheets sections and containers in flexforms. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From dmitry at typo3.org Sun Jul 13 19:41:34 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Sun, 13 Jul 2008 20:41:34 +0300 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > as all know JS-frameworks are not compatible and installing an extension > based on a JS-framework can destroy a page. > > So i vote for a additional flag for extensions that use a framework, and > user know that before installing and testing. This flag should mention > the used framework What if extension can use several frameworks? I plan to modify ratings to enable mootools into addition to prototype. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From steffen at sk-typo3.de Sun Jul 13 19:53:03 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sun, 13 Jul 2008 19:53:03 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Martin Kutschker schrieb: > Steffen Kamper schrieb: >> Hi, >> >> as all know JS-frameworks are not compatible and installing an extension >> based on a JS-framework can destroy a page. >> >> So i vote for a additional flag for extensions that use a framework, and >> user know that before installing and testing. This flag should mention >> the used framework > > If it's a flag it cannot carry additional data. The author could add > text data or some kind of framework key. But then we would need to > define the know frameworks. As the version might be of interest I would > require that every key carries a version number. > > Masi difficult - if it's a textfield the author could add any information about If you want to bind it to version we need something like the depending/suggesting-section vg Steffen From steffen at sk-typo3.de Sun Jul 13 19:55:52 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sun, 13 Jul 2008 19:55:52 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Hi, Dmitry Dulepov [typo3] schrieb: > Hi! > > Steffen Kamper wrote: >> as all know JS-frameworks are not compatible and installing an >> extension based on a JS-framework can destroy a page. >> >> So i vote for a additional flag for extensions that use a framework, >> and user know that before installing and testing. This flag should >> mention the used framework > > What if extension can use several frameworks? I plan to modify ratings > to enable mootools into addition to prototype. > yes, that should be possible too if using a textfield frameworks = prototype, mootools It could be a section like the depending/suggesting-section frameworks = array( 'mootools' => '1.8', 'prototype => '', ) vg Steffen From steffen at sk-typo3.de Sun Jul 13 19:57:10 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sun, 13 Jul 2008 19:57:10 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi, Martin Kutschker schrieb: > Steffen Kamper schrieb: >>> The only difference would be that you have to enable this field by >>> userTS. >>> >> I see the problem because normally TCA is asked for that. In case of >> flexforms that is a problem, as they are only definded with the XML, >> which is enough while rendering, but difficult for other modules to >> extract the information. May be a "virual" TCA could be added to let >> TYPO3 know about fields in flexform > > I don't understand you. TCEforms parses the ff definition and data to > display the form. Now the only thing missing is a pageTS syntax that > let's you enable/disable/rename/etc the field like a normal field. > > The normal way is: > > TCEforms.
. > > Maybe it can be: > > TCEforms.
..flexForm. > > Masi i was thinking of the accesslist in BEuser/usergroup where TCA is parsed to build the accesslists vg Steffen From steffen at sk-typo3.de Sun Jul 13 20:05:38 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sun, 13 Jul 2008 20:05:38 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi Dmitry, Dmitry Dulepov [typo3] schrieb: > Hi! > > Martin Kutschker wrote: >> Steffen Kamper schrieb: >>> i would like to hear your opinion. >>> 1) There is no official way to set default values for flexform vars via >>> pageTS. I would like to have this feature. Possible syntax could be >>> TCAdefaults.tt_content.pi_flexform.myVar = xyz > > Yes, this is a missing feature that would be great to have. > >> Hm, are now ff-fields unique within the complete ff or not? As us >> usually have to address them via the sheet name (which is IMHO a bad >> thing) I fear it has to be >> >> TCAdefaults.tt_content.pi_flexform.mySheet.myField = xyz > > Also sections :) > TCAdefaults.tt_content.pi_flexform.mySheet.mySection.myContainer.myAnotherContainer.myField > = 1 > > What about language? That should be also taken into account,s o the > above may become: > TCAdefaults.tt_content.pi_flexform.mySheet.mySection.myContainer.myAnotherContainer.myField.lDE > = 1 > :o this sounds very complex, and i fear that only extension author is able to set these default right :) But you're right that all hve to be taken in account, but it would be helpful to find a more userfriendly way. btw - the language handling in flexform is quite a mystery for me. Mostly in flexforms lang-handling is disabled to supress multiple flexforms. Should lang handling used in conditions as usual? [globalVar = GP:L = 2]...[end] >> Sadly you cannot do anything with ff via TS :-( >> >> I think that in the XML the usual excludeField property should be used. >> The only difference would be that you have to enable this field by >> userTS. > > There is an idea around to modify stdWrap's getData to enable > {field:pi_flexform:field_myfield}. But this idea is not implemented due > to problems with sheets sections and containers in flexforms. > this can be really expensive because flexform-xml has to be read into array for each. vg Steffen From dmitry at typo3.org Sun Jul 13 20:14:59 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Sun, 13 Jul 2008 21:14:59 +0300 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > btw - the language handling in flexform is quite a mystery for me. > Mostly in flexforms lang-handling is disabled to supress multiple > flexforms. It is described in FE localzation guide but I must admit I reread that doc several times before I could understood all details and make a whole picture. Definitely not a morning reading :D > Should lang handling used in conditions as usual? > [globalVar = GP:L = 2]...[end] Hmmmm. Where? > this can be really expensive because flexform-xml has to be read into > array for each. Yes :( But there is a demand for it. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From masi-no at spam-typo3.org Sun Jul 13 20:18:37 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sun, 13 Jul 2008 20:18:37 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi, > > Martin Kutschker schrieb: >> Steffen Kamper schrieb: >>>> The only difference would be that you have to enable this field by >>>> userTS. >>>> >>> I see the problem because normally TCA is asked for that. In case of >>> flexforms that is a problem, as they are only definded with the XML, >>> which is enough while rendering, but difficult for other modules to >>> extract the information. May be a "virual" TCA could be added to let >>> TYPO3 know about fields in flexform >> >> I don't understand you. TCEforms parses the ff definition and data to >> display the form. Now the only thing missing is a pageTS syntax that >> let's you enable/disable/rename/etc the field like a normal field. >> >> The normal way is: >> >> TCEforms.
. >> >> Maybe it can be: >> >> TCEforms.
..flexForm. >> >> Masi > > i was thinking of the accesslist in BEuser/usergroup where TCA is parsed > to build the accesslists Too complicated to implement as you pointed out and the list of fields to configure in the form would be even longer. It's dreadful as it is. Masi From masi-no at spam-typo3.org Sun Jul 13 20:24:47 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sun, 13 Jul 2008 20:24:47 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Martin Kutschker wrote: >> Steffen Kamper schrieb: >>> i would like to hear your opinion. >>> 1) There is no official way to set default values for flexform vars via >>> pageTS. I would like to have this feature. Possible syntax could be >>> TCAdefaults.tt_content.pi_flexform.myVar = xyz > > Yes, this is a missing feature that would be great to have. > >> Hm, are now ff-fields unique within the complete ff or not? As us >> usually have to address them via the sheet name (which is IMHO a bad >> thing) I fear it has to be >> >> TCAdefaults.tt_content.pi_flexform.mySheet.myField = xyz > > Also sections :) > TCAdefaults.tt_content.pi_flexform.mySheet.mySection.myContainer.myAnotherContainer.myField > = 1 Sections? Oops, where does that come from? All the little pi flexforms have none, or do they? The "standard" ff and their API in pibase don't talk about them. Anyway Steffen ad I want that a fieldname is unique within the full flexform so sections and containers shouldn't be addressed. But obviously I haven't used the whole power of flexforms yet. > What about language? That should be also taken into account,s o the > above may become: > TCAdefaults.tt_content.pi_flexform.mySheet.mySection.myContainer.myAnotherContainer.myField.lDE > = 1 Nice to have, but you don't have this for normal fields, so no strict requirement. Masi From steffen at sk-typo3.de Sun Jul 13 21:23:26 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sun, 13 Jul 2008 21:23:26 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Martin Kutschker schrieb: > Dmitry Dulepov [typo3] schrieb: >> Hi! >> >> Martin Kutschker wrote: >>> Steffen Kamper schrieb: >>>> i would like to hear your opinion. >>>> 1) There is no official way to set default values for flexform vars via >>>> pageTS. I would like to have this feature. Possible syntax could be >>>> TCAdefaults.tt_content.pi_flexform.myVar = xyz >> Yes, this is a missing feature that would be great to have. >> >>> Hm, are now ff-fields unique within the complete ff or not? As us >>> usually have to address them via the sheet name (which is IMHO a bad >>> thing) I fear it has to be >>> >>> TCAdefaults.tt_content.pi_flexform.mySheet.myField = xyz >> Also sections :) >> TCAdefaults.tt_content.pi_flexform.mySheet.mySection.myContainer.myAnotherContainer.myField >> = 1 > > Sections? Oops, where does that come from? All the little pi flexforms > have none, or do they? The "standard" ff and their API in pibase don't > talk about them. > > Anyway Steffen ad I want that a fieldname is unique within the full > flexform so sections and containers shouldn't be addressed. > > But obviously I haven't used the whole power of flexforms yet. > >> What about language? That should be also taken into account,s o the >> above may become: >> TCAdefaults.tt_content.pi_flexform.mySheet.mySection.myContainer.myAnotherContainer.myField.lDE >> = 1 > > Nice to have, but you don't have this for normal fields, so no strict > requirement. > > Masi hehe - that was a question i had sometimes before. This section-feature is still an undocumented feature that Kasper described in a video and Patrick used in pbsurvay. I really would like to have that documented. Havin sections is equivalent to arrays, so it should be no problem to adress them with array key. This has no influence to the mentioned uniquness of field names in flexforms. vg Steffen From tapio.markula at xetpoint.fi Sun Jul 13 21:24:06 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Sun, 13 Jul 2008 22:24:06 +0300 Subject: [TYPO3-dev] Set and read cookies Message-ID: Hi I would need in an extension JS for cookies http://www.willmaster.com/library/javascript/set_read_cookies.php the problem is that I would nee read cookie for *two-level* array cookie but examples seems to handle just one level simple cookies. How to create ReadCookie for two-level cookie, for example for this function saveLevel2(value) { var name = "menuCookie[level2Cookie]"; var date = new Date(); date.setTime(date.getTime()+(24*60*60*1000)); var expires = "; expires="+date.toGMTString(); document.cookie = name+"="+value+expires+"; path=/"; } From dmitry at typo3.org Sun Jul 13 21:26:50 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Sun, 13 Jul 2008 22:26:50 +0300 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi! Martin Kutschker wrote: > Sections? Oops, where does that come from? All the little pi flexforms > have none, or do they? The "standard" ff and their API in pibase don't > talk about them. Sections is a standard feature of flexforms, they implement an array of elements inside the flexform. You can sections in plugin configuration, for example (similar to IRRE but without intermediate records). > Anyway Steffen ad I want that a fieldname is unique within the full > flexform so sections and containers shouldn't be addressed. Not possible I afraid. You can have fields with the same name inside different containers in the flexform: [CO] ROOT [SH] Sheet 1 [EL] field_title = [SC] field_repeating [CO] field_sub [EL] field_title [CO] field_sub [EL] field_title [SH] Sheet 2 [EL] field_title [SC] field_repeating [CO] field_sub [EL] field_title [CO] field_sub [EL] field_title [CO] field_sub [EL] field_title This is fully legal for flexforms. >> What about language? That should be also taken into account,s o the >> above may become: >> TCAdefaults.tt_content.pi_flexform.mySheet.mySection.myContainer.myAnotherContainer.myField.lDE >> = 1 > > Nice to have, but you don't have this for normal fields, so no strict > requirement. You may want to define different values to field_title for different languages ;) -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From dmitry at typo3.org Sun Jul 13 21:27:54 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Sun, 13 Jul 2008 22:27:54 +0300 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > This has no influence to the mentioned uniquness of field names in > flexforms. Field names are unique only on the same level. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From masi-no at spam-typo3.org Sun Jul 13 21:35:00 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sun, 13 Jul 2008 21:35:00 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Steffen Kamper wrote: >> This has no influence to the mentioned uniquness of field names in >> flexforms. > > Field names are unique only on the same level. This has probably some benefits, but it has at least one major disadvantage. You can never rearrange a flex form. Once a field is on one sheet it has to stay there. Tying the UI to the storage wasn't so fortunate. Masi From masi-no at spam-typo3.org Sun Jul 13 21:38:06 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sun, 13 Jul 2008 21:38:06 +0200 Subject: [TYPO3-dev] Set and read cookies In-Reply-To: References: Message-ID: Tapio Markula schrieb: > Hi > > I would need in an extension JS for cookies > > http://www.willmaster.com/library/javascript/set_read_cookies.php > > the problem is that I would nee read cookie for *two-level* array cookie > but examples seems to handle just one level simple cookies. > > How to create ReadCookie for two-level cookie, for example for this > > > function saveLevel2(value) { > var name = "menuCookie[level2Cookie]"; > var date = new Date(); > date.setTime(date.getTime()+(24*60*60*1000)); > var expires = "; expires="+date.toGMTString(); > document.cookie = name+"="+value+expires+"; path=/"; > } > I don't get what your problem is. Cookies have just names, there is no such things like arrays in them. I'm not aware if there is some restriction so that names may not contain square brackets. So you might name them this way, but you gain nothing. Masi From dmitry at typo3.org Sun Jul 13 21:39:25 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Sun, 13 Jul 2008 22:39:25 +0300 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Martin Kutschker wrote: > This has probably some benefits, but it has at least one major > disadvantage. You can never rearrange a flex form. Once a field is on > one sheet it has to stay there. Tying the UI to the storage wasn't so > fortunate. True. It already causes problems, for example, in comments extension where I cannot rearrange options on tabs without breaking compatibility. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From steffen at sk-typo3.de Sun Jul 13 23:14:25 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Sun, 13 Jul 2008 23:14:25 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Martin Kutschker wrote: >> Sections? Oops, where does that come from? All the little pi flexforms >> have none, or do they? The "standard" ff and their API in pibase don't >> talk about them. > > Sections is a standard feature of flexforms, they implement an array of > elements inside the flexform. You can sections in plugin configuration, > for example (similar to IRRE but without intermediate records). > >> Anyway Steffen ad I want that a fieldname is unique within the full >> flexform so sections and containers shouldn't be addressed. > > Not possible I afraid. You can have fields with the same name inside > different containers in the flexform: > > [CO] ROOT > [SH] Sheet 1 > [EL] field_title = > [SC] field_repeating > [CO] field_sub > [EL] field_title > [CO] field_sub > [EL] field_title > [SH] Sheet 2 > [EL] field_title > [SC] field_repeating > [CO] field_sub > [EL] field_title > [CO] field_sub > [EL] field_title > [CO] field_sub > [EL] field_title > > This is fully legal for flexforms. > >>> What about language? That should be also taken into account,s o the >>> above may become: >>> TCAdefaults.tt_content.pi_flexform.mySheet.mySection.myContainer.myAnotherContainer.myField.lDE >>> >>> = 1 >> >> Nice to have, but you don't have this for normal fields, so no strict >> requirement. > > You may want to define different values to field_title for different > languages ;) > if it's a section it's internally known, so field can be adressed with something like ...pi_flexform.field_title.1 It's only important to have this unique on first level, do you agree? vg Steffen From michiel at netcreators.com Mon Jul 14 00:04:16 2008 From: michiel at netcreators.com (Michiel Roos [netcreators]) Date: Mon, 14 Jul 2008 00:04:16 +0200 Subject: [TYPO3-dev] Set and read cookies In-Reply-To: References: Message-ID: Tapio Markula schreef: > Hi > > I would need in an extension JS for cookies > > http://www.willmaster.com/library/javascript/set_read_cookies.php > > the problem is that I would nee read cookie for *two-level* array cookie > but examples seems to handle just one level simple cookies. > > How to create ReadCookie for two-level cookie, for example for this Try using the JavaScript equivalent of serialize/unserialize http://codingforums.com/showthread.php?t=60276 Kind regards, Michiel -- Netcreators BV :: creation and innovation www.netcreators.com Interesse in werken bij Netcreators? http://www.netcreators.com/bedrijf/vacatures/ From michiel at netcreators.com Mon Jul 14 00:06:02 2008 From: michiel at netcreators.com (Michiel Roos [netcreators]) Date: Mon, 14 Jul 2008 00:06:02 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Steffen Kamper schreef: > It could be a section like the depending/suggesting-section > frameworks = array( > 'mootools' => '1.8', > 'prototype => '', > ) > +1 -- Netcreators BV :: creation and innovation www.netcreators.com Interesse in werken bij Netcreators? http://www.netcreators.com/bedrijf/vacatures/ From dmitry at typo3.org Mon Jul 14 07:49:12 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Mon, 14 Jul 2008 08:49:12 +0300 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > if it's a section it's internally known, so field can be adressed with > something like > ...pi_flexform.field_title.1 > > It's only important to have this unique on first level, do you agree? Let's put it this way: it is unuque on its level if it is not a direct subelement of section. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From tapio.markula at xetpoint.fi Mon Jul 14 08:46:18 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Mon, 14 Jul 2008 09:46:18 +0300 Subject: [TYPO3-dev] Set and read cookies In-Reply-To: References: Message-ID: Martin Kutschker kirjoitti: > Tapio Markula schrieb: >> Hi >> >> I would need in an extension JS for cookies >> >> http://www.willmaster.com/library/javascript/set_read_cookies.php >> >> the problem is that I would nee read cookie for *two-level* array cookie >> but examples seems to handle just one level simple cookies. >> >> How to create ReadCookie for two-level cookie, for example for this >> >> >> function saveLevel2(value) { >> var name = "menuCookie[level2Cookie]"; >> var date = new Date(); >> date.setTime(date.getTime()+(24*60*60*1000)); >> var expires = "; expires="+date.toGMTString(); >> document.cookie = name+"="+value+expires+"; path=/"; >> } >> > > I don't get what your problem is. Cookies have just names, there is no > such things like arrays in them they support simple cookies - just name *or* array cookies like name[something] (more levels are not supported) array cookie is real array. if you debug array cookie $_COOKIE['menuCookie'] you get as result array and not a string From tapio.markula at xetpoint.fi Mon Jul 14 08:59:26 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Mon, 14 Jul 2008 09:59:26 +0300 Subject: [TYPO3-dev] Set and read cookies In-Reply-To: References: Message-ID: Michiel Roos [netcreators] kirjoitti: > Tapio Markula schreef: >> Hi >> >> I would need in an extension JS for cookies >> >> http://www.willmaster.com/library/javascript/set_read_cookies.php >> >> the problem is that I would nee read cookie for *two-level* array cookie >> but examples seems to handle just one level simple cookies. >> >> How to create ReadCookie for two-level cookie, for example for this > > Try using the JavaScript equivalent of serialize/unserialize > > > http://codingforums.com/showthread.php?t=60276 Sorry, I didn't understand your point of view. I can't serialize/unserialize a variable, which I don't have get. Do you mean that I should use serialized content for cookies instead of array cookies? From steffen at sk-typo3.de Mon Jul 14 10:51:52 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Mon, 14 Jul 2008 10:51:52 +0200 Subject: [TYPO3-dev] Set and read cookies In-Reply-To: References: Message-ID: Tapio Markula schrieb: > Michiel Roos [netcreators] kirjoitti: >> Tapio Markula schreef: >>> Hi >>> >>> I would need in an extension JS for cookies >>> >>> http://www.willmaster.com/library/javascript/set_read_cookies.php >>> >>> the problem is that I would nee read cookie for *two-level* array cookie >>> but examples seems to handle just one level simple cookies. >>> >>> How to create ReadCookie for two-level cookie, for example for this >> >> Try using the JavaScript equivalent of serialize/unserialize >> >> >> http://codingforums.com/showthread.php?t=60276 > > Sorry, I didn't understand your point of view. > I can't serialize/unserialize a variable, which I don't have get. > Do you mean that I should use serialized content for cookies instead of > array cookies? Hi, look here, shoud help you http://www.quirksmode.org/js/cookies.html JS isn't the same like php vg Steffen From ernst at cron-it.de Mon Jul 14 12:05:57 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Mon, 14 Jul 2008 12:05:57 +0200 Subject: [TYPO3-dev] getRootline function not stopping In-Reply-To: References: Message-ID: Martin Kutschker wrote: on 11.07.2008 22:06: > Ernesto Baschny [cron IT] schrieb: >> Dmitry Dulepov [typo3] wrote: on 09.07.2008 15:45: >>> Hi! >>> >>> Martin Kutschker wrote: >>>>> If you are in Frontend, you can actually use >>>>> $GLOBALS['TSFE']->tmpl->rootLine, which is the rootline for the current >>>>> web site. >>>> I don't think that this distinction is clear from the inline docs. >>>> Needless to say that having an isRoot-flag both in the page and the >>>> template records doesn't make things easier. * >>> I absolutely and fully agree. >>> >>>> * Is it somewhere stated what these flags actually do and why there are >>>> two of them? >>> Not really. I think "Is site root?" in page properties was created to >>> avoid searching for root TS template in some functions. >> The flag is used: >> >> - in "sliding" functions (to stop the sliding), >> - typolink uses it to stop looking for a domain record. >> - also it is used by the page-tree (in BE) to put the "domain name" >> besides the page title in case options.pageTree.showDomainNameWithTitle >> is set. >> - for TCA methods that can substitute the marker "###SITEROOT###", this >> is the flag that is checked for this. >> >> AFAIK these are the only parts where is_siteroot is used, besides the >> mentioned RealURL part. > > Besides the fact, that a template could include a template with the > is-root-flag set, could the flag in the template be obsoleted like the > page types advanced and not-in-menu? Here we have the same thing: two > options with the same (?) meaning. Yes, that is indeed a bit annoying, but probably have some technical reasons and are difficult to change. Setting that in a TypoScript template has the reason that the "levels" defined in that template are then always calculated correctly from that starting point (for menus, etc). Usually all BE-stuff uses the page is_root flag, while the FE uses the root sys_template flag (because TS will be parsed anyway) to determine the "current site root". RealURL is an exception, because it has to get the root before the TypoScript is parsed. Cheers, Ernesto From tapio.markula at xetpoint.fi Mon Jul 14 12:12:08 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Mon, 14 Jul 2008 13:12:08 +0300 Subject: [TYPO3-dev] Set and read cookies In-Reply-To: References: Message-ID: Steffen Kamper kirjoitti: > Tapio Markula schrieb: >> Michiel Roos [netcreators] kirjoitti: >>> Tapio Markula schreef: >>>> Hi >>>> >>>> I would need in an extension JS for cookies >>>> >>>> http://www.willmaster.com/library/javascript/set_read_cookies.php >>>> >>>> the problem is that I would nee read cookie for *two-level* array >>>> cookie >>>> but examples seems to handle just one level simple cookies. >>>> >>>> How to create ReadCookie for two-level cookie, for example for this >>> >>> Try using the JavaScript equivalent of serialize/unserialize >>> >>> >>> http://codingforums.com/showthread.php?t=60276 >> >> Sorry, I didn't understand your point of view. >> I can't serialize/unserialize a variable, which I don't have get. >> Do you mean that I should use serialized content for cookies instead >> of array cookies? > > Hi, > > look here, shoud help you > http://www.quirksmode.org/js/cookies.html > > JS isn't the same like php I know. To be sure of functionality I put simple names for cookies, which I must read using a JavaScript function. From ernst at cron-it.de Mon Jul 14 12:16:28 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Mon, 14 Jul 2008 12:16:28 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Steffen Kamper wrote: on 13.07.2008 19:26: > as all know JS-frameworks are not compatible and installing an extension > based on a JS-framework can destroy a page. > > So i vote for a additional flag for extensions that use a framework, and > user know that before installing and testing. This flag should mention > the used framework Can't the "frameworks" be provided as extensions and then we could use the regular "depends" conditions in the ext_emconf.php? For example there is t3mootools, extjs, etc. There is also the "jsmanager" project from the ECT. Do you know the status of that, is it "usable", is the approach ok? Cheers, Ernesto From ernst at cron-it.de Mon Jul 14 12:44:42 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Mon, 14 Jul 2008 12:44:42 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Steffen Kamper wrote: on 13.07.2008 18:03: > i would like to hear your opinion. > 1) There is no official way to set default values for flexform vars via > pageTS. I would like to have this feature. Possible syntax could be > TCAdefaults.tt_content.pi_flexform.myVar = xyz The content of the "pi_flexform" information depends on what the plugin that reads them wants to do with them. So it depends on the contents of the "list_type" field, the "flexform_ds.xml" file, and also if the plugin really makes use of the pibase flexform functions to load those stuff. So if you have 2 different plugins in one tree, "pi_flexform.sheetName.setting" might conflict. Maybe we need to include pi_name in between: TCAdefaults.tt_content.pi_flexform.user_plugin_pi1.mySheet.myVar = xyz where user_plugin_pi is the piKey defined in ext_tables.php for that flexform. Cheers, Ernesto From typo3RE.MO.VE. at RE.MO.VE.prolabium.com Mon Jul 14 12:58:36 2008 From: typo3RE.MO.VE. at RE.MO.VE.prolabium.com (Krystian Szymukowicz) Date: Mon, 14 Jul 2008 12:58:36 +0200 Subject: [TYPO3-dev] IMGTEXT and css_styled_content Message-ID: hi I am trying to make tt_news to use css_styled_content for formatting images and text in SINGLE VIEW. So far I manage to create IMGTEXT. $this->cObj = t3lib_div::makeInstance('tslib_cObj'); $TS['conf'] = 'IMGTEXT'; $TS['conf.']['text.']['10'] = 'TEXT'; $TS['conf.']['text.']['10.']['value'] = $row['bodytext']; $TS['conf.']['textPos'] = 17; $TS['conf.']['imgList'] = $imgList; $content = $this->cObj->cObjGetSingle($TS['conf'],$TS['conf.']); It works but it's rendering images with 'table' and not with 'div' or 'dl'. Using $TS['conf.']['renderMethod'] = 'div' have no impact either. Then I was trying to use: $this->cObj = t3lib_div::makeInstance('tslib_cObj'); $TS['conf'] = 'USER'; $TS['conf.']['userFunc'] = 'tx_cssstyledcontent_pi1->render_textpic'; $TS['conf.']['renderMethod'] = 'div'; $TS['conf.']['text.']['10'] = 'TEXT'; $TS['conf.']['text.']['10.']['value'] = $row['bodytext']; $TS['conf.']['textPos'] = 17; $TS['conf.']['imgList'] = $imgList; $content = $this->cObj->cObjGetSingle($TS['conf'],$TS['conf.']); but so far with no luck. No content is rendered at all. I googled much but have not found an answer to seems like a simple question: How to put images and text together using css_styled_content (div,dl) ? Thanks for any hints. -- grtz Krystian Szymukowicz From typo3RE.MO.VE. at RE.MO.VE.prolabium.com Mon Jul 14 13:28:11 2008 From: typo3RE.MO.VE. at RE.MO.VE.prolabium.com (Krystian Szymukowicz) Date: Mon, 14 Jul 2008 13:28:11 +0200 Subject: [TYPO3-dev] IMGTEXT and css_styled_content In-Reply-To: References: Message-ID: Krystian Szymukowicz wrote: > > hi > > I am trying to make tt_news to use css_styled_content for formatting > images and text in SINGLE VIEW. > > > So far I manage to create IMGTEXT. > > $this->cObj = t3lib_div::makeInstance('tslib_cObj'); > > $TS['conf'] = 'IMGTEXT'; > $TS['conf.']['text.']['10'] = 'TEXT'; > $TS['conf.']['text.']['10.']['value'] = $row['bodytext']; > $TS['conf.']['textPos'] = 17; > $TS['conf.']['imgList'] = $imgList; > > $content = $this->cObj->cObjGetSingle($TS['conf'],$TS['conf.']); > > It works but it's rendering images with 'table' and not with 'div' or 'dl'. > Using $TS['conf.']['renderMethod'] = 'div' have no impact either. > > > > > Then I was trying to use: > > $this->cObj = t3lib_div::makeInstance('tslib_cObj'); > > $TS['conf'] = 'USER'; > $TS['conf.']['userFunc'] = 'tx_cssstyledcontent_pi1->render_textpic'; > $TS['conf.']['renderMethod'] = 'div'; > $TS['conf.']['text.']['10'] = 'TEXT'; > $TS['conf.']['text.']['10.']['value'] = $row['bodytext']; > $TS['conf.']['textPos'] = 17; > $TS['conf.']['imgList'] = $imgList; > > $content = $this->cObj->cObjGetSingle($TS['conf'],$TS['conf.']); > > but so far with no luck. No content is rendered at all. > > > > I googled much but have not found an answer to seems like a simple > question: > How to put images and text together using css_styled_content (div,dl) ? > > > Thanks for any hints. > > Solved. I get it with: $TS['conf'] = ' < tt_content.textpic.20'; $TS['conf.']['text.']['20'] = 'TEXT '; $TS['conf.']['text.']['20.']['value'] = $row['bodytext']; $TS['conf.']['imgList'] = $imgList; $TS['conf.']['imgList.'] = ' >'; $TS['conf.']['layout.']['key'] = 17; $TS['conf.']['layout.']['key.'] = ' >'; -- grtz Krystian Szymukowicz From steffen at sk-typo3.de Mon Jul 14 13:46:20 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Mon, 14 Jul 2008 13:46:20 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Ernesto Baschny [cron IT] schrieb: > Steffen Kamper wrote: on 13.07.2008 19:26: > >> as all know JS-frameworks are not compatible and installing an >> extension based on a JS-framework can destroy a page. >> >> So i vote for a additional flag for extensions that use a framework, >> and user know that before installing and testing. This flag should >> mention the used framework > > Can't the "frameworks" be provided as extensions and then we could use > the regular "depends" conditions in the ext_emconf.php? > > For example there is t3mootools, extjs, etc. > > There is also the "jsmanager" project from the ECT. Do you know the > status of that, is it "usable", is the approach ok? > > Cheers, > Ernesto Hi Ernesto, i like to use them (eg for mootools this should go this way), but eg for prototype it's not needed as it's shipped with core. jsmanager isn't usable as it crashed on my 4.3dev (i think 4.2 also). I didn't heard any news from Joerg a long time. The approach is really a good one and should be pushed, i also think that somethink like that should be provided from core for preventing double-includes etc vg Steffen From dmitry at typo3.org Mon Jul 14 15:04:09 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Mon, 14 Jul 2008 16:04:09 +0300 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Hi! Ernesto Baschny [cron IT] wrote: > Can't the "frameworks" be provided as extensions and then we could use > the regular "depends" conditions in the ext_emconf.php? > > For example there is t3mootools, extjs, etc. A little problem with it is versioning of the frameworks. Some exts may depend on the specific version of the framework or require newer framework than exists in ext. I bumped into this with extjs: I want to use the extjs ext in my private extension but extjs ext did not have proper version in it. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From steffen at sk-typo3.de Mon Jul 14 15:35:25 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Mon, 14 Jul 2008 15:35:25 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Ernesto Baschny [cron IT] wrote: >> Can't the "frameworks" be provided as extensions and then we could use >> the regular "depends" conditions in the ext_emconf.php? >> >> For example there is t3mootools, extjs, etc. > > A little problem with it is versioning of the frameworks. Some exts may > depend on the specific version of the framework or require newer > framework than exists in ext. I bumped into this with extjs: I want to > use the extjs ext in my private extension but extjs ext did not have > proper version in it. > give Joerg a mail - i think he will update the ext very soon. vg Steffen From tapio.markula at xetpoint.fi Mon Jul 14 17:24:15 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Mon, 14 Jul 2008 18:24:15 +0300 Subject: [TYPO3-dev] Path problem with $TBE_STYLES['htmlTemplates']['templates/db_layout.html'] Message-ID: Hi Setting $TBE_STYLES['htmlTemplates']['templates/db_layout.html'] in a skin plugin has a path problem. Path is normally $templatedir='../'.$temp_eP.'htmlTemplates/'; where $temp_eP = t3lib_extMgm::extRelPath('skin_grey_2'); BUT this doesn't work if Typo3 has been installed into a subdirectory A hack might solve that $templatedir='../'.$temp_eP.'htmlTemplates/'; if(!is_dir(PATH_site .substr($templatedir,6))) // if installed into subdirectory must add '../' $templatedir='../../'.$temp_eP.'htmlTemplates/'; if(is_dir(PATH_site .substr($templatedir,6))) { // directory might not be found if Typo3 has been installed into a subdirectory $TBE_STYLES['htmlTemplates']['templates/db_layout.html']=$templatedir.'db_layout.html'; But is there a better solution From peter.guhl at win-lux.ch Mon Jul 14 17:25:29 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Mon, 14 Jul 2008 17:25:29 +0200 Subject: [TYPO3-dev] Spamfilter-Service Message-ID: Hello all Even though Akismet was faster than I I still decided to continue with spfgblib ;-) Now I have built a simple page which should be usable as an API for automated Spam-checking. Here it is: http://www.chabis.ch/helpers/api/index.php For trying it out you need a valid userid. Ther is "tester" which can only check if a text is known SPAM. If you want to get a higher level which can also train the filter please write your application and tell me what you want to do (i.E. integrate it into an extension). Then I may give you a personal ID. If you want to become part of the project you may also go to http://www.sourceforge.net/projects/spfgblib Regards Peter From mail-spam at ringerge.org Mon Jul 14 19:54:00 2008 From: mail-spam at ringerge.org (Georg Ringer) Date: Mon, 14 Jul 2008 19:54:00 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Peter Guhl wrote: > If you want to become part of the project you may also go to > http://www.sourceforge.net/projects/spfgblib And how is this related to TYPO3? georg From peter.guhl at win-lux.ch Mon Jul 14 20:45:39 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Mon, 14 Jul 2008 20:45:39 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Georg Ringer schrieb: > Peter Guhl wrote: > >> If you want to become part of the project you may also go to >> http://www.sourceforge.net/projects/spfgblib >> > > And how is this related to TYPO3? > > georg > OK... probably it's related when I (or somebody else, but I know that the guy having the idea normally is the one having to do the job) started to program a typo3-module which is using it. But you'r right - it's a bit early. Regards Peter -- mit freundlichen Gr?ssen Peter Guhl Win-Lux GmbH Obere Sch?ntalstrasse 22 CH - 8406 Winterthur Telefon: +41 (0)81 330 51 51 Mobil +41 (0)76 437 03 09 Fax: +41 (0)81 332 44 58 Mail: peter.guhl at win-lux.ch Skype: p_guhl Web: http://www.win-lux.ch ******************* Vertraulichkeitserkl?rung *********************** Diese Mitteilung resp. deren Beilagen k?nnen vertrauliche und/oder pers?nliche Informationen enthalten, die einzig f?r den adressierten Empf?nger bestimmt sind. Jegliche Kenntnisnahme oder Weiterleitung durch oder an Dritte ist untersagt. Wenn Sie nicht der adressierte Empf?nger sind, nehmen Sie bitte Kontakt mit dem Absender der Nachricht auf und l?schen Sie alle Kopien. Vielen Dank. From peter.guhl at win-lux.ch Mon Jul 14 21:39:51 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Mon, 14 Jul 2008 21:39:51 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi Georg Ringer schrieb: > And how is this related to TYPO3? > Yeah, all I got from 2 mailing lists is a guy complaining. Well, after all, my spam problem is solved and I know quite many things to spend my nights with. Regards Peter From mail-spam at ringerge.org Mon Jul 14 21:50:32 2008 From: mail-spam at ringerge.org (Georg Ringer) Date: Mon, 14 Jul 2008 21:50:32 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi, > Yeah, all I got from 2 mailing lists is a guy complaining. Well, after > all, my spam problem is solved and I know quite many things to spend my > nights with. I don't complain, I just ask! This is a TYPO3 mailinglist, so there should be a connection to TYPO3. If not, this is maybe better in typo3.offtopic! Probably this is also why you don't get more response here. Georg PS: I won't ask my magento questions here because response won't be big ^^ From dmitry at typo3.org Mon Jul 14 21:58:41 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Mon, 14 Jul 2008 22:58:41 +0300 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi! Peter Guhl wrote: > Yeah, all I got from 2 mailing lists is a guy complaining. Well, after > all, my spam problem is solved and I know quite many things to spend my > nights with. I'd love to see an external additional spam filter for comments extension. Can it be done with your library? In general I need to call something that will return certain amount of points. It is approximately like SpamAssassin. Comments extension either publishes comment or sends it to review based on the number of points. There is a hook for it in comments extension for this already. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From peter.guhl at win-lux.ch Mon Jul 14 22:07:03 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Mon, 14 Jul 2008 22:07:03 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi Georg Ringer schrieb: > I don't complain, I just ask! > OK. Sorry. Most people ask only if they complain ;-) > This is a TYPO3 mailinglist, so there should be a connection to TYPO3. > If not, this is maybe better in typo3.offtopic! > Uhm... didn't know there's such a list. Sorry. At the other hand... where in the webdesigning-world is spam protection "off topic"? I definitely have to be picky about the lists I subscribe to - otherwise my mailbox will soon explode. :-( > Probably this is also why you don't get more response here. > Maybe... or nobody has got the time to make it an extension and all fear that they might need to work if they say something ;-) > Georg > PS: I won't ask my magento questions here because response won't be big ^^ > Ehr... what's magento? Oh, google knew it ;-) Uhm... if you want to include it into typo3 I don't know why it was a problem to tell people around her. But I am probably not the right one to decide what's appropriate in here and what's not. Well, my posting wasn't meant to be a question but more a proposal for something which might be useful for several typo3-extensions. Unfortunately all I try to do will be rather dirty since my experience in the typo3-codebase is virtually non-existing... Regards Peter From peter.guhl at win-lux.ch Mon Jul 14 22:28:22 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Mon, 14 Jul 2008 22:28:22 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi Well, sorry for sounding so grumpy... definitely wasn't meant as a personal offense to anybody. Dmitry Dulepov [typo3] schrieb: > I'd love to see an external additional spam filter for comments > extension. Can it be done with your library? In general I need to call > something that will return certain amount of points. It is > approximately like SpamAssassin. Comments extension either publishes > comment or sends it to review based on the number of points. I will have to change the lib to transmit score instead of the boolean. But that's possible since spamprobe (currently the only software I am using - even thoug I did, of course, think about including spamassassin) is sending both. > There is a hook for it in comments extension for this already. I'll have to look into it! What number do you need? Spamprobe sends numbers from 0..1. This can, for example, easily changed into 1..100. Regards Peter From nospam at nospam.de Mon Jul 14 22:35:07 2008 From: nospam at nospam.de (=?UTF-8?B?RGFuaWVsIFDCmsO2dHppbmdlcg==?=) Date: Mon, 14 Jul 2008 22:35:07 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi, > > i would like to hear your opinion. > 1) There is no official way to set default values for flexform vars via > pageTS. I would like to have this feature. Possible syntax could be > TCAdefaults.tt_content.pi_flexform.myVar = xyz +1 good idea > > 2) There is no way to give user rights to fields like you can do with > normal db-fields. I would like to have some fields in flexform protected > by uservars. A possible way in flexform XML could be a syntax like > 1 > So this field would be hidden for "non-admins". > May be an option could set the rights to the admin-fields to other > user/usergroups by having a setting in TS > rights.flexformAdminFields = 1 (don't know best way to name it) This allready works: check "displayCond" in manuals there is something like HIDE_NON_ADMIN (i dont have syntax by hand) From nospam at nospam.de Mon Jul 14 22:40:42 2008 From: nospam at nospam.de (=?UTF-8?B?RGFuaWVsIFDCmsO2dHppbmdlcg==?=) Date: Mon, 14 Jul 2008 22:40:42 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Peter Guhl wrote: >> Yeah, all I got from 2 mailing lists is a guy complaining. Well, after >> all, my spam problem is solved and I know quite many things to spend >> my nights with. > > I'd love to see an external additional spam filter for comments > extension. Can it be done with your library? In general I need to call > something that will return certain amount of points. It is approximately > like SpamAssassin. Comments extension either publishes comment or sends > it to review based on the number of points. The extension "spamdetection" was planed for this, (used as a service for other extensions) maybe its relevant From peter.guhl at win-lux.ch Mon Jul 14 22:55:40 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Mon, 14 Jul 2008 22:55:40 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hello Daniel P??tzinger schrieb: > Dmitry Dulepov [typo3] schrieb: > >> something that will return certain amount of points. It is approximately >> like SpamAssassin. Comments extension either publishes comment or sends >> it to review based on the number of points. >> > The extension "spamdetection" was planed for this, > (used as a service for other extensions) > It might be useful since it is one single place for everything and, even more, it might be an aggregator of more than one spam detection service. Take akismet, spfgblib and others and calculate a score (and even get a result if one of the services is currently down). I changed my API the way it now returns the score. As a number between 0 and 1 (as spamprobe is calculating it out of the box). Writing "SCORE: " in front of it should make it easy to parse (well, yeah, I know, XML would be the modern and shiny way... but I get the feeling that " SCORE: 0.5158187" is using less bandwith ;-) Regards Peter From steffen at sk-typo3.de Tue Jul 15 01:21:25 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Tue, 15 Jul 2008 01:21:25 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi Daniel, Daniel P??tzinger schrieb: > Steffen Kamper schrieb: >> Hi, >> >> i would like to hear your opinion. >> 1) There is no official way to set default values for flexform vars >> via pageTS. I would like to have this feature. Possible syntax could be >> TCAdefaults.tt_content.pi_flexform.myVar = xyz > +1 good idea >> fine :) hope we find a way for integration, any help for sure is welcome ;-) >> 2) There is no way to give user rights to fields like you can do with >> normal db-fields. I would like to have some fields in flexform >> protected by uservars. A possible way in flexform XML could be a >> syntax like >> 1 >> So this field would be hidden for "non-admins". >> May be an option could set the rights to the admin-fields to other >> user/usergroups by having a setting in TS >> rights.flexformAdminFields = 1 (don't know best way to name it) > > This allready works: check "displayCond" in manuals there is something > like HIDE_NON_ADMIN (i dont have syntax by hand) indeed there is a way using HIDE_FOR_NON_ADMINS. My dream would be that flexform fields have same treatment like normal DB-fields, that would unify syntax for admins/developers in a very effective way. vg Steffen From dmitry at typo3.org Tue Jul 15 08:26:16 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 15 Jul 2008 09:26:16 +0300 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi! Peter Guhl wrote: > Ehr... what's magento? Oh, google knew it ;-) Uhm... if you want to > include it into typo3 I don't know why it was a problem to tell people > around her. But I am probably not the right one to decide what's > appropriate in here and what's not. I'd love to see magento in TYPO3 :) -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From dmitry at typo3.org Tue Jul 15 08:31:28 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 15 Jul 2008 09:31:28 +0300 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi! Peter Guhl wrote: > I'll have to look into it! What number do you need? Spamprobe sends > numbers from 0..1. This can, for example, easily changed into 1..100. It is from 0 to infinity, integer numbers but completely voluntary in meaning :) To give you an idea: currently comments extension gives one spam point for each three "http://" in text and one spam point per "[url". These two are mostly used by spammers. So, if you have certain spam evaluation criterias, you can construct something of them. There is also a concept of "cut off" point (obtainable from $pObj->conf['spamProtect.']['spamCutOffPoint']). If you supply a number more than this point, comment will silently dropped. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From dmitry at typo3.org Tue Jul 15 08:32:15 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 15 Jul 2008 09:32:15 +0300 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi! Daniel P??tzinger wrote: > The extension "spamdetection" was planed for this, > (used as a service for other extensions) > > maybe its relevant Good to know, thanks! -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From michael at typo3.org Tue Jul 15 08:22:31 2008 From: michael at typo3.org (Michael Stucki) Date: Tue, 15 Jul 2008 08:22:31 +0200 Subject: [TYPO3-dev] Spamfilter-Service References: Message-ID: Hi Peter, > Even though Akismet was faster than I I still decided to continue with > spfgblib ;-) Now I have built a simple page which should be usable as an > API for automated Spam-checking. Here it is: > http://www.chabis.ch/helpers/api/index.php > > For trying it out you need a valid userid. Ther is "tester" which can > only check if a text is known SPAM. If you want to get a higher level > which can also train the filter please write your application and tell > me what you want to do (i.E. integrate it into an extension). > Then I may give you a personal ID. > > If you want to become part of the project you may also go to > http://www.sourceforge.net/projects/spfgblib Sounds interesting, especially since buzz.typo3.org has problems with Spam and it seems from our side like it's a problem of Akismet... I'd be happy to see an integration of your library in the ve_guestbook extension. - michael -- Use a newsreader! Check out http://typo3.org/community/mailing-lists/use-a-news-reader/ From peter.guhl at win-lux.ch Tue Jul 15 09:26:13 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Tue, 15 Jul 2008 09:26:13 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi Dmitry Dulepov [typo3] schrieb: > It is from 0 to infinity, integer numbers but completely voluntary in meaning :) To give you an idea: currently comments extension gives one spam point for each three "http://" in text and one spam point per "[url". These two are mostly used by spammers. So, if you have certain spam evaluation criterias, you can construct something of them. > Well, that's probably what the bayes filter internally does. Now... how should I achieve that... I get points from 0.00000000 to 0.99999999. Harmless text range around 0.5 or a bit above. If I "normalize" that to 1..10 I get points a bit higher than spamassassin (From what I know there score 3 is normally SPAM, above 10 it's always). No matter what I do; the behaviour will be different from Spamassassin. I really think about the extension "spamdetection" which might be good to level several sources the way they give a reliable scoring system. Thats the way spamassassin works. The Bayes-Filter there is giving out a percentage and SA seems to give them points based on percentage-ranges (i.e. 0 to 10% = -1 Point, 10 to 30% 0.1 Point, 30 to 50 % 0.5 Points...). Of course any extension might access spfgblib directly as long as it takes in account the way it behaves. I installed spamdetection. From the first look it apparently uses rules and blacklists. That's a good idea and can be combined with external sources. Does it already do scoring? I think I will do my first steps touse the ASP spfgblib somewhere with that extension. The resulting thing will probably be a PHP-snippet which should be usable elsewhere too. > There is also a concept of "cut off" point (obtainable from $pObj->conf['spamProtect.']['spamCutOffPoint']). If you supply a number more than this point, comment will silently dropped. > If you work with score you need that, of course. Regards Peter From michael at typo3.org Tue Jul 15 08:27:50 2008 From: michael at typo3.org (Michael Stucki) Date: Tue, 15 Jul 2008 08:27:50 +0200 Subject: [TYPO3-dev] Spamfilter-Service References: Message-ID: Hi Peter, > Yeah, all I got from 2 mailing lists is a guy complaining. Well, after > all, my spam problem is solved and I know quite many things to spend my > nights with. I'm sure you will get used to that... ;-) - michael -- Use a newsreader! Check out http://typo3.org/community/mailing-lists/use-a-news-reader/ From peter.guhl at win-lux.ch Tue Jul 15 09:46:43 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Tue, 15 Jul 2008 09:46:43 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi Michael Stucki schrieb: >> Yeah, all I got from 2 mailing lists is a guy complaining. Well, after >> all, my spam problem is solved and I know quite many things to spend my >> nights with. >> > > I'm sure you will get used to that... ;-) > It's about normal, I know. But sometimes I can't help to state it again ;-) And I am really happy that I got it wrong this time! Regards Peter From peter.guhl at win-lux.ch Tue Jul 15 09:54:02 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Tue, 15 Jul 2008 09:54:02 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Daniel P??tzinger schrieb: > The extension "spamdetection" was planed for this, > (used as a service for other extensions) > I sort of managed to install the application (well, the files are there...). Now, the whole thing looks very straight forward. All I would have to do seems to be to add a few lines into getSpamPercentForText() which do a http-Request to my API-Form and get the number out of the result (maybe with a few multiplications - we'll see). It might only get active when you call getSpamPercentForText() with a pseudo-ruleset like "onlinespfgblib" (that way it can be ommitted if you don't want to waste bandwith). What do you think? Is that the right track? Regards Peter From peter.guhl at win-lux.ch Tue Jul 15 11:59:20 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Tue, 15 Jul 2008 11:59:20 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi Daniel Daniel P??tzinger schrieb: > The extension "spamdetection" was planed for this, Well, I gave it a try and inserted the following lines below line 219 of class.tx_spamdetection_service.php: // First test: Send a http-Request to the spfgblib-API $spfgblib=http_post_fields('http://www.chabis.ch/helpers/api/index.php',array('sent'=>'spamform','userid'=>'tester','test'=>'TEST','text'=>$text)); $spfgbscore=substr($spfgblib,strstr($spfgblib,'SCORE: ')+7,9); $percents[]=$spfgbscore * 100; Well.. now I have to find out how I can test it ;-) Regards Peter From typo3dev2008.nospam1 at geithware.de Tue Jul 15 15:04:47 2008 From: typo3dev2008.nospam1 at geithware.de (Stefan Geith) Date: Tue, 15 Jul 2008 15:04:47 +0200 Subject: [TYPO3-dev] =?iso-8859-15?q?_Survey_on_german_freelancers_about_t?= =?iso-8859-15?q?ax-mode_=28Gewerbe/Selbst=E4ndig=29?= Message-ID: Hi Devs, This is a survey on Typo3-Developers that are freelancers and pay their taxes in Germany. Maybe this is a bit off-topic, but I want to adress (german) Typo3-Devs - hope this is OK. In germany the tax office distinguishes between 'freelancers' (Selbstst?ndige) and 'businessman' (Gewerbetreibende). If you are categorized as 'businessman' you have to pay additional taxes and you must be a member of the 'Chamber of Industry and Commerce' (IHK), that cost an additional membership-fee. Because this is very special (and I don't know the right words in english) I ask in german: 1) Seid Ihr a) selbst?ndig (=Freiberufler) oder b) Gewerbetreibende ? 2) Falls a) selbst?ndig (Freiberufler): 2a) War es schwierig, das Finanzamt davon zu ?berzeugen ? 2b) Was gebt Ihr als 'freiberufliche T?tigkeit' in der Steuererkl?rung an ? 2c) Wie beschreibt Ihr eure T?tigkeit auf euren Rechnungen ? 3) Wusstet Ihr, dass es - zumindest offiziell - einen Unterschied zwischen 'Programmieren' (=Gewerbe) und 'Systemprogrammierung' (=Freiberuflich) gibt ? Ist Typo3-Plugin-Entwicklung dann 'Systemprogrammierung' oder nicht ...? - Stefan From peter.guhl at win-lux.ch Tue Jul 15 17:47:00 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Tue, 15 Jul 2008 17:47:00 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Daniel P??tzinger schrieb: > The extension "spamdetection" was planed for this, > Well, I guess I got the right place in "spamdetection" but forget about the code I wrote. It sends a nice request but doesn't wait for the answer. I'll start some experiments with the class HttpRequest. This might take a couple of hours (if I don't find an example) Regards Peter From peter.guhl at win-lux.ch Tue Jul 15 18:10:46 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Tue, 15 Jul 2008 18:10:46 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: OK, here's a quick sample code about how to use it. Should be possible to be put into any PHP-Code: __construct('http://www.chabis.ch/helpers/api/index.php',HttpRequest::METH_POST); $request->addPostFields(array('userid'=>'tester','sent'=>'spamform','test'=>'TEST','text'=>'great site!')); //echo('
');
        //var_dump($request);
        //echo('
'); try { echo $request->send()->getBody(); } catch (HttpException $ex) { echo $ex; } ?> That "great site!" has to be replaced by the text you want to check and most likely you don't want to echo the exceptions and the data but use it internally. Regards Peter From steffen at sk-typo3.de Tue Jul 15 21:53:31 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Tue, 15 Jul 2008 21:53:31 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi, > > i would like to hear your opinion. > 1) There is no official way to set default values for flexform vars via > pageTS. I would like to have this feature. Possible syntax could be > TCAdefaults.tt_content.pi_flexform.myVar = xyz > I have an idea: imagine following syntax: PAGETS:TCAdefaults.tt_content.pi_flexform.myVar that would simplify everything, no check against unique or nested fields. A simple function can check against pageTS. vg Steffen From dmitry at typo3.org Wed Jul 16 08:34:03 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 16 Jul 2008 09:34:03 +0300 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > I have an idea: > imagine following syntax: > PAGETS:TCAdefaults.tt_content.pi_flexform.myVar > > that would simplify everything, no check against unique or nested > fields. A simple function can check against pageTS. And what if I want to start my normal default value with "PAGETS:"? -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From simon at rundell.org.uk Wed Jul 16 09:27:05 2008 From: simon at rundell.org.uk (Fr. Simon Rundell SCP) Date: Wed, 16 Jul 2008 08:27:05 +0100 Subject: [TYPO3-dev] Maximum Execution Time on Typo3Wamp Message-ID: I have been using one of the WAMP installs for some off-line development, specifically typo3wamp. One script of mine is quite intensive, and exceeds the "60 seconds Script Timeout", but I have changed that parameter in php.ini but to no effect. I can't see a typo3 parameter for this in the Install routine or localconf.php, but wonder how the limit can be raised. Any thoughts? Fr. S From j.rieger at connecta.ag Wed Jul 16 09:57:12 2008 From: j.rieger at connecta.ag (Jochen Rieger) Date: Wed, 16 Jul 2008 09:57:12 +0200 Subject: [TYPO3-dev] Maximum Execution Time on Typo3Wamp In-Reply-To: References: Message-ID: Hi! Have you performed a file search for php.ini yet? As far as I know, XAMPP / WAMPP installation use to have multiple php.ini files. Maybe another one is in use when starting the webserver?! Regards, Jochen -- Connecta AG TYPO3 Development http://www.connecta.ag From dmitry at typo3.org Wed Jul 16 10:12:19 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 16 Jul 2008 11:12:19 +0300 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi! Peter Guhl wrote: > Now... how should I achieve that... I get points from 0.00000000 to > 0.99999999. Harmless text range around 0.5 or a bit above. If I > "normalize" that to 1..10 I get points a bit higher than spamassassin > (From what I know there score 3 is normally SPAM, above 10 it's always). If your filter thinks it is not spam, just return zero. Otherwise, the more "spamy" it is - the more points. > No matter what I do; the behaviour will be different from Spamassassin. Spamassassin is just an example, there is no need to follow its behavior precisely. >> There is also a concept of "cut off" point (obtainable from >> $pObj->conf['spamProtect.']['spamCutOffPoint']). If you supply a >> number more than this point, comment will silently dropped. >> > If you work with score you need that, of course. Currently it is like this: - zero - not spam, post it immediately - non-zero but less than cut off score - spam and notification sent to admin for approval - non-zero and equals or more than cut off point - drop comment and do not notify admin -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/how_to_fill_realurl_cache/ From dmitry at typo3.org Wed Jul 16 10:17:27 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 16 Jul 2008 11:17:27 +0300 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi! Peter Guhl wrote: > Well, I gave it a try and inserted the following lines below line 219 of > class.tx_spamdetection_service.php: > > // First test: Send a http-Request to the spfgblib-API > > $spfgblib=http_post_fields('http://www.chabis.ch/helpers/api/index.php',array('sent'=>'spamform','userid'=>'tester','test'=>'TEST','text'=>$text)); > > $spfgbscore=substr($spfgblib,strstr($spfgblib,'SCORE: ')+7,9); > $percents[]=$spfgbscore * 100; This can be costly... :( HTTP request may take lots of time. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/how_to_fill_realurl_cache/ From dmitry at typo3.org Wed Jul 16 10:19:21 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 16 Jul 2008 11:19:21 +0300 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi! Peter Guhl wrote: > OK, here's a quick sample code about how to use it. Should be possible > to be put into any PHP-Code: > > // First test: Send a http-Request to the spfgblib-API > > $request = new HttpRequest; > > $request->__construct('http://www.chabis.ch/helpers/api/index.php',HttpRequest::METH_POST); > > > $request->addPostFields(array('userid'=>'tester','sent'=>'spamform','test'=>'TEST','text'=>'great > site!')); Not a TYPO3 way :) TYPO3 recommends using t3lib_div::getURL() but it limits you to GET requests only. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/how_to_fill_realurl_cache/ From peter.guhl at win-lux.ch Wed Jul 16 11:10:33 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Wed, 16 Jul 2008 11:10:33 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi Dmitry Dulepov [typo3] schrieb: > Not a TYPO3 way :) TYPO3 recommends using t3lib_div::getURL() but it limits you to GET requests only. > Oops... sorry. That's something I did not have time to read yet :-( GET or POST isn't very important but will that function give me the stuff the server sends as a response for the request (the website) or just "200 OK"? Regards Peter From dmitry at typo3.org Wed Jul 16 11:15:51 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 16 Jul 2008 12:15:51 +0300 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi! Peter Guhl wrote: > Oops... sorry. That's something I did not have time to read yet :-( GET > or POST isn't very important but will that function give me the stuff > the server sends as a response for the request (the website) or just > "200 OK"? It will give you result. But you can also get headers if you want (there is a parameter). The good about this function that it can use many methods for making HTTP requests and takes proxy into account of necessary. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/how_to_fill_realurl_cache/ From tapio.markula at xetpoint.fi Wed Jul 16 12:28:21 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Wed, 16 Jul 2008 13:28:21 +0300 Subject: [TYPO3-dev] Problem with JS handling Message-ID: Hi I tested a possible menu system in a plugin, which use with JS cookies. This hanged in IE 6 - not real IE 6 but multiple IE function ReadCookie(cookieName) { var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(";",ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1)); } ... function saveLevel2(value) { ... var name2 = "level2PrevItem"; date.setTime(date.getTime()+(24*60*60*1000)); var expires = "; expires="+date.toGMTString(); document.cookie = name2+"="+value+expires+"; path=/"; } ... function closePrevLevel2(value) { var previousItem = ReadCookie("level2PrevItem"); if(value!=previousItem) { tx_dropdownsitemap_pi1_swapClassesClose(previousItem); } } I tested the last function with a fixed value - worked - so the problem relates with cookie handling. I just doesn't understand why this doesn't worked in multiple IE. From mail-spam at ringerge.org Wed Jul 16 12:30:02 2008 From: mail-spam at ringerge.org (Georg Ringer) Date: Wed, 16 Jul 2008 12:30:02 +0200 Subject: [TYPO3-dev] Problem with JS handling In-Reply-To: References: Message-ID: Tapio Markula wrote: > I tested the last function with a fixed value - worked - so the problem > relates with cookie handling. I just doesn't understand why this doesn't > worked in multiple IE. Multiple IE is still kind of hack, so test it with a true IE6 maybe you also should ask this in a js forum Georg From steffen at sk-typo3.de Wed Jul 16 13:14:15 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Wed, 16 Jul 2008 13:14:15 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Steffen Kamper wrote: >> I have an idea: >> imagine following syntax: >> PAGETS:TCAdefaults.tt_content.pi_flexform.myVar >> >> that would simplify everything, no check against unique or nested >> fields. A simple function can check against pageTS. > > And what if I want to start my normal default value with "PAGETS:"? > Hi, really? There are some keywords like LLL: etc. having the opportunity to have these options the keywords are forbidden (not much, and only the start) One additional: to prevent cross overs the namespace could be limited like PAGETS:myVar should be in PageTS like TCAdefaults.tt_content.pi_flexform.tx_myplugin_pi1.myVar = ... But this could be worked out. i only thought about a way where integration should be not a big problem and all the complex analysis of Flexform and levels would be not necessary, the author is responsible for using the right varnames. vg Steffen From ss at cabag.ch Wed Jul 16 13:50:04 2008 From: ss at cabag.ch (Sonja Scholz) Date: Wed, 16 Jul 2008 13:50:04 +0200 Subject: [TYPO3-dev] Crawler Extension - Mountpoint support and development in future Message-ID: Hello all, we used the crawler extension in several projects. Now we improved the extension, so it supports also mountpoint handling. This is important, because the mountpage (and if exists the subpages of the mountpage) should also be indexed. I created a bug report and uploaded the tested patch and the t3x file. http://bugs.typo3.org/view.php?id=8983 It would be great if the bug could be fixed in the next version of the extension. Is there any news, if the extension becomes part of forge? Then we also (Jonas D?bi and me) would like to become part of the development team of the crawler extension. Kind regards Sonja From peter.guhl at win-lux.ch Wed Jul 16 14:51:19 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Wed, 16 Jul 2008 14:51:19 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Hi Dmitry Dulepov [typo3] schrieb: > Currently it is like this: > - zero - not spam, post it immediately > - non-zero but less than cut off score - spam and notification sent to admin for approval > - non-zero and equals or more than cut off point - drop comment and do not notify admin > That would definitely need some adjustment of anything spamprobe can give you. Currently an empty text results in a score of exactly 0.500000. The level where spamprobe itself is classyfing it as "SPAM" is normally at 0.7. I think it's better not to do that all in the API since anything I do there is good for some and bad for others. Even more since I am a fan of "aggregators" like Spamassassin or the extension spamdetection which combine different sources. It's always possible that a rule has got bugs or a bayes-filter gets poisoned (like those DNS-Blacklists some still think they are good enough to block mails based on just one of them). Regards Peter From peter.guhl at win-lux.ch Wed Jul 16 14:56:08 2008 From: peter.guhl at win-lux.ch (Peter Guhl) Date: Wed, 16 Jul 2008 14:56:08 +0200 Subject: [TYPO3-dev] Spamfilter-Service In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Peter Guhl wrote: > >> // First test: Send a http-Request to the spfgblib-AP > This can be costly... :( HTTP request may take lots of time. > Yeah... timeouts should be considered in a productive implementation. How much time you can loose depends a lot on the application you have. Nobody complains if an email from a form takes a couple of minutes before it gets sent but in other cases it might be a problem. Regards Peter From dmitry at typo3.org Wed Jul 16 15:06:22 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 16 Jul 2008 16:06:22 +0300 Subject: [TYPO3-dev] Crawler Extension - Mountpoint support and development in future In-Reply-To: References: Message-ID: Hi! Sonja Scholz wrote: > Is there any news, if the extension becomes part of forge? Then we also > (Jonas D?bi and me) would like to become part of the development team of > the crawler extension. It is on SF now, so will be migrated to Forge as soon as all other exts are migrated. Planned migration date is on 26 or 27 of July. There is an announcement by Andreas Otto made on July 12, check it for more info. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/how_to_fill_realurl_cache/ From dmitry at typo3.org Wed Jul 16 15:09:13 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 16 Jul 2008 16:09:13 +0300 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > really? There are some keywords like LLL: etc. having the opportunity to > have these options the keywords are forbidden (not much, and only the > start) LLL is used only in certain contexts when it is defined to be used. Using LLL in , for example, will not give you anything. > i only thought about a way where integration should be not a big problem > and all the complex analysis of Flexform and levels would be not > necessary, the author is responsible for using the right varnames. Yes, I understand this... No one wants to write monsters like I did in this thread with sheets sections and CO elements. But I think we can't use for it. May be another tag? -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/how_to_fill_realurl_cache/ From steffen at sk-typo3.de Wed Jul 16 15:50:21 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Wed, 16 Jul 2008 15:50:21 +0200 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi, Dmitry Dulepov [typo3] schrieb: > Hi! > > Steffen Kamper wrote: >> really? There are some keywords like LLL: etc. having the opportunity >> to have these options the keywords are forbidden (not much, and only >> the start) > > LLL is used only in certain contexts when it is defined to be used. > Using LLL in , for example, will not give you anything. > i know, it was just to mention the keywords. >> i only thought about a way where integration should be not a big >> problem and all the complex analysis of Flexform and levels would be >> not necessary, the author is responsible for using the right varnames. > > Yes, I understand this... No one wants to write monsters like I did in > this thread with sheets sections and CO elements. But I think we can't > use for it. May be another tag? > sure. That shouldn't be a problem, finding the right name may be a problem. I can imagine something like ... which makes it clear what the value does. What do you think about the namespace limitation? vg Steffen From xoonsji02 at sneakemail.com Wed Jul 16 18:14:29 2008 From: xoonsji02 at sneakemail.com (bernd wilke) Date: Wed, 16 Jul 2008 16:14:29 +0000 (UTC) Subject: [TYPO3-dev] Set and read cookies References: Message-ID: on Sun, 13 Jul 2008 22:24:06 +0300, Tapio Markula wrote: > Hi > > I would need in an extension JS for cookies > > http://www.willmaster.com/library/javascript/set_read_cookies.php > > the problem is that I would nee read cookie for *two-level* array cookie > but examples seems to handle just one level simple cookies. > > How to create ReadCookie for two-level cookie, for example for this > > > function saveLevel2(value) { > var name = "menuCookie[level2Cookie]"; var date = new Date (); > date.setTime(date.getTime()+(24*60*60*1000)); var expires = "; > expires="+date.toGMTString(); document.cookie = > name+"="+value+expires+"; path=/"; > } do you really need arrays? may this could be solved with multiple cookies, where teh cookie-names can be generated: menuCookie menuCookie_1 menuCookie_2 : var name = "menuCookie_"+level; and if you need assoziative arrays (they are no real arrays), you have to work with two (pseudo-)arrays: menuCookie_key_0 = 'first keyword'; menuCookie_val_0 = 'first value'; menuCookie_key_1 = 'second keyword'; menuCookie_val_1 = 'second value'; with functions you can read and write your array-variables as cookies something like: (key-separation by '__' instead of two numeric arrays, for a numeric array you can use a normal counter.) function writeAssociativeArrayToCookie(a,aname) { var date = new Date(); date.setTime(date.getTime()+(24*60*60*1000)); var expires = ";expires="+date.toGMTString(); for (var arrayKey in a) document.cookie =aname+'__'+arraykey+"="+a[arrayKey] +expires +";path=/"; } reading single cookies is a little bit more complicated in javascript and is done normaly in a function, where you can handle your 'arrays' in a similar way. bernd -- http://www.pi-phi.de/t3v4/cheatsheet.html From tapio.markula at xetpoint.fi Wed Jul 16 19:44:35 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Wed, 16 Jul 2008 20:44:35 +0300 Subject: [TYPO3-dev] Set and read cookies In-Reply-To: References: Message-ID: bernd wilke > do you really need arrays? in fact not necessarily - that is just my habit Several cookies could easier temporary unset with one command $_COOKIE['menuCookie']=NULL; > > may this could be solved with multiple cookies, where teh cookie-names > can be generated: > > menuCookie > menuCookie_1 > menuCookie_2 > : > > var name = "menuCookie_"+level; that would be nice solution - one function istead of own function for every level and there would not be level restrictions. I have thought that too. From tapio.markula at xetpoint.fi Wed Jul 16 23:06:35 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Thu, 17 Jul 2008 00:06:35 +0300 Subject: [TYPO3-dev] Set and read cookies In-Reply-To: References: Message-ID: Tapio Markula > that would be nice solution - one function istead of own function for > every level and there would not be level restrictions. I have thought > that too. here the final HTML-code, which will be created by a plugin function ReadCookie(cookieName) { var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(";",ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1)); } function saveLevel(value,level) { var name = "menuCookieLevel_"+level; var date = new Date(); date.setTime(date.getTime()+(24*60*60*1000)); var expires = "; expires="+date.toGMTString(); document.cookie = name+"="+value+expires+"; path=/"; var name2 = "level"+level+"PrevItem"; document.cookie = name2+"="+value+expires+"; path=/"; } function closePrevLevel(value,level) { name="level"+level+"PrevItem"; var previousItem = ReadCookie(name); if(value!=previousItem) { tx_dropdownsitemap_pi1_swapClassesClose(previousItem); } } function clearCookieLevel(value,level) { var name = "menuCookieLevel_"+level; var date = new Date(); date.setTime(date.getTime()+(-(24*60*60*1000))); var expires = "; expires="+date.toGMTString(); document.cookie = name+"="+value+expires+"; path=/"; } cookies allows to store to next page call current situation and close previous opened menu in menus, which created by dropdown_sitemap. expAll=1 + dynamic JS-based menu has huge disadvantage as normal menu without cookies From dmitry at typo3.org Thu Jul 17 07:51:21 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Thu, 17 Jul 2008 08:51:21 +0300 Subject: [TYPO3-dev] New flexform featur In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > sure. That shouldn't be a problem, finding the right name may be a > problem. I can imagine something like > ... > which makes it clear what the value does. Looks ok. "PAGETS:var" syntax then is ok. > What do you think about the namespace limitation? What do you mean? -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/how_to_fill_realurl_cache/ From thorsten.kahler at dkd.de Thu Jul 17 09:30:44 2008 From: thorsten.kahler at dkd.de (Thorsten Kahler [dkd]) Date: Thu, 17 Jul 2008 09:30:44 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Hi, Dmitry Dulepov [typo3] schrieb: > Ernesto Baschny [cron IT] wrote: >> Can't the "frameworks" be provided as extensions and then we could use >> the regular "depends" conditions in the ext_emconf.php? > > A little problem with it is versioning of the frameworks. Some exts may > depend on the specific version of the framework or require newer > framework than exists in ext. I bumped into this with extjs: I want to > use the extjs ext in my private extension but extjs ext did not have > proper version in it. the "depends" logic also supports pointing to specific version ranges. I'm not sure whether the extension manager does support that as well, but that would be a different problem and not hard to manage. So I support Ernestos suggestion: - provide JS libraries solely as extensions in TER - use the version of the library as extension version - let these extensions provide two simple API calls to include the JS lib in all (via ext_localconf.php) or distinct (module / plugin) BE or FE pages. - don't deliver JS libs with extensions, but use the "depends" mechanism to have them at hand Regards Thorsten -- Thorsten Kahler thorsten.kahler at dkd.de From ernst at cron-it.de Thu Jul 17 10:43:18 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Thu, 17 Jul 2008 10:43:18 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Thorsten Kahler [dkd] wrote: on 17.07.2008 09:30: > Hi, > > Dmitry Dulepov [typo3] schrieb: >> Ernesto Baschny [cron IT] wrote: >>> Can't the "frameworks" be provided as extensions and then we could >>> use the regular "depends" conditions in the ext_emconf.php? >> >> A little problem with it is versioning of the frameworks. Some exts >> may depend on the specific version of the framework or require newer >> framework than exists in ext. I bumped into this with extjs: I want to >> use the extjs ext in my private extension but extjs ext did not have >> proper version in it. > > the "depends" logic also supports pointing to specific version ranges. > I'm not sure whether the extension manager does support that as well, > but that would be a different problem and not hard to manage. > > So I support Ernestos suggestion: > - provide JS libraries solely as extensions in TER > - use the version of the library as extension version > - let these extensions provide two simple API calls to include the JS > lib in all (via ext_localconf.php) or distinct (module / plugin) BE or > FE pages. > - don't deliver JS libs with extensions, but use the "depends" mechanism > to have them at hand That would be cool. The only "problem" I see there is that the we then depend on those ext-authors to update their JS-extensions. If they are gone MIA, we have a problem. :) So maybe we need to get those extensions in a broader community's hand, in SVN and with at least 2-3 developers to update it from time to time. Cheers, Ernesto From steffen at sk-typo3.de Thu Jul 17 10:51:02 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Thu, 17 Jul 2008 10:51:02 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Ernesto Baschny [cron IT] schrieb: > Thorsten Kahler [dkd] wrote: on 17.07.2008 09:30: >> Hi, >> >> Dmitry Dulepov [typo3] schrieb: >>> Ernesto Baschny [cron IT] wrote: >>>> Can't the "frameworks" be provided as extensions and then we could >>>> use the regular "depends" conditions in the ext_emconf.php? >>> >>> A little problem with it is versioning of the frameworks. Some exts >>> may depend on the specific version of the framework or require newer >>> framework than exists in ext. I bumped into this with extjs: I want >>> to use the extjs ext in my private extension but extjs ext did not >>> have proper version in it. >> >> the "depends" logic also supports pointing to specific version ranges. >> I'm not sure whether the extension manager does support that as well, >> but that would be a different problem and not hard to manage. >> >> So I support Ernestos suggestion: >> - provide JS libraries solely as extensions in TER >> - use the version of the library as extension version >> - let these extensions provide two simple API calls to include the JS >> lib in all (via ext_localconf.php) or distinct (module / plugin) BE or >> FE pages. >> - don't deliver JS libs with extensions, but use the "depends" >> mechanism to have them at hand > > That would be cool. The only "problem" I see there is that the we then > depend on those ext-authors to update their JS-extensions. If they are > gone MIA, we have a problem. :) > > So maybe we need to get those extensions in a broader community's hand, > in SVN and with at least 2-3 developers to update it from time to time. > > Cheers, > Ernesto good idea! But what is with prototype? It's part of core so you don't need an extension, but i need to know if an extension uses it. vg Steffen From masi-no at spam-typo3.org Thu Jul 17 10:52:53 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Thu, 17 Jul 2008 10:52:53 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Thorsten Kahler [dkd] schrieb: > - use the version of the library as extension version I don't think that this is clever: * A library may have a different numbering scheme than the EM expects for TYPO3 extensions . * The extension might implement some kind of wrapper. Changes to that glue code should be reflected in the extension own version. So I think it makes more sense to change the EM config so that an extension reports which 3rd party lib it includes and which version this is is. Alternatively we may demand that 3rd party libs are shipped always in their own extension and *any* additional code has to be shipped in another extension. But this also means eg that there has to one Smarty/phpMyAdmin/AWstats extension without any TYPO3 glue. And another one with addons on UI. This way you can separate the version of the lib from the version of the intergratiion code. Masi From dosipov at phillyburbs.com Thu Jul 17 14:29:33 2008 From: dosipov at phillyburbs.com (Dan Osipov) Date: Thu, 17 Jul 2008 08:29:33 -0400 Subject: [TYPO3-dev] Maximum Execution Time on Typo3Wamp In-Reply-To: References: Message-ID: There is no limit in Typo3. Make sure to use the right php.ini and restart your server. Dan Osipov Calkins Media http://danosipov.com/blog/ Fr. Simon Rundell SCP wrote: > I have been using one of the WAMP installs for some off-line development, > specifically typo3wamp. One script of mine is quite intensive, and exceeds > the "60 seconds Script Timeout", but I have changed that parameter in > php.ini but to no effect. I can't see a typo3 parameter for this in the > Install routine or localconf.php, but wonder how the limit can be raised. > > Any thoughts? > > Fr. S From thorsten.kahler at dkd.de Thu Jul 17 15:43:32 2008 From: thorsten.kahler at dkd.de (Thorsten Kahler [dkd]) Date: Thu, 17 Jul 2008 15:43:32 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Martin Kutschker schrieb: >> - use the version of the library as extension version > > I don't think that this is clever: > > * A library may have a different numbering scheme than the EM expects > for TYPO3 extensions . I thought about that, too. But unless there are any prominent/important examples that don't fit to our scheme (or rather: can't be handled by EM), this is theory. I don't expect this to be a real problem, because TYPO3 uses the most common scheme "."".". A quick search revealed a comparison table at Wikipedia [1]; maybe someone wants to examine Ajaxian's list[2] as well. > > * The extension might implement some kind of wrapper. Changes to that > glue code should be reflected in the extension own version. Sorry, I don't exactly understand where your're pointing at. > > So I think it makes more sense to change the EM config so that an > extension reports which 3rd party lib it includes and which version this > is is. Generally you're right: EM should distinguish between extensions and external libraries. But that wouldn't ease the numbering problem either. > > Alternatively we may demand that 3rd party libs are shipped always in > their own extension and *any* additional code has to be shipped in > another extension. But this also means eg that there has to one > Smarty/phpMyAdmin/AWstats extension without any TYPO3 glue. And another > one with addons on UI. This way you can separate the version of the lib > from the version of the intergratiion code. Yes, that should be the result. And we'd need some kind of API (like described for JS in my earlier post. Regards Thorsten [1] [2] -- Thorsten Kahler thorsten.kahler at dkd.de From masi-no at spam-typo3.org Thu Jul 17 15:54:10 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Thu, 17 Jul 2008 15:54:10 +0200 Subject: [TYPO3-dev] Extensions and JS-frameworks In-Reply-To: References: Message-ID: Thorsten Kahler [dkd] schrieb: >> >> * The extension might implement some kind of wrapper. Changes to that >> glue code should be reflected in the extension own version. > > Sorry, I don't exactly understand where your're pointing at. I have no JS example, but let's take Smarty. Smarty has it's own numbering. There are extensions that do more than contain the "raw" Smarty code. They add some code to easy intergration from a TYPO3 extension (eg by using an extended base class instead of Smarty's base class). They could (and do) add some extra stuff for tighter TYPO3 integration. Now we have to version numbers: Smarty's and the TYPO3 extensions' (the glue code). Masi From tapio.markula at xetpoint.fi Thu Jul 17 16:23:25 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Thu, 17 Jul 2008 17:23:25 +0300 Subject: [TYPO3-dev] Field information Message-ID: Hi I created a new menu for nsb_cat2menu and I would like to publich a plugin, which extends it. I created static template and there lib.nsbcat2menu it is by user fuction made HMENU, which lacks features. It doesn't support in allWrap.dataWrap and std.dataWrap {field:xxx} I would need info of uid - I must use arficial way to create unique numeric id values NO.before.cObject=LOAD_REGISTER NO.before.cObject{ mainMenuNumber.cObject=TEXT mainMenuNumber.cObject{ value={register:mainMenuNumber}+1 insertData=1 } mainMenuNumber.prioriCalc=intval } ... IFSUB < .NO IFSUB.allWrap.dataWrap =
  • ... NO.before.cObject=LOAD_REGISTER NO.before.cObject{ subMenuNumber.cObject=TEXT subMenuNumber.cObject{ value={register:subMenuNumber}+1 insertData=1 } subMenuNumber.prioriCalc=intval } IFSUB < .NO IFSUB.allWrap.dataWrap =
  • ... using register all values are unique and at the point of functionality of the menu everything is ok Would there be however a way to get real uid values. Artificial uid values are bad for setting defauld expanded menu - uid must look from source code. From simon at rundell.org.uk Thu Jul 17 17:54:46 2008 From: simon at rundell.org.uk (Fr. Simon Rundell SCP) Date: Thu, 17 Jul 2008 16:54:46 +0100 Subject: [TYPO3-dev] Maximum Execution Time on Typo3Wamp In-Reply-To: References: Message-ID: Thank you, both Jochen and Dan. There was indeed a second php.ini, in apache\bin which was the active one rarther than the one on \php. Thank you 2008/7/17 Dan Osipov : > There is no limit in Typo3. Make sure to use the right php.ini and > restart your server. > > Dan Osipov > Calkins Media > http://danosipov.com/blog/ > > Fr. Simon Rundell SCP wrote: > > I have been using one of the WAMP installs for some off-line > development, > > specifically typo3wamp. One script of mine is quite intensive, and > exceeds > > the "60 seconds Script Timeout", but I have changed that parameter in > > php.ini but to no effect. I can't see a typo3 parameter for this in the > > Install routine or localconf.php, but wonder how the limit can be raised. > > > > Any thoughts? > > > > Fr. S > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev > -- Fr. Simon Rundell SCP Parish of S. Thomas the Apostle, Elson The Vicarage, 21 Elson Road, Gosport, Hants, UK, PO12 4BL Tel: 02392 582824 Mob: 07976 802123 email: simon at rundell.org.uk web: http://www.saintthomaselson.org.uk blog: http://frsimon.wordpress.com "I came that you may have life - life in all its fullness" John 10:10 READ CAREFULLY. By reading this email, you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. From masi-no at spam-typo3.org Fri Jul 18 12:11:19 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Fri, 18 Jul 2008 12:11:19 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) Message-ID: Hi! I see stuff like this in many extenions: $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tx_table); $count = $GLOBALS['TYPO3_DB']->sql_num_rows($res); But this wastes resources as the SQL server sends you rows you don't need. Furthermore here all fields will be request although a single field would be sufficient (eg uid). Anyway it's better to use this: $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(*)', 'tx_table'); $row = $GLOBALS['TYPO3_DB']->sql_fetch_row($res); $count = $row[0]; Mysql will send you now only one row which is more efficient. Masi From ingo at typo3.org Fri Jul 18 12:23:48 2008 From: ingo at typo3.org (Ingo Renner) Date: Fri, 18 Jul 2008 12:23:48 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Martin Kutschker wrote: > Anyway it's better to use this: > > $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(*)', 'tx_table'); $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(uid)', 'tx_table'); ;) -- Ingo Renner TYPO3 Core Developer, Release Manager TYPO3 4.2 From dmitry at typo3.org Fri Jul 18 12:36:22 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Fri, 18 Jul 2008 13:36:22 +0300 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Hi! Ingo Renner wrote: > Martin Kutschker wrote: >> Anyway it's better to use this: >> >> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(*)', 'tx_table'); > > $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(uid)', 'tx_table'); My preferred: list($row) = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('COUNT(*) AS t', 'tx_table'); $count = $row['t']; No need top free resource. Less chances to forget freeing. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/cruelty_to_animals/ From steffen at sk-typo3.de Fri Jul 18 12:39:52 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Fri, 18 Jul 2008 12:39:52 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Ingo Renner schrieb: > Martin Kutschker wrote: > >> Anyway it's better to use this: >> >> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(*)', 'tx_table'); > > $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(uid)', 'tx_table'); > > ;) > > i tested this and it makes no difference COUNT(*) or COUNT(field) is internally the same vg Steffen From masi-no at spam-typo3.org Fri Jul 18 12:54:04 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Fri, 18 Jul 2008 12:54:04 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Ingo Renner schrieb: >> Martin Kutschker wrote: >> >>> Anyway it's better to use this: >>> >>> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(*)', 'tx_table'); >> >> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(uid)', 'tx_table'); >> >> ;) >> >> > > i tested this and it makes no difference > COUNT(*) or COUNT(field) is internally the same Internally - where? Of course it makes no difference on the client side. I'm not sure if it makes a difference for the server as COUNT(*) has - to me - the meaning "just count the rows". So I don't think that Mysql will try to do anything with the whole record and is optimized to retrieve the row count (probably using the primary key). Masi From masi-no at spam-typo3.org Fri Jul 18 12:54:38 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Fri, 18 Jul 2008 12:54:38 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Ingo Renner wrote: >> Martin Kutschker wrote: >>> Anyway it's better to use this: >>> >>> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(*)', 'tx_table'); >> >> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(uid)', 'tx_table'); > > My preferred: > > list($row) = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('COUNT(*) AS t', > 'tx_table'); > $count = $row['t']; > > No need top free resource. Less chances to forget freeing. Very good. Masi From masi-no at spam-typo3.org Fri Jul 18 13:00:00 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Fri, 18 Jul 2008 13:00:00 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Martin Kutschker schrieb: > Dmitry Dulepov [typo3] schrieb: >> Hi! >> >> Ingo Renner wrote: >>> Martin Kutschker wrote: >>>> Anyway it's better to use this: >>>> >>>> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(*)', 'tx_table'); >>> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(uid)', 'tx_table'); >> My preferred: >> >> list($row) = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('COUNT(*) AS t', >> 'tx_table'); >> $count = $row['t']; >> >> No need top free resource. Less chances to forget freeing. > > Very good. Even better :) $count = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('table'); Masi From masi-no at spam-typo3.org Fri Jul 18 13:04:57 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Fri, 18 Jul 2008 13:04:57 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Martin Kutschker schrieb: > > $count = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('table'); WARNING: this is an idea. There is currently no such function! Masi From steffen at sk-typo3.de Fri Jul 18 14:13:43 2008 From: steffen at sk-typo3.de (Steffen Kamper) Date: Fri, 18 Jul 2008 14:13:43 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Martin Kutschker schrieb: > Steffen Kamper schrieb: >> Ingo Renner schrieb: >>> Martin Kutschker wrote: >>> >>>> Anyway it's better to use this: >>>> >>>> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(*)', 'tx_table'); >>> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(uid)', 'tx_table'); >>> >>> ;) >>> >>> >> i tested this and it makes no difference >> COUNT(*) or COUNT(field) is internally the same > > Internally - where? Of course it makes no difference on the client side. > > I'm not sure if it makes a difference for the server as COUNT(*) has - > to me - the meaning "just count the rows". So I don't think that Mysql > will try to do anything with the whole record and is optimized to > retrieve the row count (probably using the primary key). > > Masi some time ago i did some benchmark. I wanted to figure out if a COUNT() could be optimized by calling a field COUNT(field) It seems that MySQL makes no difference, the COUNT always counts rows. How this is realized internally (and that means the MySQL-engine) i don't know, but i think it uses only the indizes. vg Steffen From typo3 at rvt.dds.nl Fri Jul 18 14:49:48 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Fri, 18 Jul 2008 07:49:48 -0500 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: On Jul 18, 2008, at 5:54 AM, Martin Kutschker wrote: > Steffen Kamper schrieb: >> Ingo Renner schrieb: >>> Martin Kutschker wrote: >>> >>>> Anyway it's better to use this: >>>> >>>> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(*)', >>>> 'tx_table'); >>> >>> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(uid)', >>> 'tx_table'); >>> >>> ;) >>> >>> >> >> i tested this and it makes no difference >> COUNT(*) or COUNT(field) is internally the same > > Internally - where? Of course it makes no difference on the client > side. > > I'm not sure if it makes a difference for the server as COUNT(*) has - > to me - the meaning "just count the rows". So I don't think that Mysql > will try to do anything with the whole record and is optimized to > retrieve the row count (probably using the primary key). > > Masi Actually there is a difference between count(*) and count(field_name). However in the case of ingo it's not seen... If for example you do a SELECT count(somefield) FROM table; and somefield is not constrained to NOT NULL then count(somefield) would only count all records where the field was not null. Example: create table test ( field varchar(12) ); insert into test (field) values('a'); insert into test (field) values(null); insert into test (field) values('b'); insert into test (field) values('c'); insert into test (field) values(null); select count(*) from test; => 5 select count(field) from test; => 3 Also this can lead to unpredicted results: SELECT sum(field)/count(*) FROM table; better to use SELECT sum(field)/count(field) FROM table; Also keep in mind that in some databases counting is much more expensive then counting in MySQL with MyISAM tables. Ries From masi-no at spam-typo3.org Fri Jul 18 16:14:52 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Fri, 18 Jul 2008 16:14:52 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: ries van Twisk schrieb: > > Also keep in mind that in some databases counting is much more expensive > then counting in MySQL with MyISAM tables. But I don't beleive that counting server side is more expensive than client side for any DB. But of course it doesn't make sense to do a COUNT(*) to decide if you should do a full select with *exactly* the same WHERE statement. I've seen that too. In this case the DB has to do the same work twice. Masi From typo3 at rvt.dds.nl Fri Jul 18 16:35:13 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Fri, 18 Jul 2008 09:35:13 -0500 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: On Jul 18, 2008, at 9:14 AM, Martin Kutschker wrote: > ries van Twisk schrieb: >> >> Also keep in mind that in some databases counting is much more >> expensive >> then counting in MySQL with MyISAM tables. > > But I don't beleive that counting server side is more expensive than > client side for any DB. You are absolutely right in that! Best is to count it server side. > > > But of course it doesn't make sense to do a COUNT(*) to decide if you > should do a full select with *exactly* the same WHERE statement. I've > seen that too. In this case the DB has to do the same work twice. Fully agreed!!! I just wanted to explain that count(*) (cardinality counting) is different from count(field) (expression counting). Also that counting in general is fast on MyISAM (but in-accurate under some conditions) and can be much slower for InnoDB or other DB engines. But you are right Masi, if you need to do a count on a set of records, then count(..) is your friend and not to retrieve a data set and count on the client side Ries > > > Masi > > _______________________________________________ From ernst at cron-it.de Fri Jul 18 17:57:23 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Fri, 18 Jul 2008 17:57:23 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: ries van Twisk wrote: on 18.07.2008 16:35: > > On Jul 18, 2008, at 9:14 AM, Martin Kutschker wrote: > >> ries van Twisk schrieb: >>> >>> Also keep in mind that in some databases counting is much more expensive >>> then counting in MySQL with MyISAM tables. >> >> But I don't beleive that counting server side is more expensive than >> client side for any DB. > > You are absolutely right in that! Best is to count it server side. > >> >> >> But of course it doesn't make sense to do a COUNT(*) to decide if you >> should do a full select with *exactly* the same WHERE statement. I've >> seen that too. In this case the DB has to do the same work twice. > > Fully agreed!!! > > > I just wanted to explain that count(*) (cardinality counting) is different > from count(field) (expression counting). > > Also that counting in general is fast on MyISAM (but in-accurate under > some conditions) > and can be much slower for InnoDB or other DB engines. > > But you are right Masi, if you need to do a count on a set of records, > then count(..) is your friend > and not to retrieve a data set and count on the client side > I don't think that mysql_num_rows will be processed "client side". The data sets won't even be retrieved if you just do a select followed by mysql_num_rows. It is probably more expensive than count(*), but I cannot imagine that it is *that* much faster. I recall that mysql has a shortcut in the special case "COUNT(*) FROM
  • " (without a "WHERE"), because it will consult the MYD headers for the amount of rows and not even load indexes to do the dirty work. So this is of course the easiest to do. But as in TYPO3 almost on all queries you will have to include enableFields, I figure that MySQL will have to touch indexes anyway so it shouldn't matter that much. Cheers, Ernesto From typo3 at rvt.dds.nl Fri Jul 18 19:09:09 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Fri, 18 Jul 2008 12:09:09 -0500 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: On Jul 18, 2008, at 10:57 AM, Ernesto Baschny [cron IT] wrote: > ries van Twisk wrote: on 18.07.2008 16:35: >> >> On Jul 18, 2008, at 9:14 AM, Martin Kutschker wrote: >> ........ >> > > I don't think that mysql_num_rows will be processed "client side". The > data sets won't even be retrieved if you just do a select followed by > mysql_num_rows. It is probably more expensive than count(*), but I > cannot imagine that it is *that* much faster. > > I recall that mysql has a shortcut in the special case "COUNT(*) FROM >
    " (without a "WHERE"), because it will consult the MYD headers > for the amount of rows and not even load indexes to do the dirty work. > So this is of course the easiest to do. > > But as in TYPO3 almost on all queries you will have to include > enableFields, I figure that MySQL will have to touch indexes anyway so > it shouldn't matter that much. > > Cheers, > Ernesto > _______________________________________________ Hey Ernesto, From reading the docs about mysql_num_rows : "Retrieves the number of rows from a result set." That means that the result set was already transfered to PHP's API and there you lose performance because of the data treansfer. You would properly really notice it with one query and a small table. But one a buzy database with large record sets it can consume a lot of time. Ries From ernst at cron-it.de Fri Jul 18 20:56:35 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Fri, 18 Jul 2008 20:56:35 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: ries van Twisk wrote: on 18.07.2008 19:09: > > On Jul 18, 2008, at 10:57 AM, Ernesto Baschny [cron IT] wrote: > >> ries van Twisk wrote: on 18.07.2008 16:35: >>> >>> On Jul 18, 2008, at 9:14 AM, Martin Kutschker wrote: >>> ........ >>> >> >> I don't think that mysql_num_rows will be processed "client side". The >> data sets won't even be retrieved if you just do a select followed by >> mysql_num_rows. It is probably more expensive than count(*), but I >> cannot imagine that it is *that* much faster. >> >> I recall that mysql has a shortcut in the special case "COUNT(*) FROM >>
    " (without a "WHERE"), because it will consult the MYD headers >> for the amount of rows and not even load indexes to do the dirty work. >> So this is of course the easiest to do. >> >> But as in TYPO3 almost on all queries you will have to include >> enableFields, I figure that MySQL will have to touch indexes anyway so >> it shouldn't matter that much. >> >> Cheers, >> Ernesto >> _______________________________________________ > > Hey Ernesto, > > From reading the docs about mysql_num_rows : "Retrieves the number of > rows from a result set." > > That means that the result set was already transfered to PHP's API and > there you lose performance because > of the data treansfer. You would properly really notice it with one > query and a small table. > But one a buzy database with large record sets it can consume a lot of > time. A result set is not "data" but just a pointer to some structure on the server which can be be used to retrieved data with the "fetch" commands. The data is not pre-fetched by mysql or the client. Cheers, Ernesto From typo3 at rvt.dds.nl Fri Jul 18 21:39:36 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Fri, 18 Jul 2008 14:39:36 -0500 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: On Jul 18, 2008, at 1:56 PM, Ernesto Baschny [cron IT] wrote: >> ...... >> Hey Ernesto, >> >> From reading the docs about mysql_num_rows : "Retrieves the number of >> rows from a result set." >> >> That means that the result set was already transfered to PHP's API >> and >> there you lose performance because >> of the data treansfer. You would properly really notice it with one >> query and a small table. >> But one a buzy database with large record sets it can consume a lot >> of >> time. > > A result set is not "data" but just a pointer to some structure on the > server which can be be used to retrieved data with the "fetch" > commands. > The data is not pre-fetched by mysql or the client. > > Cheers, > Ernesto If you look at the PHP's code that directly calls libmysql. Then libmysql get's the number of records from it's internal dataset here: http://leithal.cool-tools.co.uk/sourcedoc/mysql509/html/mysql_8h-source.html#l00278 see : st_mysql_res From this function : http://leithal.cool-tools.co.uk/sourcedoc/mysql509/html/mysql_8h.html#a90 mysql_query(..) calls mysql_real_query(...) http://leithal.cool-tools.co.uk/sourcedoc/mysql509/html/mysql_8h.html#a113 then read_query_result is called to fetch all data into memory from the mysql server see here : http://leithal.cool-tools.co.uk/sourcedoc/mysql509/html/mysql_8h.html#a115 So that means it's not a cursor or anything but the whole dataset is wetched into lib_mysql and mysql_num_rows simply reads a value from it's internal array and doesn't call the server, nor mysql_fetch_row calls the server to get data from the server. It's all memmory based in libmysql. Ries From ernst at cron-it.de Fri Jul 18 21:56:49 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Fri, 18 Jul 2008 21:56:49 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: ries van Twisk wrote: on 18.07.2008 21:39: >> A result set is not "data" but just a pointer to some structure on the >> server which can be be used to retrieved data with the "fetch" commands. >> The data is not pre-fetched by mysql or the client. > If you look at the PHP's code that directly calls libmysql. > > Then libmysql get's the number of records from it's internal dataset here: > (...) > then read_query_result is called to fetch all data into memory from the > mysql server > see here : > http://leithal.cool-tools.co.uk/sourcedoc/mysql509/html/mysql_8h.html#a115 > > So that means it's not a cursor or anything but the whole dataset is > wetched into lib_mysql and mysql_num_rows > simply reads a value from it's internal array and doesn't call the > server, nor mysql_fetch_row calls the server > to get data from the server. It's all memmory based in libmysql. Oh my gosh, you are right. Thanks for pointing that out! Cheers, Ernesto From Christopher at temporaryforwarding.com Sat Jul 19 18:45:49 2008 From: Christopher at temporaryforwarding.com (Christopher) Date: Sat, 19 Jul 2008 18:45:49 +0200 Subject: [TYPO3-dev] cc_awstats: Substition for escapeshellcmd and passthru needed Message-ID: Hi guys, I am using cc_awstats and have a problem with it: The extension contains the following code: if (!t3lib_div::GPvar(dbg)) { passthru($perl.' '.$this->MCONF['awstatsFullDir'].$this->MCONF['awstatsScript'].escapeshellcmd ($parameter), $retval); } (found in typo3conf/ext/cc_awstats/mod1/index.php on line 272) On my server passthru and escapeshellcmd are deactivated (which I cannot change). How can I change the above lines so that it works anyway? Christopher From masi-no at spam-typo3.org Sat Jul 19 18:56:08 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sat, 19 Jul 2008 18:56:08 +0200 Subject: [TYPO3-dev] cc_awstats: Substition for escapeshellcmd and passthru needed In-Reply-To: References: Message-ID: Christopher schrieb: > Hi guys, > > I am using cc_awstats and have a problem with it: > > The extension contains the following code: > if (!t3lib_div::GPvar(dbg)) { > passthru($perl.' > '.$this->MCONF['awstatsFullDir'].$this->MCONF['awstatsScript'].escapeshellcmd > ($parameter), $retval); > } > (found in typo3conf/ext/cc_awstats/mod1/index.php on line 272) > > On my server passthru and escapeshellcmd are deactivated (which I cannot > change). > How can I change the above lines so that it works anyway? If the admin deactivated these function he probably has deactivated all execution of binaries for PHP. Masi From Christopher at temporaryforwarding.com Sat Jul 19 19:03:27 2008 From: Christopher at temporaryforwarding.com (Christopher) Date: Sat, 19 Jul 2008 19:03:27 +0200 Subject: [TYPO3-dev] cc_awstats: Substition for escapeshellcmd and passthru needed References: Message-ID: Hi Masi, "Martin Kutschker" schrieb im Newsbeitrag news:mailman.1.1216486566.31760.typo3-dev at lists.netfielders.de... > Christopher schrieb: >> Hi guys, >> >> I am using cc_awstats and have a problem with it: >> >> The extension contains the following code: >> if (!t3lib_div::GPvar(dbg)) { >> passthru($perl.' >> '.$this->MCONF['awstatsFullDir'].$this->MCONF['awstatsScript'].escapeshellcmd >> ($parameter), $retval); >> } >> (found in typo3conf/ext/cc_awstats/mod1/index.php on line 272) >> >> On my server passthru and escapeshellcmd are deactivated (which I cannot >> change). >> How can I change the above lines so that it works anyway? > > If the admin deactivated these function he probably has deactivated all > execution of binaries for PHP. No, I can use exec instead of passthru, but is there a difference so that it won't work correctly afterwards? I can neither use escapeshellcmd nor escapeshellarg. Leaving this out would be insecure I fear? Christopher From masi-no at spam-typo3.org Sat Jul 19 20:27:35 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sat, 19 Jul 2008 20:27:35 +0200 Subject: [TYPO3-dev] cc_awstats: Substition for escapeshellcmd and passthru needed In-Reply-To: References: Message-ID: Christopher schrieb: > Hi Masi, > > "Martin Kutschker" schrieb im Newsbeitrag > news:mailman.1.1216486566.31760.typo3-dev at lists.netfielders.de... >> Christopher schrieb: >>> Hi guys, >>> >>> I am using cc_awstats and have a problem with it: >>> >>> The extension contains the following code: >>> if (!t3lib_div::GPvar(dbg)) { >>> passthru($perl.' >>> '.$this->MCONF['awstatsFullDir'].$this->MCONF['awstatsScript'].escapeshellcmd >>> ($parameter), $retval); >>> } >>> (found in typo3conf/ext/cc_awstats/mod1/index.php on line 272) >>> >>> On my server passthru and escapeshellcmd are deactivated (which I cannot >>> change). >>> How can I change the above lines so that it works anyway? >> If the admin deactivated these function he probably has deactivated all >> execution of binaries for PHP. > > No, I can use exec instead of passthru, Braindead setup! > but is there a difference so that it > won't work correctly afterwards? Did you care to read the PHP docs? Without looking at cc_awstats I would say you can replace safely > I can neither use escapeshellcmd nor escapeshellarg. Leaving this out would > be insecure I fear? No. It's here only used so that you don't have to worry if you need to worry that one of the generated options triggers some shell features. AFAIR the compiled shell command is simple and as the passed args are only domain names or file names you can do without escaping. If you don't like this you can write your own implementation in PHP. Masi From fsuter at cobweb.ch Sat Jul 19 21:50:40 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Sat, 19 Jul 2008 21:50:40 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Hi, I'm back. > http://typo3.org/development/sponsoring/list-of-sponsored-projects/ Thanks for putting up the notice. I just removed it. Cheers -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From fsuter at cobweb.ch Sat Jul 19 22:08:53 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Sat, 19 Jul 2008 22:08:53 +0200 Subject: [TYPO3-dev] New opportunities with sponsored projects In-Reply-To: References: Message-ID: Hi Stig, I'm copying/moving this discussion to typo3.sponsoring, because it is more related to the sponsoring itself than to the development opportunities. > It doesn't seem like that there is much progress collecting money for > these projects. (unless the page isn't updated?) > http://typo3.org/development/sponsoring/list-of-sponsored-projects/ To be honest, there was no progress indeed during those 2 weeks. I suppose a lot of reasons can be found... > I don't think it's because that the community don't want to support > these projects. But I guess that that many people only want to pay if > the project actually gets started, - or they can get their money back if > the project will not get started because of insufficient money. That may be one reason indeed. Another reason is that for the moment the projects were announced only via the news or the mailing lists. I intend to take more personal contacts with known TYPO3 agencies but this takes time :-) Another reason may be that agencies or users don't see the benefits of the first proposed projects. Maybe they are ready to invest money but in other features (although no one sent suggestions yet). > If there is no real progress in the near future, I suggest to consider > fundable.com. The idea behind fundable is a good one and is pretty well-known actually. For example many small-press business use that. We could try to do it ourselves without collecting any money, just pledges, with the risk (rather minimal I think in a community such as ours) that pledges get reneged when it's time to pay up. Thanks for sharing your thoughts and let the discussion continue. -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From fudriot at omic.ch Sat Jul 19 22:22:30 2008 From: fudriot at omic.ch (Fabien Udriot) Date: Sat, 19 Jul 2008 22:22:30 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Hi, Funny, I did recently some research about this topic. :) First hint: Innodb is *not* slow for ALL COUNT(*) queries but only for very specific case of COUNT(*) query without WHERE clause. http://www.mysqlperformanceblog.com/2006/12/01/count-for-innodb-tables/ Second hint: In MySQL there is an option to get "automatically" the number of row in one request. This is convenient in a page browser when using a LIMIT. e.g. SELECT SQL_CALC_FOUND_ROWS firstName, lastName FROM my_table LIMIT 10 SELECT FOUND_ROWS() However, I was wondering whether the performance is improved this way as there is only one request sent to MySQL instead of 2. It appears no. http://www.mysqlperformanceblog.com/2007/08/28/to-sql_calc_found_rows-or-not-to-sql_calc_found_rows/ From the article: "It is much faster to use two separate queries instead of one with SQL_CALC_FOUND_ROWS. you send 2 requests to MySQL: one for getting the records, the other is for counting" Have a nice weekend, Fabien Ernesto Baschny [cron IT] a ?crit : > ries van Twisk wrote: on 18.07.2008 21:39: > >>> A result set is not "data" but just a pointer to some structure on the >>> server which can be be used to retrieved data with the "fetch" commands. >>> The data is not pre-fetched by mysql or the client. > >> If you look at the PHP's code that directly calls libmysql. >> >> Then libmysql get's the number of records from it's internal dataset >> here: > > (...) >> then read_query_result is called to fetch all data into memory from >> the mysql server >> see here : >> http://leithal.cool-tools.co.uk/sourcedoc/mysql509/html/mysql_8h.html#a115 >> >> >> So that means it's not a cursor or anything but the whole dataset is >> wetched into lib_mysql and mysql_num_rows >> simply reads a value from it's internal array and doesn't call the >> server, nor mysql_fetch_row calls the server >> to get data from the server. It's all memmory based in libmysql. > > Oh my gosh, you are right. Thanks for pointing that out! > > Cheers, > Ernesto From jigal at xs4all.nl Sun Jul 20 12:37:31 2008 From: jigal at xs4all.nl (Jigal van Hemert) Date: Sun, 20 Jul 2008 12:37:31 +0200 Subject: [TYPO3-dev] External DB connection inside an extension ? In-Reply-To: References: Message-ID: Very late reply; finally catching up with loads of e-mail :-) Dmitry Dulepov [typo3] wrote: > Stephane wrote: >> Then, in my extension, I open a new connection to my external db >> via mysql_connect command. I'm able to get all necessaries datas >> with queries ... no problem .. until here. >> >> The problem come just after. After this mysql_query on external db, >> I don't know why but I lost the connection to Typo3 db :(. > > This happens in PHP if you use the same user name and password to > different databases. PHP just selects another database and reuses the > same connections. Normally each database must have its own user. There is a fourth (and fifth) parameter for mysql_connect(): resource mysql_connect ([ string $server [, string $username [, string $password [, bool $new_link [, int $client_flags ]]]]] ) If you set $new_link to TRUE, it will force a new connection even if the same server + username + password are used. No need to reconnect the TYPO3_DB again :-) -- Jigal van Hemert. From dmitry at typo3.org Sun Jul 20 13:51:00 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Sun, 20 Jul 2008 14:51:00 +0300 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > i tested this and it makes no difference > COUNT(*) or COUNT(field) is internally the same There is a difference if you use different storage engines. MyISAM works best with COUNT(*) because it stores counter separately. But COUNT(uid) will not use this counter but count all uids using index. At least it worked this way in MySQL 4. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/nominate_me_as_typo3_mvp/ From jigal at xs4all.nl Sun Jul 20 14:19:35 2008 From: jigal at xs4all.nl (Jigal van Hemert) Date: Sun, 20 Jul 2008 14:19:35 +0200 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] wrote: > Steffen Kamper wrote: >> i tested this and it makes no difference >> COUNT(*) or COUNT(field) is internally the same > > There is a difference if you use different storage engines. MyISAM works best with COUNT(*) because it stores counter separately. But COUNT(uid) will not use this counter but count all uids using index. At least it worked this way in MySQL 4. > MyISAM can only use the internal counter if there is no WHERE, etc. InnoDB has no internal record counter and is often much slower with COUNT(*). Because you often use hidden=0 and/or deleted=0 and/or disabled=0 you have to rely on the table designer having made the right indexes :-) The query cache can help if the table data doesn't change very often. Otherwise you might want to cache the result of the count. Ask yourself if it is really necessary to see accurate, real time data. -- Jigal van Hemert. From dmitry at typo3.org Sun Jul 20 15:56:30 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Sun, 20 Jul 2008 16:56:30 +0300 Subject: [TYPO3-dev] Tip: use SQL function COUNT(*) In-Reply-To: References: Message-ID: Hi! Jigal van Hemert wrote: > MyISAM can only use the internal counter if there is no WHERE, etc. > InnoDB has no internal record counter and is often much slower with > COUNT(*). The SQL statements above were without WHERE. I answered that case. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/nominate_me_as_typo3_mvp/ From tapio.markula at xetpoint.fi Mon Jul 21 14:01:41 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Mon, 21 Jul 2008 15:01:41 +0300 Subject: [TYPO3-dev] Sorting 'random' Message-ID: Hi Does Typo3 support as build somewhat random sorting of pages? Any existing plugin, which use random sorting? From info at sk-typo3.de Mon Jul 21 14:35:49 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Mon, 21 Jul 2008 14:35:49 +0200 Subject: [TYPO3-dev] Sorting 'random' In-Reply-To: References: Message-ID: Tapio Markula schrieb: > Hi > > Does Typo3 support as build somewhat random sorting of pages? > Any existing plugin, which use random sorting? Hi Tapio, have a look at wizard_sortpages. You may extend it. Built in sorting: Page title Subtitle Change-time Create-time Reverse current order vg Steffen From tapio.markula at xetpoint.fi Mon Jul 21 17:33:19 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Mon, 21 Jul 2008 18:33:19 +0300 Subject: [TYPO3-dev] Sorting 'random' In-Reply-To: References: Message-ID: Steffen Kamper kirjoitti: > Tapio Markula schrieb: >> Hi >> >> Does Typo3 support as build somewhat random sorting of pages? >> Any existing plugin, which use random sorting? > > Hi Tapio, > > have a look at wizard_sortpages where defined? . You may extend it. > Built in sorting: > Page title > Subtitle > Change-time > Create-time > > Reverse current order Endeed reordering in *subtree* might be difficult - final menuarray should be modified with some principle - maybe using for a page new field 'randomize'. Where to start? I didn't found a suitable hook in the class.tslib_menu.php If needed a userfunction, is there any way to keep existing menuarray and modify it just partially. From info at sk-typo3.de Mon Jul 21 21:24:14 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Mon, 21 Jul 2008 21:24:14 +0200 Subject: [TYPO3-dev] Sorting 'random' In-Reply-To: References: Message-ID: Tapio Markula schrieb: Tapio Markula schrieb: > Steffen Kamper kirjoitti: >> Tapio Markula schrieb: >>> Hi >>> >>> Does Typo3 support as build somewhat random sorting of pages? >>> Any existing plugin, which use random sorting? >> >> Hi Tapio, >> >> have a look at wizard_sortpages > > where defined? > typo3/sysext/wizard_sortpages/class.tx_wizardsortpages_webfunc_2.php all is there, have a look inside. vg Steffen From ben at wulf.nl Mon Jul 21 21:35:06 2008 From: ben at wulf.nl (Ben van Kruistum) Date: Mon, 21 Jul 2008 21:35:06 +0200 Subject: [TYPO3-dev] insertData feature in TS breaks Front end editing Message-ID: Hello Listreaders! Today I was practicing with some typoscript and front end editing. At a given point the "hide" and "delete" features for front end editing didn't work anymore. When I click one of those buttons the javascript confirm fired but the actions didn't. Looking into the source code the onclick attribute in the href was set but incomplete. something like onclick="if(confirm('are you sure?')) return false;" so the piece of script that submits the form was gone. Eventually it turned out that when setting page.stdWrap.insertData = 1 in my TS this problem occured. Digging into the code I found the function insertData in class.tslib_content.php that causes it. This function replaces all text between curly braces with a match from the original value. So normally it expects {field:title} and the results from this is used, javascript functions that are parsed through this function are also affected resulting in the given problem above (All javascript code between curly braces is removed). I don't know if it is recommended to use page.stdWrap.insertData, in my case it was only for some quick and dirty tests, but I could imagine that I could have used it for same reason somewhere else. Ben. From dmitry at typo3.org Mon Jul 21 21:38:12 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Mon, 21 Jul 2008 22:38:12 +0300 Subject: [TYPO3-dev] insertData feature in TS breaks Front end editing In-Reply-To: References: Message-ID: Hi! Ben van Kruistum wrote: > Eventually it turned out that when setting page.stdWrap.insertData = 1 > in my TS this problem occured. Digging into the code I found the > function insertData in class.tslib_content.php that causes it. This > function replaces all text between curly braces with a match from the > original value. So normally it expects {field:title} and the results > from this is used, javascript functions that are parsed through this > function are also affected resulting in the given problem above (All > javascript code between curly braces is removed). You do not need to digg to the source code. Everything is perfectly described in TSRef on typo3.org. > I don't know if it is recommended to use page.stdWrap.insertData, in my > case it was only for some quick and dirty tests, but I could imagine > that I could have used it for same reason somewhere else. Short answer: if you use something, you should know why you are doing it. If you just randomly pressing buttons, once you can press a big red one... -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/nominate_me_as_typo3_mvp/ From ben at wulf.nl Mon Jul 21 23:08:17 2008 From: ben at wulf.nl (Ben van Kruistum) Date: Mon, 21 Jul 2008 23:08:17 +0200 Subject: [TYPO3-dev] insertData feature in TS breaks Front end editing References: Message-ID: "Dmitry Dulepov [typo3]" schreef in bericht news:mailman.1.1216669092.12933.typo3-dev at lists.netfielders.de... > Hi! > > Ben van Kruistum wrote: >> Eventually it turned out that when setting page.stdWrap.insertData = 1 in >> my TS this problem occured. Digging into the code I found the function >> insertData in class.tslib_content.php that causes it. This function >> replaces all text between curly braces with a match from the original >> value. So normally it expects {field:title} and the results from this is >> used, javascript functions that are parsed through this function are also >> affected resulting in the given problem above (All javascript code >> between curly braces is removed). > > You do not need to digg to the source code. Everything is perfectly > described in TSRef on typo3.org. > >> I don't know if it is recommended to use page.stdWrap.insertData, in my >> case it was only for some quick and dirty tests, but I could imagine that >> I could have used it for same reason somewhere else. > > Short answer: if you use something, you should know why you are doing it. > If you just randomly pressing buttons, once you can press a big red one... Hi Dmitry, First thanks for your appearance in the netherlands on the typo3 userday in Utrecht :-) and for your reply. Secondly, maybe I did not explain myself correctly so here I'll try it again: I want to use a wrapper for the content page. page = PAGE page.stdWrap.insertData = 1 page.stdWrap.wrap =

    {field:title}

    | page.10 < styles.content.get If I use the above Typoscript and also use Frontend editing admPanel.override { edit = 1 edit.displayIcons = 1 } then the buttons for hiding or deleting are not working anymore cause some javascript code is removed due the insertData() function. So this is all straight forward Typoscript, but this combination breaks down front end editing. Hopefully this describes my point better.. Ben. > > -- > Dmitry Dulepov > TYPO3 Core team > More about TYPO3: http://typo3bloke.net/ > Subscribe: http://typo3bloke.net/rss.xml > Latest article: > http://typo3bloke.net/post-details/nominate_me_as_typo3_mvp/ From dmitry at typo3.org Tue Jul 22 09:22:30 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 22 Jul 2008 10:22:30 +0300 Subject: [TYPO3-dev] insertData feature in TS breaks Front end editing In-Reply-To: References: Message-ID: Hi! Ben van Kruistum wrote: > First thanks for your appearance in the netherlands on the typo3 userday > in Utrecht :-) and for your reply. ;) Btw, slides from productivity session are now available here: http://www.slideshare.net/dulepov/personal-productivity/ I did not expect that it will be featured on home page by SlideShare team. > Secondly, maybe I did not explain myself correctly so here I'll try it > again: > > I want to use a wrapper for the content page. > > page = PAGE > page.stdWrap.insertData = 1 > page.stdWrap.wrap =

    {field:title}

    | > page.10 < styles.content.get > > If I use the above Typoscript and also use Frontend editing > > admPanel.override { > edit = 1 > edit.displayIcons = 1 > } > > then the buttons for hiding or deleting are not working anymore cause > some javascript code is removed due the insertData() function. > So this is all straight forward Typoscript, but this combination breaks > down front end editing. > > Hopefully this describes my point better.. Yes, now I see :) page.stdWrap works for the whole page. Or, more precise, it works on the whole page content. Therefore insertData will look for {} in the whole content. I think you actually looking for one of these two: page.stdWrap.dataWrap =

    {field:title}

    | or page.5 = TEXT page.5.dataWrap =

    {field:title}

    The second one looks better and more optimal from memory usage view (it does not have to copy the whole content inside dataWrap). The first one is different from insertData because it inserts data only to the string you specify (not to the wrapped content). -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/slides_from_productivity_session/ From michael at typo3.org Tue Jul 22 08:15:05 2008 From: michael at typo3.org (Michael Stucki) Date: Tue, 22 Jul 2008 08:15:05 +0200 Subject: [TYPO3-dev] pageNotFound_handling = false doesn't seem work References: Message-ID: Hi Christoph, quite old mail, but probably the issue still exists(?) > I've been working with the pageNotFound_handling and found a problem. > The description says that a value of false make it go to the nearest > page that is found. However, that doesn't work for me and I don't seem > to find code for that feature inside the pageErrorHandler method > inside tslib_fe. > > I may be missing something fundamental, but if I am, I can't figure > out what :) Can you please check if the value was written to localconf.php as a string or as a boolean? If so that is a bug which I'm going to fix - see similar handling for "TRUE" in t3lib/config_default.php. - michael -- Use a newsreader! Check out http://typo3.org/community/mailing-lists/use-a-news-reader/ From prateek at srijan.in Tue Jul 22 10:15:49 2008 From: prateek at srijan.in (prateek sharma) Date: Tue, 22 Jul 2008 13:45:49 +0530 Subject: [TYPO3-dev] TE Openemm_Newsletter plugin related query Message-ID: Hi all, > Very good afternoon all,I want a help regarding one plugin which > is TE Openemm_Newsletter plugin.I am trying to implement this plugin in my > dummy site. So,i have install it in my dummy website and also install all > needed dependencies related to this plugin and also i have saved > OpenEMM-5.5.0 from www.openemm.org in my local > machine. Now i dont know ,how to use this openEMM-5.5.0 to my dummy website > and also dont know the further procedure. Sir i've also find the procedure > for implementing this in typo3.org site but I didn't > find the procedure in that site.So anyone please help me in this topic.I am > waiting for your response. Regards, Prateek From tapio.markula at xetpoint.fi Tue Jul 22 10:33:55 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Tue, 22 Jul 2008 11:33:55 +0300 Subject: [TYPO3-dev] Sorting 'random' In-Reply-To: References: Message-ID: Steffen Kamper kirjoitti: > Tapio Markula schrieb: > Tapio Markula schrieb: >> Steffen Kamper kirjoitti: >>> Tapio Markula schrieb: >>>> Hi >>>> >>>> Does Typo3 support as build somewhat random sorting of pages? >>>> Any existing plugin, which use random sorting? >>> >>> Hi Tapio, >>> >>> have a look at wizard_sortpages >> >> where defined? >> > > typo3/sysext/wizard_sortpages/class.tx_wizardsortpages_webfunc_2.php > > all is there, have a look inside. in fact setting 'rand()' is enough - for some reason tt_content.menu.20.2.special=directory tt_content.menu.20.2.special.value=1 [PIDinRootline=5] tt_content.menu.20.2.2.alternativeSortingField = rand() tt_content.menu.20.2.2.itemArrayProcFunc = user_itemArrayProcFunc [global] didn't work - I mean the condition PID... but this not a big problem From christoph.koehler at gmail.com Tue Jul 22 15:41:04 2008 From: christoph.koehler at gmail.com (Christoph Koehler) Date: Tue, 22 Jul 2008 13:41:04 +0000 (UTC) Subject: [TYPO3-dev] pageNotFound_handling = false doesn't seem work References: Message-ID: In article Michael Stucki wrote: > Hi Christoph, > quite old mail, but probably the issue still exists(?) >> I've been working with the pageNotFound_handling and found a >> problem. The description says that a value of false make it go to >> the nearest page that is found. However, that doesn't work for me >> and I don't seem to find code for that feature inside the >> pageErrorHandler method inside tslib_fe. >> >> I may be missing something fundamental, but if I am, I can't >> figure out what :) > Can you please check if the value was written to localconf.php as a > string or as a boolean? If so that is a bug which I'm going to fix - > see similarhandling for "TRUE" in t3lib/config_default.php. Michael, It's indeed saved as a string. Thanks! Christoph -- I'm using an evaluation license of nemo since 406 days. You should really try it! http://www.malcom-mac.com/nemo From franz at fholzinger.com Tue Jul 22 17:11:40 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Tue, 22 Jul 2008 17:11:40 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records Message-ID: Hello, I have inserted more than 1 million records into one sysfolder by an import script. Now I want to see it in the list module ot TYPO3 4.2.1. However the list module hangs and shows a timeout message of the browser. Should it be possible to use the list module with many records? Franz From dosipov at phillyburbs.com Tue Jul 22 17:25:58 2008 From: dosipov at phillyburbs.com (Dan Osipov) Date: Tue, 22 Jul 2008 11:25:58 -0400 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: It certainly must be possible to use it, regardless of the number of records. Does it display a PHP timeout error? if so what line? What DB are you using? Dan Osipov Calkins Media http://danosipov.com/blog/ Franz Holzinger wrote: > Hello, > > I have inserted more than 1 million records into one sysfolder by an > import script. Now I want to see it in the list module ot TYPO3 4.2.1. > However the list module hangs and shows a timeout message of the > browser. Should it be possible to use the list module with many records? > > Franz From franz at fholzinger.com Tue Jul 22 17:30:09 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Tue, 22 Jul 2008 17:30:09 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Dan Osipov a ?crit : > It certainly must be possible to use it, regardless of the number of > records. Does it display a PHP timeout error? if so what line? What DB > are you using? After a time it shows the normal browser timeout error if a page is not found. It is with MySQL. Franz From tapio.markula at xetpoint.fi Tue Jul 22 19:23:55 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Tue, 22 Jul 2008 20:23:55 +0300 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Franz Holzinger kirjoitti: > Hello, > > I have inserted more than 1 million records into one sysfolder by an > import script. Now I want to see it in the list module ot TYPO3 4.2.1. > However the list module hangs and shows a timeout message of the > browser. Should it be possible to use the list module with many records? there is some limit because server must generate much HTML code. I found the problem with kj_recycler - if there is too much code to generate, it certainly hangs. List module shows each records normally 20 on view - that should not cause hanging problems with huge quantity of records because they are not show all in the same view. From dmitry at typo3.org Tue Jul 22 19:58:21 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 22 Jul 2008 20:58:21 +0300 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > I have inserted more than 1 million records into one sysfolder by an > import script. Now I want to see it in the list module ot TYPO3 4.2.1. > However the list module hangs and shows a timeout message of the > browser. Should it be possible to use the list module with many records? I heard about such thing but I was not able to reproduce it. List module normally displays a small number of record. Isn't it the case for you? -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/howto_use_frontend_user_data_in_a_typo3_mailform/ From franz at fholzinger.com Tue Jul 22 21:11:34 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Tue, 22 Jul 2008 21:11:34 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] a ?crit : > > I heard about such thing but I was not able to reproduce it. List module > normally displays a small number of record. Isn't it the case for you? I have 22 tables with about 1 million records for each of them. And there additionally many mm tables with also 1 million records for each. So I have moved 1 million records by changing the pid to 1 to page below the root page using phpMyAdmin. This gets shown now after some time of loading. The record browser has [21 - 1665226] at the end. This means that 20 records are displayed and you must sequentially browse to the other million. So it works to display 1 million records, but not if there are many tables with so many records. How can I check the number of displayed lines on the sysfolder which I cannot display? Franz From mail-spam at ringerge.org Tue Jul 22 21:26:33 2008 From: mail-spam at ringerge.org (Georg Ringer) Date: Tue, 22 Jul 2008 21:26:33 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Franz Holzinger wrote: > I have inserted more than 1 million records into one sysfolder by an > import script. Now I want to see it in the list module ot TYPO3 4.2.1. Sorry for being a smartass but you dont wanna really look at 1.000.000 lines of any record type or 1.000.000 lines of code or whatever (besides ? 1.000.000)? It is like loading 10.000 kg on a Smart and asking in a forum why the damn car isn't driving anymore. Anyway there is an ext in TER which enables a kind of pagination in the list view, I just don't find it right now. Georg From tapio.markula at xetpoint.fi Tue Jul 22 21:37:10 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Tue, 22 Jul 2008 22:37:10 +0300 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Georg Ringer kirjoitti: > Franz Holzinger wrote: >> I have inserted more than 1 million records into one sysfolder by an >> import script. Now I want to see it in the list module ot TYPO3 4.2.1. > > Sorry for being a smartass but you dont wanna really look at 1.000.000 > lines of any record type or 1.000.000 lines of code or whatever (besides > ? 1.000.000)? It is like loading 10.000 kg on a Smart and asking in a > forum why the damn car isn't driving anymore. > > Anyway there is an ext in TER which enables a kind of pagination in the > list view, I just don't find it right now. > > > Georg pagination support is added to tm_contentaccess - basically the same as in stand alone plugin, which does only that issue. From typo3 at rvt.dds.nl Tue Jul 22 21:43:28 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Tue, 22 Jul 2008 14:43:28 -0500 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: On Jul 22, 2008, at 2:26 PM, Georg Ringer wrote: > Franz Holzinger wrote: >> I have inserted more than 1 million records into one sysfolder by an >> import script. Now I want to see it in the list module ot TYPO3 >> 4.2.1. > > Sorry for being a smartass but you dont wanna really look at 1.000.000 > lines of any record type or 1.000.000 lines of code or whatever > (besides > ? 1.000.000)? It is like loading 10.000 kg on a Smart and asking in a > forum why the damn car isn't driving anymore. I thought we always compared TYPO3 with a Boing 747? see (http://www.google.com/search?hl=en&safe=off&client=safari&rls=en-us&q=TYPO3+%22boing+747%22&btnG=Search ) Since a 747-100 has a payload of 112000Kg which makes me believe that 1mil records should be easy to handle??? just kidding.... Ries From franz at fholzinger.com Tue Jul 22 21:46:03 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Tue, 22 Jul 2008 21:46:03 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Georg Ringer a ?crit : > Franz Holzinger wrote: >> I have inserted more than 1 million records into one sysfolder by an >> import script. Now I want to see it in the list module ot TYPO3 4.2.1. > > Sorry for being a smartass but you dont wanna really look at 1.000.000 > lines of any record type or 1.000.000 lines of code or whatever (besides > ? 1.000.000)? It is like loading 10.000 kg on a Smart and asking in a > forum why the damn car isn't driving anymore. No, I do not want to show all records. It should only use 20 out of 1 million, or totally a maximum of 300 records. This should not be too much for the TYPO3 backend record list view. It should not be necessary that this takes so much time. Franz From dmitry at typo3.org Tue Jul 22 22:04:08 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 22 Jul 2008 23:04:08 +0300 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > I have 22 tables with about 1 million records for each of them. And > there additionally many mm tables with also 1 million records for each. > > So I have moved 1 million records by changing the pid to 1 to page below > the root page using phpMyAdmin. This gets shown now after some time of > loading. The record browser has [21 - 1665226] at the end. This means > that 20 records are displayed and you must sequentially browse to the > other million. A quick question: how long does it take to run a query on such a long table with "WHERE pid=1 AND deleted=0 ORDER BY crdate DESC LIMIT 21,20"? May be [missing] indexes is a problem? Try adding composite index on pid and sorting column (sorting column last!) and see if it helps. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/howto_use_frontend_user_data_in_a_typo3_mailform/ From franz at fholzinger.com Tue Jul 22 22:10:52 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Tue, 22 Jul 2008 22:10:52 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Franz Holzinger a ?crit : > So I have moved 1 million records by changing the pid to 1 to page below > the root page using phpMyAdmin. This gets shown now after some time of > loading. The record browser has [21 - 1665226] at the end. This means > that 20 records are displayed and you must sequentially browse to the > other million. I have now moved some tables having 1 millions records to page 1 where only 20 records of a table are shown. It takes endlessly long (many minutes) to display the list module or maybe it ends up in a browser timeout message. ---------------------- ? www.my-home-page-00232.com ? a ferm? la connexion. Le serveur a ferm? la connexion avant qu'aucune donn?e n'ait pu ?tre lue. Le serveur est peut-?tre occup? ou vous avez un probl?me de connexion. Essayez ? nouveau plus tard. Il existe peut-?tre une ancienne version de la page que vous d?sirez : * dans le cache de Google * dans Internet Archives ------------------------- The list module is not usable with many tables containing more than 1 million records. Franz From franz at fholzinger.com Tue Jul 22 22:28:18 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Tue, 22 Jul 2008 22:28:18 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] a ?crit : > A quick question: how long does it take to run a query on such a long > table with "WHERE pid=1 AND deleted=0 ORDER BY crdate DESC LIMIT 21,20"? 31.4553 sec. on a dual core AMD Athlon 3700 with phpMyAdmin. > May be [missing] indexes is a problem? Try adding composite index on pid > and sorting column (sorting column last!) and see if it helps. There are already keys: PRIMARY PRIMARY 1665226 uid parent INDEX pid Now I create an index on deleted. This has unfortunately timed out in phpMyAdmin :-( . So you cannot even create an index afterwards with this tool. Franz From dmitry at typo3.org Tue Jul 22 22:36:16 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 22 Jul 2008 23:36:16 +0300 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > Dmitry Dulepov [typo3] a ?crit : >> May be [missing] indexes is a problem? Try adding composite index on pid >> and sorting column (sorting column last!) and see if it helps. > There are already keys: > > PRIMARY PRIMARY 1665226 uid > parent INDEX pid > > Now I create an index on deleted. This will not help. MySQL uses only one index at a time. It will not use "deleted" because pid index has much better identifying probability. You need a composite index: alter table tx_myext_table add key comp1 (pid,deleted(1),sorting) However this index may be too large. If index is too large, mysql will not use either. Try making such index and then calling "explain select * from tx_myext_table where pid=1 and deleted=0 order by sorting limit 21,20". If you do not see that it uses comp1, then you have to drop it and recreate without deleted field. > This has unfortunately timed out in phpMyAdmin :-( . Yes, it definitely will with 1000000 records. However index will be created because mysql process does not abort if phpMyAdmin does. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/howto_use_frontend_user_data_in_a_typo3_mailform/ From franz at fholzinger.com Tue Jul 22 22:37:15 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Tue, 22 Jul 2008 22:37:15 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Franz Holzinger a ?crit : > It takes endlessly long (many > minutes) to display the list module or maybe it ends up in a browser > timeout message. After the log out of the backend I use the top linux command. I can see that MYSQL still continues processing the SQL commands where the browser has timed out. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 22407 mysql 15 0 173m 53m 3760 S 17.6 2.7 794:13.66 mysqld This makes all websites on the server slower until it is finished or I kill this process. Franz From typo3 at rvt.dds.nl Tue Jul 22 23:13:48 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Tue, 22 Jul 2008 16:13:48 -0500 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: hey Franz, properly your mayor problem is the order by. Can you try this?? SELECT * FROM table WHERE pid=1 AND deleted=0 LIMIT 21,20; it should be (a lot) faster then the one with a order by. Now I don't know the list module very well, but I believe it can sort by crdate and with the sorting field. Now try this: select crdate FROM largetable group by crdate; -- Let me how may records you get select sorting FROM largetable group by sorting; -- Let me how may records you get (My best guess is you don't get a lot of records back ) Will answer again after you responded.... Ries On Jul 22, 2008, at 3:28 PM, Franz Holzinger wrote: > Dmitry Dulepov [typo3] a ?crit : > >> A quick question: how long does it take to run a query on such a long >> table with "WHERE pid=1 AND deleted=0 ORDER BY crdate DESC LIMIT >> 21,20"? > > 31.4553 sec. on a dual core AMD Athlon 3700 with phpMyAdmin. > >> May be [missing] indexes is a problem? Try adding composite index >> on pid >> and sorting column (sorting column last!) and see if it helps. > There are already keys: > > PRIMARY PRIMARY 1665226 uid > parent INDEX pid > > Now I create an index on deleted. > > This has unfortunately timed out in phpMyAdmin :-( . > So you cannot even create an index afterwards with this tool. > > Franz > > > > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev Ries van Twisk tags: Freelance TYPO3 Glassfish JasperReports JasperETL Flex Blaze-DS WebORB PostgreSQL DB-Architect email: ries at vantwisk.nl web: http://www.rvantwisk.nl/ skype: callto://r.vantwisk From ingo at typo3.org Tue Jul 22 23:40:11 2008 From: ingo at typo3.org (Ingo Renner) Date: Tue, 22 Jul 2008 23:40:11 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: ries van Twisk wrote: > I thought we always compared TYPO3 with a Boing 747? see > (http://www.google.com/search?hl=en&safe=off&client=safari&rls=en-us&q=TYPO3+%22boing+747%22&btnG=Search) > > > Since a 747-100 has a payload of 112000Kg which makes me believe that > 1mil records should be easy to handle??? just kidding.... hehe, good one! -- Ingo Renner TYPO3 Core Developer, Release Manager TYPO3 4.2 From ingo at typo3.org Wed Jul 23 00:10:38 2008 From: ingo at typo3.org (Ingo Renner) Date: Wed, 23 Jul 2008 00:10:38 +0200 Subject: [TYPO3-dev] Next TYPO3 Bug Day coming up this Friday Message-ID: Hi all, After the first TYPO3 Bug Day has been a big success the Bug Day will continue as a regular event. If you're an extension developer and never really got around the TYPO3 core, this is your chance to get insight. If you always had an annoyance that drove you crazy, then let us know. On July 25th please join us on IRC (#typo3-bugday on irc.freenode.net), where you can offer your help in fixing bugs and cleaning up the bugtracker. The core developers Ingo Renner and Benjamin Mack will be around to assist interested developers and to coordinate the event. For more information also check out the pages dedicated to TYPO3's Bug Day: http://typo3.org/development/bug-fixing/bug-day/ best Ingo -- Ingo Renner TYPO3 Core Developer, Release Manager TYPO3 4.2 From info at sk-typo3.de Wed Jul 23 01:29:49 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 23 Jul 2008 01:29:49 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Franz Holzinger schrieb: > Franz Holzinger a ?crit : > >> So I have moved 1 million records by changing the pid to 1 to page below >> the root page using phpMyAdmin. This gets shown now after some time of >> loading. The record browser has [21 - 1665226] at the end. This means >> that 20 records are displayed and you must sequentially browse to the >> other million. > > I have now moved some tables having 1 millions records to page 1 where > only 20 records of a table are shown. It takes endlessly long (many > minutes) to display the list module or maybe it ends up in a browser > timeout message. > ---------------------- > ? www.my-home-page-00232.com ? a ferm? la connexion. > > Le serveur a ferm? la connexion avant qu'aucune donn?e n'ait pu ?tre > lue. Le serveur est peut-?tre occup? ou vous avez un probl?me de > connexion. Essayez ? nouveau plus tard. > > Il existe peut-?tre une ancienne version de la page que vous d?sirez : > > > * dans le cache de Google > > * dans Internet Archives > ------------------------- > > The list module is not usable with many tables containing more than 1 > million records. > > Franz Hi, i normally use on pages with many tables and huge data this setting: mod.web_list.listOnlyInSingleTableView = 1 does that help? And sure, the sql's used in list are not optimal with huge data in tables. One question: which kind of data do you have with more than 1.000.000 records? vg Steffen From franz at fholzinger.com Wed Jul 23 08:21:26 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Wed, 23 Jul 2008 08:21:26 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: ries van Twisk a ?crit : > hey Franz, > > properly your mayor problem is the order by. > > Can you try this?? > > SELECT * FROM table WHERE pid=1 AND deleted=0 LIMIT 21,20; > > it should be (a lot) faster then the one with a order by. Yes, indeed. 0.1097 sec. But this is with additional index: deleted INDEX 1 deleted 0.0014 sec This is after the deletion of the index deleted. This is strangly much faster than with the index. Here is the normal SQL query in phpMyAdmin: Affichage des enregistrements 0 - 29 (1665226 total, traitement: 0.0014 sec.) > Now I don't know the list module very well, but I believe it can sort by > crdate and with the sorting field. > > Now try this: > > select crdate FROM largetable group by crdate; -- Let me how may records > you get Affichage des enregistrements 0 - 29 (31353 total, traitement: 4.5455 sec.) 31353 records. > select sorting FROM largetable group by sorting; -- Let me how may > records you get Affichage des enregistrements 0 - 0 (1 total, traitement: 4.2275 sec.) 1 record. Franz From franz at fholzinger.com Wed Jul 23 08:39:56 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Wed, 23 Jul 2008 08:39:56 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Steffen Kamper a ?crit : > i normally use on pages with many tables and huge data this setting: > mod.web_list.listOnlyInSingleTableView = 1 > > does that help? I have put this in Page TSConfig. But there is no difference. > And sure, the sql's used in list are not optimal with huge data in tables. It would be fine if this worked also. > One question: which kind of data do you have with more than 1.000.000 > records? products data. Franz From franz at fholzinger.com Wed Jul 23 09:11:38 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Wed, 23 Jul 2008 09:11:38 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: ries van Twisk a ?crit : > > On Jul 22, 2008, at 2:26 PM, Georg Ringer wrote: > >> Franz Holzinger wrote: >>> I have inserted more than 1 million records into one sysfolder by an >>> import script. Now I want to see it in the list module ot TYPO3 4.2.1. >> >> Sorry for being a smartass but you dont wanna really look at 1.000.000 >> lines of any record type or 1.000.000 lines of code or whatever (besides >> ? 1.000.000)? It is like loading 10.000 kg on a Smart and asking in a >> forum why the damn car isn't driving anymore. > > I thought we always compared TYPO3 with a Boing 747? see > (http://www.google.com/search?hl=en&safe=off&client=safari&rls=en-us&q=TYPO3+%22boing+747%22&btnG=Search) > > > Since a 747-100 has a payload of 112000Kg which makes me believe that > 1mil records should be easy to handle??? just kidding.... http://lists.netfielders.de/pipermail/typo3-team-hci/2006-September/000778.html http://www.typo3-welt.de/newsletter_shop_groupware.html http://support.typo3.org/general/english/m/re-typo3-pixelpark-with-open-source-typo3-17180/ From franz at fholzinger.com Wed Jul 23 09:15:56 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Wed, 23 Jul 2008 09:15:56 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Franz Holzinger a ?crit : > Steffen Kamper a ?crit : >> i normally use on pages with many tables and huge data this setting: >> mod.web_list.listOnlyInSingleTableView = 1 >> >> does that help? > > I have put this in Page TSConfig. But there is no difference. > Maybe I should have deleted the cache first. It is still slow, but the list module works. Thanks for this hint. Franz From masi-no at spam-typo3.org Wed Jul 23 09:18:15 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Wed, 23 Jul 2008 09:18:15 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Tapio Markula schrieb: > Franz Holzinger kirjoitti: >> Hello, >> >> I have inserted more than 1 million records into one sysfolder by an >> import script. Now I want to see it in the list module ot TYPO3 4.2.1. >> However the list module hangs and shows a timeout message of the >> browser. Should it be possible to use the list module with many records? > > there is some limit because server must generate much HTML code. > I found the problem with kj_recycler - if there is too much code to > generate, it certainly hangs. > > List module shows each records normally 20 on view - that should not > cause hanging problems with huge quantity of records because they are > not show all in the same view. Yes, but even with considerable less records but many tables (eg pid=0) the list module takes ages. But we shouldn't worry as a new version is on the way for 4.3. Masi From dmitry at typo3.org Wed Jul 23 09:18:36 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 23 Jul 2008 10:18:36 +0300 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > Yes, indeed. > 0.1097 sec. > But this is with additional index: > deleted INDEX 1 deleted > > 0.0014 sec > This is after the deletion of the index deleted. This is strangly much > faster than with the index. Nothing strange if you read my yesterday's explanation about indexes. I wrote yesterday that MySQl will skip to full table scan if it believes that index will not speed up query. I also explained yesterday why index on deleted is not useful at all. Nothing strange. You could speed up things already yesterday if you followed my advice on composite index. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/howto_use_frontend_user_data_in_a_typo3_mailform/ From franz at fholzinger.com Wed Jul 23 10:41:44 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Wed, 23 Jul 2008 10:41:44 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] a ?crit : > Hi! > > Franz Holzinger wrote: >> Dmitry Dulepov [typo3] a ?crit : >>> May be [missing] indexes is a problem? Try adding composite index on pid >>> and sorting column (sorting column last!) and see if it helps. >> There are already keys: >> >> PRIMARY PRIMARY 1665226 uid >> parent INDEX pid >> >> Now I create an index on deleted. > > This will not help. MySQL uses only one index at a time. It will not use > "deleted" because pid index has much better identifying probability. You > need a composite index: > > alter table tx_myext_table add key comp1 (pid,deleted(1),sorting) Votre requ?te SQL a ?t? ex?cut?e avec succ?s (traitement: 149.1525 sec.) requ?te SQL: ALTER TABLE `tx_myext_table` ADD KEY comp1( pid, deleted( 1 ) , sorting ) What is the '(1)' after 'deleted' for? Does this have an advantage? > However this index may be too large. If index is too large, mysql will > not use either. Try making such index and then calling "explain select * > from tx_myext_table where pid=1 and deleted=0 order by sorting limit > 21,20". If you do not see that it uses comp1, then you have to drop it > and recreate without deleted field. Affichage des enregistrements 0 - 0 (1 total, traitement: 4.7298 sec.) requ?te SQL: EXPLAIN SELECT * FROM tx_myext_table WHERE pid =1 AND deleted =0 ORDER BY sorting LIMIT 21, 20 Textes complets id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE tx_myext_table range parent,comp1 comp1 5 NULL 1665224 So the comp1 key is used. So back to the original SQL query with _crdate_: Affichage des enregistrements 0 - 19 (20 total, traitement: 168.3928 sec.) requ?te SQL: SELECT * FROM tx_myext_table WHERE pid =1 AND deleted =0 ORDER BY crdate DESC LIMIT 21 , 20 So it takes now 168 seconds instead of 31.4553 sec. before. This is a slowdown by factor 5 using this additional key. However using the _sorting_ field it gets very fast now (about factor of 10000): Affichage des enregistrements 0 - 19 (20 total, traitement: 0.0019 sec.) requ?te SQL: SELECT * FROM tx_myext_table WHERE pid =1 AND deleted =0 ORDER BY sorting DESC LIMIT 21 , 20 >> This has unfortunately timed out in phpMyAdmin :-( . > > Yes, it definitely will with 1000000 records. However index will be > created because mysql process does not abort if phpMyAdmin does. So we cannot stop the already started SQL processes unless with a db admin tool, even if the PHP script has been stopped. Franz From dmitry at typo3.org Wed Jul 23 11:56:58 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 23 Jul 2008 12:56:58 +0300 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > Votre requ?te SQL a ?t? ex?cut?e avec succ?s (traitement: 149.1525 sec.) > requ?te SQL: > ALTER TABLE `tx_myext_table` ADD KEY comp1( pid, deleted( 1 ) , sorting ) > > What is the '(1)' after 'deleted' for? Does this have an advantage? Yes. It makes index smaller. deleted field is only 0 or 1 but it can be as long as 11 bits in the dastabase. Setting (1) uses only 1 significant bit in the index. This is important if table is long: the smaller the index, the more chanmces that MySQL will use it instead of doing full table scan. >> However this index may be too large. If index is too large, mysql will >> not use either. Try making such index and then calling "explain select * >> from tx_myext_table where pid=1 and deleted=0 order by sorting limit >> 21,20". If you do not see that it uses comp1, then you have to drop it >> and recreate without deleted field. > > Affichage des enregistrements 0 - 0 (1 total, traitement: 4.7298 sec.) > requ?te SQL: > EXPLAIN SELECT * > FROM tx_myext_table > WHERE pid =1 > AND deleted =0 > ORDER BY sorting > LIMIT 21, 20 > > > Textes complets > id select_type table type possible_keys key key_len ref rows Extra > 1 SIMPLE tx_myext_table range parent,comp1 comp1 5 NULL 1665224 This looks good because select_type is SIMPLE. This is one of the best that you can get. > So the comp1 key is used. > > So back to the original SQL query with _crdate_: > > Affichage des enregistrements 0 - 19 (20 total, traitement: 168.3928 sec.) > requ?te SQL: > SELECT * > FROM tx_myext_table > WHERE pid =1 > AND deleted =0 > ORDER BY crdate DESC > LIMIT 21 , 20 > > So it takes now 168 seconds instead of 31.4553 sec. before. This is a > slowdown by factor 5 using this additional key. That's right because comp1 key does not have crdate. Make another similar index but include crdate instead of "sorting" and it will be fast! I did not know what sorting you have in that table, this is why I used "sorting". But make sure that crdate is the last in the index. It is very important to MySQL. Sorting field must be the last in the index. It will not help to have both sorting and crdate in one index. > However using the _sorting_ field it gets very fast now (about factor of > 10000): > > Affichage des enregistrements 0 - 19 (20 total, traitement: 0.0019 sec.) > requ?te SQL: > SELECT * > FROM tx_myext_table > WHERE pid =1 > AND deleted =0 > ORDER BY sorting DESC > LIMIT 21 , 20 > > >>> This has unfortunately timed out in phpMyAdmin :-( . >> Yes, it definitely will with 1000000 records. However index will be >> created because mysql process does not abort if phpMyAdmin does. > So we cannot stop the already started SQL processes unless with a db > admin tool, even if the PHP script has been stopped. Normally not. You can try to go to "Processes" in phpMyAdmin and kill that process but often it continues to run for some more time. And if it is "alter" or "analyze" or any other similar process, it cannot be killed. "Process" in MySQL is a thread that runs query. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/howto_use_frontend_user_data_in_a_typo3_mailform/ From franz at fholzinger.com Wed Jul 23 12:27:43 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Wed, 23 Jul 2008 12:27:43 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hello, Dmitry Dulepov [typo3] a ?crit : > Franz Holzinger wrote: >> Votre requ?te SQL a ?t? ex?cut?e avec succ?s (traitement: 149.1525 sec.) >> requ?te SQL: >> ALTER TABLE `tx_myext_table` ADD KEY comp1( pid, deleted( 1 ) , sorting ) >> >> What is the '(1)' after 'deleted' for? Does this have an advantage? > > Yes. It makes index smaller. deleted field is only 0 or 1 but it can be > as long as 11 bits in the dastabase. Setting (1) uses only 1 significant > bit in the index. This is important if table is long: the smaller the > index, the more chanmces that MySQL will use it instead of doing full > table scan. Now I have added another key: ALTER TABLE `tx_myext_table` ADD KEY comp2( pid, deleted( 1 ) , crdate) EXPLAIN SELECT * FROM tx_myext_table WHERE pid =1 AND deleted =0 ORDER BY crdate LIMIT 21 , 20 id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE tx_myext_table range parent,comp1,comp2 comp2 5 NULL 1665195 Using where > This looks good because select_type is SIMPLE. This is one of the best > that you can get. > >> So the comp1 key is used. And also comp2 key is used here now. >> So back to the original SQL query with _crdate_: >> >> Affichage des enregistrements 0 - 19 (20 total, traitement: 168.3928 >> sec.) >> requ?te SQL: >> SELECT * >> FROM tx_myext_table >> WHERE pid =1 >> AND deleted =0 >> ORDER BY crdate DESC >> LIMIT 21 , 20 >> >> So it takes now 168 seconds instead of 31.4553 sec. before. This is a >> slowdown by factor 5 using this additional key. > > That's right because comp1 key does not have crdate. Make another > similar index but include crdate instead of "sorting" and it will be > fast! I did not know what sorting you have in that table, this is why I > used "sorting". But make sure that crdate is the last in the index. It > is very important to MySQL. Sorting field must be the last in the index. > > It will not help to have both sorting and crdate in one index. With a separate key com2 it takes only 0.0019 sec instead of 31.4553 seconds before. And the query with ordering by the field 'sorting' did not at all get slower by adding another key. Franz From franz at fholzinger.com Wed Jul 23 12:46:11 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Wed, 23 Jul 2008 12:46:11 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hello, Dmitry Dulepov [typo3] a ?crit : > Franz Holzinger wrote: >> Votre requ?te SQL a ?t? ex?cut?e avec succ?s (traitement: 149.1525 sec.) >> requ?te SQL: >> ALTER TABLE `tx_myext_table` ADD KEY comp1( pid, deleted( 1 ) , sorting ) >> >> What is the '(1)' after 'deleted' for? Does this have an advantage? > > Yes. It makes index smaller. deleted field is only 0 or 1 but it can be > as long as 11 bits in the dastabase. Setting (1) uses only 1 significant > bit in the index. This is important if table is long: the smaller the > index, the more chanmces that MySQL will use it instead of doing full > table scan. Unfortunately this does not work on my local machine: ALTER TABLE `tx_myext_table` ADD KEY comp2( pid, deleted( 1 ) , crdate) MySQL a r?pondu:Documentation #1089 - Incorrect sub part key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique sub keys The local machine has MYSQL version 5.0.51a php-mysql-5.2.5. see: http://bugs.mysql.com/bug.php?id=36080 So would it be better to remove the '(1)' again from the field 'deleted' inside of this key? ALTER TABLE `tx_onix_products` ADD KEY comp2( pid, deleted, crdate ) This works also in MYSQL 5.0. Franz From dmitry at typo3.org Wed Jul 23 12:58:46 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 23 Jul 2008 13:58:46 +0300 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Franz Holzinger wrote: > So would it be better to remove the '(1)' again from the field 'deleted' > inside of this key? Yes, feel free to do it. I think (1) may be MySQl-version-dependent. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/extension_updates_loginusertrack_and_comments/ From dmitry at typo3.org Wed Jul 23 13:01:51 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 23 Jul 2008 14:01:51 +0300 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > Now I have added another key: > > ALTER TABLE `tx_myext_table` ADD KEY comp2( pid, deleted( 1 ) , crdate) > > > EXPLAIN SELECT * > FROM tx_myext_table > WHERE pid =1 > AND deleted =0 > ORDER BY crdate > LIMIT 21 , 20 > > > id select_type table type possible_keys key key_len > ref rows Extra > 1 SIMPLE tx_myext_table range parent,comp1,comp2 comp2 > 5 NULL 1665195 Using where > >> This looks good because select_type is SIMPLE. This is one of the best >> that you can get. >> >>> So the comp1 key is used. > And also comp2 key is used here now. Right. pid, deleted and crdate are all in the right order, so comp2 is used. > With a separate key com2 it takes only 0.0019 sec instead of 31.4553 > seconds before. And the query with ordering by the field 'sorting' did > not at all get slower by adding another key. I guess it will use comp1 key. MySQL is tricky thing when it comes to optimization :) I remember spending a week or so near keyboard and with books around. Experimented a lot but result was worth it :) -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/extension_updates_loginusertrack_and_comments/ From typo3 at rvt.dds.nl Wed Jul 23 14:58:04 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Wed, 23 Jul 2008 07:58:04 -0500 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hey Franz, So you problem is the sorting function that TYPO3 adds. Since the cardinality is so low on your table, MySQL almost needs to do a full index scan to find the 20 records. And specially for sorting it needs to go through all 1 mil records. First let's speed up using the sorting field. Do something like this: update YOURLARGETABLE set sorting=uid; That will create a unique entry for each sorting field based on the uid Also do the same for crdate, but like this: update YOURLARGETABLE set crdate= 1216817772 + uid; Then create two indexes. One on crdate and one on sorting. Repeat these queries: SELECT * FROM table WHERE pid=1 AND deleted=0 ORDER BY crdate LIMIT 21,20; and SELECT * FROM table WHERE pid=1 AND deleted=0 ORDER BY sorting LIMIT 21,20; What you should see is that the above two SQL's run a lot faster now. Ries On Jul 23, 2008, at 1:21 AM, Franz Holzinger wrote: > ries van Twisk a ?crit : >> hey Franz, >> >> properly your mayor problem is the order by. >> >> Can you try this?? >> >> SELECT * FROM table WHERE pid=1 AND deleted=0 LIMIT 21,20; >> >> it should be (a lot) faster then the one with a order by. > Yes, indeed. > 0.1097 sec. > But this is with additional index: > deleted INDEX 1 deleted > > 0.0014 sec > This is after the deletion of the index deleted. This is strangly much > faster than with the index. > > > Here is the normal SQL query in phpMyAdmin: > > Affichage des enregistrements 0 - 29 (1665226 total, traitement: > 0.0014 > sec.) > >> Now I don't know the list module very well, but I believe it can >> sort by >> crdate and with the sorting field. >> >> Now try this: >> >> select crdate FROM largetable group by crdate; -- Let me how may >> records >> you get > > Affichage des enregistrements 0 - 29 (31353 total, traitement: > 4.5455 sec.) > > 31353 records. >> select sorting FROM largetable group by sorting; -- Let me how may >> records you get > > Affichage des enregistrements 0 - 0 (1 total, traitement: 4.2275 sec.) > > 1 record. > > > Franz > _______________________________________________ > TYPO3-dev mailing list > TYPO3-dev at lists.netfielders.de > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev Ries van Twisk tags: Freelance TYPO3 Glassfish JasperReports JasperETL Flex Blaze-DS WebORB PostgreSQL DB-Architect email: ries at vantwisk.nl web: http://www.rvantwisk.nl/ skype: callto://r.vantwisk From franz at fholzinger.com Wed Jul 23 16:46:14 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Wed, 23 Jul 2008 16:46:14 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hello Ries, ries van Twisk a ?crit : > So you problem is the sorting function that TYPO3 adds. > > Since the cardinality is so low on your table, MySQL almost needs to do > a full index scan to find the 20 records. > And specially for sorting it needs to go through all 1 mil records. > > First let's speed up using the sorting field. Do something like this: > > update YOURLARGETABLE set sorting=uid; > > That will create a unique entry for each sorting field based on the uid > > Also do the same for crdate, but like this: > update YOURLARGETABLE set crdate= 1216817772 + uid; > > Then create two indexes. One on crdate and one on sorting. > > Repeat these queries: > > SELECT * FROM table WHERE pid=1 AND deleted=0 ORDER BY crdate LIMIT 21,20; Affichage des enregistrements 0 - 19 (20 total, traitement: 8.3050 sec.) requ?te SQL: SELECT * FROM `largetable` WHERE pid =1 AND deleted =0 ORDER BY crdate DESC LIMIT 21 , 20 > SELECT * FROM table WHERE pid=1 AND deleted=0 ORDER BY sorting LIMIT 21,20; Affichage des enregistrements 0 - 19 (20 total, traitement: 7.4448 sec.) requ?te SQL: SELECT * FROM `largetable` WHERE pid =1 AND deleted =0 ORDER BY sorting LIMIT 21 , 20 > What you should see is that the above two SQL's run a lot faster now. It is about 7 seconds now instead of 31 seconds we had before. It has got 4-5 times faster than before. With EXPLAIN this gives: id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE tx_largetable range parent parent 4 NULL 1665224 Using where; Using filesort It has only used the key 'parent', but it did not use the 2 additional keys 'crdate' and 'sorting'. Franz From franz at fholzinger.com Wed Jul 23 16:59:48 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Wed, 23 Jul 2008 16:59:48 +0200 Subject: [TYPO3-dev] where is exec_alter_table or similar? Message-ID: Hello, where can I find a function to alter the keys for a table in t3lib_DB ? I want to execute a SQL 'ALTER TABLE ...' command. But the function $TYPO3_DB->sql is marked as deprecated. Franz From dmitry at typo3.org Wed Jul 23 17:02:35 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 23 Jul 2008 18:02:35 +0300 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > It is about 7 seconds now instead of 31 seconds we had before. It has > got 4-5 times faster than before. > > With EXPLAIN this gives: > > id select_type table type possible_keys key key_len ref rows Extra > 1 SIMPLE tx_largetable range parent parent 4 NULL 1665224 Using > where; Using filesort > > It has only used the key 'parent', but it did not use the 2 additional > keys 'crdate' and 'sorting'. Reminder: MySQL uses only one key at a time. This is why composite index is better. You can create 10 keys and still only one will be used for a query. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/extension_updates_loginusertrack_and_comments/ From dmitry at typo3.org Wed Jul 23 17:04:44 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 23 Jul 2008 18:04:44 +0300 Subject: [TYPO3-dev] where is exec_alter_table or similar? In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > where can I find a function to alter the keys for a table in t3lib_DB ? > > I want to execute a SQL 'ALTER TABLE ...' command. > But the function $TYPO3_DB->sql is marked as deprecated. $GLOBALS['TYPO3_DB']->sql_query. But if you alter TYPO3 table, EM will prompt you to restore it when you update extension. Altering tables is a task reserved to TYPO3 core by default. If table is in extension, add necessary code to ext_tables.sql in extension. Then go to EM and click the extension. It will prompt you to add keys. -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/extension_updates_loginusertrack_and_comments/ From typo3 at rvt.dds.nl Wed Jul 23 17:14:53 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Wed, 23 Jul 2008 10:14:53 -0500 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hey Franz, I don't know the internals if MySQL but I do know that analyze shows very limited what MySQL does internally. However there is a way to test if sorting and crdate indexes are used: 1) remove the index on crdate and sorting then re-run the SQL's if the time jumps up to 30 seconds again (assuming no other indexes are created) then crdate and sorting indexes are really used however they just don't simply show in the explain. This is quite common in database world and explain simply shows the query plan but often sorting is done using indexes aswell. So now you are down to 7 seconds. I t'hink' your current problem is also this: The cardinality on pid and deleted are close to zero so that means that MySQL HAS to scan most of the index and/or table means it does have to go through all million of rows. Then comes to the conclusion that he has one million records. Then start sorting. Then only returns 20 records. Lot's of time. To know this is try run this SQL (make sure you have an index on crdate and sorting): SELECT * FROM table ORDER BY crdate LIMIT 21,20; If the above is fast (<200ms) then pid and deleted are your next problem and you need to figure out for yourself if you can divide your mil records into several pages. What Dmitry says might be true, I don't know MySQL internals well, but this compound index (pid, deleted, sorting) or (pid, deleted, sorting) might not benefit your sorting problem. since remember cardinality on pid and deleted is close to zero. Then sorting is not used to really sort your table.Just is just a wild guess.... Ries On Jul 23, 2008, at 9:46 AM, Franz Holzinger wrote: > Hello Ries, > > ries van Twisk a ?crit : > >> So you problem is the sorting function that TYPO3 adds. >> >> Since the cardinality is so low on your table, MySQL almost needs >> to do >> a full index scan to find the 20 records. >> And specially for sorting it needs to go through all 1 mil records. >> >> First let's speed up using the sorting field. Do something like this: >> >> update YOURLARGETABLE set sorting=uid; >> >> That will create a unique entry for each sorting field based on the >> uid >> >> Also do the same for crdate, but like this: >> update YOURLARGETABLE set crdate= 1216817772 + uid; >> >> Then create two indexes. One on crdate and one on sorting. >> >> Repeat these queries: >> >> SELECT * FROM table WHERE pid=1 AND deleted=0 ORDER BY crdate LIMIT >> 21,20; > > Affichage des enregistrements 0 - 19 (20 total, traitement: 8.3050 > sec.) > requ?te SQL: > SELECT * > FROM `largetable` > WHERE pid =1 > AND deleted =0 > ORDER BY crdate DESC > LIMIT 21 , 20 > > >> SELECT * FROM table WHERE pid=1 AND deleted=0 ORDER BY sorting >> LIMIT 21,20; > > Affichage des enregistrements 0 - 19 (20 total, traitement: 7.4448 > sec.) > requ?te SQL: > SELECT * > FROM `largetable` > WHERE pid =1 > AND deleted =0 > ORDER BY sorting > LIMIT 21 , 20 > >> What you should see is that the above two SQL's run a lot faster now. > > It is about 7 seconds now instead of 31 seconds we had before. It has > got 4-5 times faster than before. > > With EXPLAIN this gives: > > > > id select_type table type possible_keys key key_len ref rows > Extra > 1 SIMPLE tx_largetable range parent parent 4 NULL 1665224 > Using > where; Using filesort > > It has only used the key 'parent', but it did not use the 2 additional > keys 'crdate' and 'sorting'. > > Franz > From franz at fholzinger.com Wed Jul 23 17:16:47 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Wed, 23 Jul 2008 17:16:47 +0200 Subject: [TYPO3-dev] where is exec_alter_table or similar? In-Reply-To: References: Message-ID: Hello Dmitry Dulepov [typo3] a ?crit : > Franz Holzinger wrote: >> where can I find a function to alter the keys for a table in t3lib_DB ? >> >> I want to execute a SQL 'ALTER TABLE ...' command. >> But the function $TYPO3_DB->sql is marked as deprecated. > > $GLOBALS['TYPO3_DB']->sql_query. But if you alter TYPO3 table, EM will > prompt you to restore it when you update extension. Altering tables is a > task reserved to TYPO3 core by default. But I should drop the keys before starting a long import script. And after this has finished, the keys must be created again. > If table is in extension, add necessary code to ext_tables.sql in > extension. Then go to EM and click the extension. It will prompt you to > add keys. Yes, but can I use also this as an API for TYPO3 extensions? - Franz From franz at fholzinger.com Wed Jul 23 17:29:03 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Wed, 23 Jul 2008 17:29:03 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Hello, ries van Twisk a ?crit : > 1) remove the index on crdate and sorting then re-run the SQL's 8.0252 sec > if the time jumps up to 30 seconds again (assuming no other indexes are > created) then crdate and sorting indexes are really used however they > just don't simply show in the explain. > This is quite common in database world and explain simply shows the > query plan but often sorting is done using indexes aswell. It did not jump back to 30 sec. > So now you are down to 7 seconds. > > I t'hink' your current problem is also this: > > The cardinality on pid and deleted are close to zero so that means that > MySQL HAS to scan > most of the index and/or table means it does have to go through all > million of rows. > Then comes to the conclusion that he has one million records. Then start > sorting. Then only returns 20 records. Lot's of time. > > To know this is try run this SQL (make sure you have an index on crdate > and sorting): > > SELECT * FROM table ORDER BY crdate LIMIT 21,20; 7.4060 seconds Yes, the filling of crdate and sorting with different values has improved the execution speed. > If the above is fast (<200ms) then pid and deleted are your next problem > and you need > to figure out for yourself if you can divide your mil records into > several pages. > > What Dmitry says might be true, I don't know MySQL internals well, but > this compound index > (pid, deleted, sorting) or (pid, deleted, sorting) might not benefit > your sorting problem. > since remember cardinality on pid and deleted is close to zero. Then > sorting is not used to really > sort your table.Just is just a wild guess.... The index on crdate and sorting did not help very much, only 0.5 seconds to 8 seconds former total execution time. Dmitry's way has proven to be true, because it has reduced the execution speed by a factor of about 10000. Franz From typo3 at rvt.dds.nl Wed Jul 23 17:44:05 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Wed, 23 Jul 2008 10:44:05 -0500 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: >> >> >> What Dmitry says might be true, I don't know MySQL internals well, >> but >> this compound index >> (pid, deleted, sorting) or (pid, deleted, sorting) might not >> benefit >> your sorting problem. >> since remember cardinality on pid and deleted is close to zero. Then >> sorting is not used to really >> sort your table.Just is just a wild guess.... > > The index on crdate and sorting did not help very much, only 0.5 > seconds > to 8 seconds former total execution time. I thought I was reading it was 30 seconds and got back to 8 seconds.... > > Dmitry's way has proven to be true, because it has reduced the > execution > speed by a factor of about 10000. These compound indexes do help a lot. Just don't think it helps between these two indexes: 1) just sorting and/or crdate 2) pid, deleted, sorting or pid, deleted, crdate Anyways, 8 seconds still sounds long and you should be-able to get it below 500ms better below 100ms.... Ries From martin.kutschker-n0spam at no5pam-blackbox.net Wed Jul 23 19:32:16 2008 From: martin.kutschker-n0spam at no5pam-blackbox.net (Martin Kutschker) Date: Wed, 23 Jul 2008 19:32:16 +0200 Subject: [TYPO3-dev] where is exec_alter_table or similar? In-Reply-To: References: Message-ID: Franz Holzinger schrieb: > Hello, > > where can I find a function to alter the keys for a table in t3lib_DB ? > > I want to execute a SQL 'ALTER TABLE ...' command. > But the function $TYPO3_DB->sql is marked as deprecated. Simply use it. The deprecation tag was added when it was dreamed that everything could be done via DBAL. Masi From nospam at nospam.de Wed Jul 23 20:57:16 2008 From: nospam at nospam.de (=?UTF-8?B?RGFuaWVsIFDCmsO2dHppbmdlcg==?=) Date: Wed, 23 Jul 2008 20:57:16 +0200 Subject: [TYPO3-dev] Crawler Extension - Mountpoint support and development in future In-Reply-To: References: Message-ID: Sonja Scholz schrieb: > Hello all, > > we used the crawler extension in several projects. Now we improved the > extension, so it supports also mountpoint handling. This is important, > because the mountpage (and if exists the subpages of the mountpage) > should also be indexed. > > I created a bug report and uploaded the tested patch and the t3x file. > > http://bugs.typo3.org/view.php?id=8983 > > It would be great if the bug could be fixed in the next version of the > extension. > > Is there any news, if the extension becomes part of forge? Then we also > (Jonas D?bi and me) would like to become part of the development team of > the crawler extension. > > Kind regards > > Sonja Hello Sonja Kasper confirmed to ive me the key - I allready put some of our patches in there and will take care of this one. I will then put the extension to forge. Greetings Daniel From nospam at nospam.de Wed Jul 23 21:06:33 2008 From: nospam at nospam.de (=?UTF-8?B?RGFuaWVsIFDCmsO2dHppbmdlcg==?=) Date: Wed, 23 Jul 2008 21:06:33 +0200 Subject: [TYPO3-dev] Crawler Extension - Mountpoint support and development in future In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Sonja Scholz wrote: >> Is there any news, if the extension becomes part of forge? Then we >> also (Jonas D?bi and me) would like to become part of the development >> team of the crawler extension. > > It is on SF now, so will be migrated to Forge as soon as all other exts > are migrated. Planned migration date is on 26 or 27 of July. There is an > announcement by Andreas Otto made on July 12, check it for more info. > I was not aware that the crawler is allready there - will talk to andreas - thanks. From dmitry at typo3.org Wed Jul 23 21:31:15 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 23 Jul 2008 22:31:15 +0300 Subject: [TYPO3-dev] Crawler Extension - Mountpoint support and development in future In-Reply-To: References: Message-ID: Hi! Daniel P??tzinger wrote: > I will then put the extension to forge. Don't rush. Andreas will migrate everything from SF to forge very soon. Do not duplicate extensions, please! -- Dmitry Dulepov TYPO3 Core team More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml Latest article: http://typo3bloke.net/post-details/extension_updates_loginusertrack_and_comments/ From masi-no at spam-typo3.org Thu Jul 24 10:06:58 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Thu, 24 Jul 2008 10:06:58 +0200 Subject: [TYPO3-dev] list module hangs at 1 million records In-Reply-To: References: Message-ID: Franz Holzinger schrieb: > Hello Ries, > > ries van Twisk a ?crit : > >> So you problem is the sorting function that TYPO3 adds. >> >> Since the cardinality is so low on your table, MySQL almost needs to do >> a full index scan to find the 20 records. >> And specially for sorting it needs to go through all 1 mil records. >> >> First let's speed up using the sorting field. Do something like this: >> >> update YOURLARGETABLE set sorting=uid; >> >> That will create a unique entry for each sorting field based on the uid >> >> Also do the same for crdate, but like this: >> update YOURLARGETABLE set crdate= 1216817772 + uid; >> >> Then create two indexes. One on crdate and one on sorting. I think that Dmitry has made it clear that Mysql uses only ONE index for a given querie (without subqueries). So adding indices for indviudal fields won't do any good for most situations. He has also explained haow to create compound indices. > >> SELECT * FROM table WHERE pid=1 AND deleted=0 ORDER BY sorting LIMIT 21,20; > > Affichage des enregistrements 0 - 19 (20 total, traitement: 7.4448 sec.) > requ?te SQL: > SELECT * > FROM `largetable` > WHERE pid =1 > AND deleted =0 > ORDER BY sorting > LIMIT 21 , 20 > >> What you should see is that the above two SQL's run a lot faster now. > > It is about 7 seconds now instead of 31 seconds we had before. It has > got 4-5 times faster than before. > > With EXPLAIN this gives: > > > > id select_type table type possible_keys key key_len ref rows Extra > 1 SIMPLE tx_largetable range parent parent 4 NULL 1665224 Using > where; Using filesort > > It has only used the key 'parent', but it did not use the 2 additional > keys 'crdate' and 'sorting'. AFAIR Dmitry suggested unsing an index (pid,deleted, sorting) for this query. If you make a shadow table for the deleted items you can get rid of the deleted field. This will save you some extra time. Masi From typo3news at otherone.de Fri Jul 25 08:02:42 2008 From: typo3news at otherone.de (Uschi Renziehausen) Date: Fri, 25 Jul 2008 08:02:42 +0200 Subject: [TYPO3-dev] Very bad BE performance when loading the form for creating/editing a CE Message-ID: Dear devs, in our university project we encountered a performance problem that makes certain parts of the BE very frustrating to use for ordinary authors when working with CE forms like text or text with image. Situation: - Pagetree currently has 2500 pages and will at least double up in the following 3 months. - ALL editors need to be able to link to ALL pages of the tree (e.g. using CType menu) regardless whether they are allowed to edit a page or not. That means, they need at read access to the whole pagetree. - We are using be_acl, typo3 4.2 dev (latest branch). - Each editors' group has at least 2 dbmounts a) one for the part of the pagetree they are responsible for b) one for the whole pagetree with read only to be able to link to all pages Some statistics: I made some tests by simply counting how long it takes to load something. As an admin Loading the pagetree (Web->Page): 3 Loading pagecontent (clicking on the title of a page): 2 Loading CE Text form (clicking on the icon in new content element wizard): 3 Saving the CE Text: 3 As an editor with only one DB-mount a (some 80 pages) Loading the pagetree (Web->Page): 3 Loading pagecontent (clicking on the title of a page): 3 Loading CE Text form (clicking on the icon in new content element wizard): 5 (!!!) Saving the CE Text: 5 As an editor with 2 DB-mounts (a and b) Loading the pagetree (Web->Page): 5 Loading pagecontent (clicking on the title of a page): 4 Loading CE Text form (clicking on the icon in new content element wizard): 18 (!!!) Saving the CE Text: 6 As you can see, the size of the pagetree has an enormous impact on how long it takes to load the editing form for a CE. Counting to 18 until a form shows up will put editors into a very bad mood. Any ideas what might be the bottleneck and how performance could be improved? Regards, Uschi From nospam at nospam.de Fri Jul 25 09:09:18 2008 From: nospam at nospam.de (=?UTF-8?B?RGFuaWVsIFDCmsO2dHppbmdlcg==?=) Date: Fri, 25 Jul 2008 09:09:18 +0200 Subject: [TYPO3-dev] Very bad BE performance when loading the form for creating/editing a CE In-Reply-To: References: Message-ID: Hey What extensions do you use? acl begroups? or any other that might effect the backend? Any extensions that adds fields to contentelements? Greetings Daniel From oliver at liquidlight.co.uk Fri Jul 25 09:20:16 2008 From: oliver at liquidlight.co.uk (Oliver Rowlands) Date: Fri, 25 Jul 2008 08:20:16 +0100 Subject: [TYPO3-dev] Very bad BE performance when loading the form for creating/editing a CE In-Reply-To: References: Message-ID: Hi Uschi, be_acl might be one of your problems as it adds a lot of complexity to the backend permissions logic. Though I doubt this is the root of your problems as your backend page loading times sound rather slow. When it comes to TYPO3 performance there are a number of issues which you need to be consider: - Server hardware specification: what type of hardware are you currently running your project on? - Filesystem optimisations: what filesystem are you currently using? Has it been optimised? - PHP pre-processor: are you running a PHP accelerator (eg: eAccelerator)? - mySQL optimisation: has your mySQL configuration been optimised for your hardware? Are you using query caching? Are you running your tables in myISAM or InnoDB? - TYPO3 backend optimisations: have you optimised the TYPO3 backend? Michiel posted a good article about the issue on his blog last month [1]. We currently run a number of large TYPO3 sites (5000+ pages) and have not had any major performance issues with the backend as long as everything has been optimised correctly. The only problem we have had in the past is with large numbers of sibling pages in the same branch of the page tree. In this case using the local 'Mount as treeroot' option usually solved the problem. Best regards, Oliver [1] http://typofree.org/articles/optimizing-typo3-backend-responsiveness/ Uschi Renziehausen wrote: > Dear devs, > > in our university project we encountered a performance problem that > makes certain parts of the BE very frustrating to use for ordinary > authors when working with CE forms like text or text with image. > > Situation: > - Pagetree currently has 2500 pages and will at least double up in the > following 3 months. > - ALL editors need to be able to link to ALL pages of the tree (e.g. > using CType menu) regardless whether they are allowed to edit a page or > not. That means, they need at read access to the whole pagetree. > - We are using be_acl, typo3 4.2 dev (latest branch). > - Each editors' group has at least 2 dbmounts > a) one for the part of the pagetree they are responsible for > b) one for the whole pagetree with read only to be able to link to > all pages > > > Some statistics: > I made some tests by simply counting how long it takes to load something. > > As an admin > > Loading the pagetree (Web->Page): 3 > Loading pagecontent (clicking on the title of a page): 2 > Loading CE Text form (clicking on the icon in new content element > wizard): 3 > Saving the CE Text: 3 > > As an editor with only one DB-mount a (some 80 pages) > > Loading the pagetree (Web->Page): 3 > Loading pagecontent (clicking on the title of a page): 3 > Loading CE Text form (clicking on the icon in new content element > wizard): 5 (!!!) > Saving the CE Text: 5 > > > As an editor with 2 DB-mounts (a and b) > > Loading the pagetree (Web->Page): 5 > Loading pagecontent (clicking on the title of a page): 4 > Loading CE Text form (clicking on the icon in new content element > wizard): 18 (!!!) > Saving the CE Text: 6 > > As you can see, the size of the pagetree has an enormous impact on how > long it takes to load the editing form for a CE. Counting to 18 until a > form shows up will put editors into a very bad mood. > > Any ideas what might be the bottleneck and how performance could be > improved? > > Regards, Uschi -- Oliver Rowlands :: Liquid Light :: E - oliver at liquidlight.co.uk W - http://www.liquidlight.co.uk T - 00 44 (0)845 6 58 88 35 F - 00 44 (0)845 6 58 44 35 From ingo at typo3.org Fri Jul 25 10:20:31 2008 From: ingo at typo3.org (Ingo Renner) Date: Fri, 25 Jul 2008 10:20:31 +0200 Subject: [TYPO3-dev] TYPO3 Bug Day is on, come join us! Message-ID: Hi all, this is just a reminder that our second TYPO3 Bug Day is on today. So please join us in #typo3-bugday on irc.freenode.net and help improving TYPO3. best Ingo -- Ingo Renner TYPO3 Core Developer, Release Manager TYPO3 4.2 From masi-no at spam-typo3.org Fri Jul 25 15:15:40 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Fri, 25 Jul 2008 15:15:40 +0200 Subject: [TYPO3-dev] "local" defaults for db values Message-ID: Hi! I can set default values for visible fields per user (group) and per page branch (new in 4.2). The global TCA defaults are also set only for visible fields. But I cannot set default values different from the DB field values, right? I know that I can do some tricks via URL parameters of alt_doc.php, but that would mean that I have to write my own UI. Do I have to use some TCEmain hook or am I missing the obvious? What I need is a way that I get some fixed values within a page tree. And I want to hide the field from the users so they cannot change it. Masi From dmitry at typo3.org Fri Jul 25 15:25:09 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Fri, 25 Jul 2008 16:25:09 +0300 Subject: [TYPO3-dev] "local" defaults for db values In-Reply-To: References: Message-ID: Hi! Martin Kutschker wrote: > I can set default values for visible fields per user (group) and per > page branch (new in 4.2). The global TCA defaults are also set only for > visible fields. > > But I cannot set default values different from the DB field values, right? If there are values already than defaults are not used. Or do I misunderstand you? > I know that I can do some tricks via URL parameters of alt_doc.php, but > that would mean that I have to write my own UI. > > Do I have to use some TCEmain hook or am I missing the obvious? > > What I need is a way that I get some fixed values within a page tree. > And I want to hide the field from the users so they cannot change it. Possibly you can do it in extTables.php. Alter 'types' for the table and set your own default values. -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From masi-no at spam-typo3.org Fri Jul 25 15:28:31 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Fri, 25 Jul 2008 15:28:31 +0200 Subject: [TYPO3-dev] EM translations Message-ID: Hi! Is the following description true: The EM loads a zip file for a given package in a certain language into typo3temp. This will be extracted into typo3conf/l10. When the user requests new translations, the EM will look if it has a zip file, will NOT download a new translation, and will simply say "OK". If this is true, then this not very good. First of all, the EM only has the message "ERR" and "OK" beside "Could not fetch translation status" (whatever that means). It should have messages like: "no translation available", "translation is up-to-date" (no file fetched!), "could not fetch translation" (an error has occurred). Anyway, there seems to be missing a way to tell if the translation server has a newer (or at least different) version of the translation. So in typo3conf/l10 there should be an info file that contains a time stamp and a MD5 hash of the fetched zip file (may be the file size and the date of the last fetch as well). This info files allows us to compare against the current version on the translation server. Additionally that allows us to get rid of the zip files in the typo3temp. Any comments? Masi From gaumondpatrick-s-p-a-m at hotmail-sp-a-m.com Fri Jul 25 16:17:17 2008 From: gaumondpatrick-s-p-a-m at hotmail-sp-a-m.com (Patrick Gaumond) Date: Fri, 25 Jul 2008 10:17:17 -0400 Subject: [TYPO3-dev] Very bad BE performance when loading the form for creating/editing a CE In-Reply-To: References: Message-ID: Uschi Renziehausen wrote: > Situation: > - Pagetree currently has 2500 pages and will at least double up in the > following 3 months. > - ALL editors need to be able to link to ALL pages of the tree (e.g. > using CType menu) regardless whether they are allowed to edit a page or > not. That means, they need at read access to the whole pagetree. The core of your problem is the "artificial" need of a second DBmount for linking only, right ? I think you're looking for a feature I wanted too for a long time: The standard pagetree for Editors (you see what's in your DBmount and need just one usually) and the ability to have a "special pagetree for linking only" with read-only view for titles only so linking without any more rights is possible (and this pagetree is cached in a perfect world). We should not have to add a DBmount for "linking only" or at least we need this special pagetree available. Patrick Feature freak From masi-no at spam-typo3.org Fri Jul 25 16:24:29 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Fri, 25 Jul 2008 16:24:29 +0200 Subject: [TYPO3-dev] "local" defaults for db values In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Martin Kutschker wrote: >> I can set default values for visible fields per user (group) and per >> page branch (new in 4.2). The global TCA defaults are also set only for >> visible fields. >> >> But I cannot set default values different from the DB field values, >> right? > > If there are values already than defaults are not used. Or do I > misunderstand you? In fact there are no DB fields for the field in question. And it wouldn't make sense to add it there. >> I know that I can do some tricks via URL parameters of alt_doc.php, but >> that would mean that I have to write my own UI. >> >> Do I have to use some TCEmain hook or am I missing the obvious? >> >> What I need is a way that I get some fixed values within a page tree. >> And I want to hide the field from the users so they cannot change it. > > Possibly you can do it in extTables.php. Alter 'types' for the table and > set your own default values. I don't want global DB defaults, be it true DB defaults or TCA defaults. I want them to be page branch or user group dependent like TCAdefault in pageTS/user TS. The stupid thing is that these defaults are passed on via the "transfer" classes and deal only with the UI. This means that if the field isn't visible it will not get a value. Masi From info at sk-typo3.de Fri Jul 25 16:33:37 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Fri, 25 Jul 2008 16:33:37 +0200 Subject: [TYPO3-dev] EM translations In-Reply-To: References: Message-ID: Martin Kutschker schrieb: > Hi! > > Is the following description true: > > The EM loads a zip file for a given package in a certain language into > typo3temp. This will be extracted into typo3conf/l10. When the user > requests new translations, the EM will look if it has a zip file, will > NOT download a new translation, and will simply say "OK". > > If this is true, then this not very good. First of all, the EM only has > the message "ERR" and "OK" beside "Could not fetch translation status" > (whatever that means). It should have messages like: "no translation > available", "translation is up-to-date" (no file fetched!), "could not > fetch translation" (an error has occurred). > > Anyway, there seems to be missing a way to tell if the translation > server has a newer (or at least different) version of the translation. > So in typo3conf/l10 there should be an info file that contains a time > stamp and a MD5 hash of the fetched zip file (may be the file size and > the date of the last fetch as well). > > This info files allows us to compare against the current version on the > translation server. Additionally that allows us to get rid of the zip > files in the typo3temp. > > Any comments? > > Masi Hi Masi, good idea! EM could fetch a small xml containing packages with date and MD5-hash for compare. This part of EM is one of the irretating parts, IIRC you have to delete the files to fetch new ones, which is very bad for practise. vg Steffen From christoph.koehler at gmail.com Fri Jul 25 17:57:31 2008 From: christoph.koehler at gmail.com (Christoph Koehler) Date: Fri, 25 Jul 2008 15:57:31 +0000 (UTC) Subject: [TYPO3-dev] Remove JS popup when login expired Message-ID: Hello, This was an idea for 4.3. It's done now; you can get the patch from It also explains what it does. Please review and provide feedback. I will post a RFC in the core list afterwards. Thanks! Christoph -- I'm using an evaluation license of nemo since 409 days. You should really try it! http://www.malcom-mac.com/nemo From tapio.markula at xetpoint.fi Fri Jul 25 22:41:17 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Fri, 25 Jul 2008 23:41:17 +0300 Subject: [TYPO3-dev] Problem with JS handling In-Reply-To: References: Message-ID: Georg Ringer kirjoitti: > Tapio Markula wrote: >> I tested the last function with a fixed value - worked - so the >> problem relates with cookie handling. I just doesn't understand why >> this doesn't worked in multiple IE. > > Multiple IE is still kind of hack, so test it with a true IE6 True - my client tested with real IE and no problems. From tapio.markula at xetpoint.fi Fri Jul 25 22:43:48 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Fri, 25 Jul 2008 23:43:48 +0300 Subject: [TYPO3-dev] Path problem with $TBE_STYLES['htmlTemplates']['templates/db_layout.html'] In-Reply-To: References: Message-ID: Tapio Markula > Hi > > Setting $TBE_STYLES['htmlTemplates']['templates/db_layout.html'] > in a skin plugin has a path problem. > > Path is normally > > $templatedir='../'.$temp_eP.'htmlTemplates/'; > > where $temp_eP = t3lib_extMgm::extRelPath('skin_grey_2'); > > BUT this doesn't work if Typo3 has been installed into a subdirectory > > A hack might solve that > > > $templatedir='../'.$temp_eP.'htmlTemplates/'; > if(!is_dir(PATH_site .substr($templatedir,6))) // if installed into > subdirectory must add '../' > $templatedir='../../'.$temp_eP.'htmlTemplates/'; > if(is_dir(PATH_site .substr($templatedir,6))) { // directory might > not be found if Typo3 has been installed into a subdirectory > > $TBE_STYLES['htmlTemplates']['templates/db_layout.html']=$templatedir.'db_layout.html'; > > > > But is there a better solution this is really nasty - $TBE_STYLES['htmlTemplates'] has problems always when Typo3 is not installed into main domain - all subdomain installations fails. From andreas at otto-hanika.de Fri Jul 25 23:38:48 2008 From: andreas at otto-hanika.de (Andreas Otto) Date: Fri, 25 Jul 2008 23:38:48 +0200 Subject: [TYPO3-dev] TYPO3xdev moves to Forge In-Reply-To: References: Message-ID: Hi, as announced on 2008-07-12 SVN write access to TYPO3xdev is now blocked to prepare the transition from TYPO3xdev to Forge. Andreas Wolf and Sebastian Kurf?rst will be working on the SVN dump and on the import of the SVN dump into Forge. An announcement will be made once the import is finished. Cheers, Andreas -- Amazon wishlist: From info at sk-typo3.de Fri Jul 25 23:52:52 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Fri, 25 Jul 2008 23:52:52 +0200 Subject: [TYPO3-dev] Path problem with $TBE_STYLES['htmlTemplates']['templates/db_layout.html'] In-Reply-To: References: Message-ID: Tapio Markula schrieb: > Tapio Markula >> Hi >> >> Setting $TBE_STYLES['htmlTemplates']['templates/db_layout.html'] >> in a skin plugin has a path problem. >> >> Path is normally >> >> $templatedir='../'.$temp_eP.'htmlTemplates/'; >> >> where $temp_eP = t3lib_extMgm::extRelPath('skin_grey_2'); >> >> BUT this doesn't work if Typo3 has been installed into a subdirectory >> >> A hack might solve that >> >> >> $templatedir='../'.$temp_eP.'htmlTemplates/'; >> if(!is_dir(PATH_site .substr($templatedir,6))) // if installed >> into subdirectory must add '../' >> $templatedir='../../'.$temp_eP.'htmlTemplates/'; >> if(is_dir(PATH_site .substr($templatedir,6))) { // directory might >> not be found if Typo3 has been installed into a subdirectory >> >> $TBE_STYLES['htmlTemplates']['templates/db_layout.html']=$templatedir.'db_layout.html'; >> >> >> But is there a better solution > > this is really nasty - $TBE_STYLES['htmlTemplates'] has problems always > when Typo3 is not installed into main domain - all subdomain > installations fails. I can't believe that this fails because it's relativ. Absolute paths will fail definitively. $templatedir='../'.$temp_eP.'htmlTemplates/'; will result in something like ../../typo3conf/ext/skinext/templates where is influence of subdir? vg Steffen From typo3news at otherone.de Sat Jul 26 09:31:59 2008 From: typo3news at otherone.de (Uschi Renziehausen) Date: Sat, 26 Jul 2008 09:31:59 +0200 Subject: [TYPO3-dev] Very bad BE performance when loading the form for creating/editing a CE In-Reply-To: References: Message-ID: Hi Patrick :-) Patrick Gaumond wrote: > > The core of your problem is the "artificial" need of a second DBmount > for linking only, right ? > Exactly! > I think you're looking for a feature I wanted too for a long time: > > The standard pagetree for Editors (you see what's in your DBmount and > need just one usually) and the ability to have a "special pagetree for > linking only" with read-only view for titles only so linking without any > more rights is possible (and this pagetree is cached in a perfect world). > Yes, you are absolutely right. The only other way to get rid of this problem is to let users insert a list of ids into tt_content.pages, and that is errorprone. > We should not have to add a DBmount for "linking only" or at least we > need this special pagetree available. > > > Patrick > Feature freak Uschi Fan of the feature proposed by Patrick :-) From typo3news at otherone.de Sat Jul 26 09:40:17 2008 From: typo3news at otherone.de (Uschi Renziehausen) Date: Sat, 26 Jul 2008 09:40:17 +0200 Subject: [TYPO3-dev] Very bad BE performance when loading the form for creating/editing a CE In-Reply-To: References: Message-ID: Hi Daniel, Daniel P??tzinger wrote: > Hey > > What extensions do you use? > acl begroups? or any other that might effect the backend? We are using be_acl, but not any others that do effect the be (at least not that I know of). The only thing I did is that I reorganised the form fields for tt_content a bit via TCA. > Any extensions that adds fields to contentelements? > Here the list of extensions that add fields to tt_content and be_groups/be_users templavoila tt_content: tx_templavoila_ds, tx_templavoila_to, tx_templavoila_flex, tx_templavoila_pito be_groups: tx_templavoila_access ce_flexform (needed for dam) tt_content: ce_flexform dam 1.1 dev tt_content: tx_dam_images, tx_dam_files be_groups: tx_dam_mountpoints be_users: tx_dam_mountpoints dam_ttcontent tt_content: tx_damttcontent_files dam_lightbox tt_content: tx_damlightbox_flex Regards, Uschi From masi-no at spam-typo3.org Sat Jul 26 12:01:53 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Sat, 26 Jul 2008 12:01:53 +0200 Subject: [TYPO3-dev] EM translations In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > > good idea! EM could fetch a small xml containing packages with date and > MD5-hash for compare. Why not. The main point is that the client needs to know whether the server has a newer copy or not. Masi From tapio.markula at xetpoint.fi Sat Jul 26 14:12:05 2008 From: tapio.markula at xetpoint.fi (Tapio Markula) Date: Sat, 26 Jul 2008 15:12:05 +0300 Subject: [TYPO3-dev] Path problem with $TBE_STYLES['htmlTemplates']['templates/db_layout.html'] In-Reply-To: References: Message-ID: Steffen Kamper > I can't believe that this fails because it's relativ. Absolute paths > will fail definitively. > > $templatedir='../'.$temp_eP.'htmlTemplates/'; > > will result in something like > > ../../typo3conf/ext/skinext/templates > > where is influence of subdir? > > http://rastorfi.aspnet3.nebula.fi/index.php Absolute paths works fine and I have solved much path problems setting absolute paths but they can't be used for module tempalates. So there is no way to set automatic correct paths for module templates, when Typo3 has been installed into subdomain/subfolder. From ernst at cron-it.de Sat Jul 26 15:34:42 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Sat, 26 Jul 2008 15:34:42 +0200 Subject: [TYPO3-dev] where is exec_alter_table or similar? In-Reply-To: References: Message-ID: Franz Holzinger wrote: on 23.07.2008 17:16: > Hello > > Dmitry Dulepov [typo3] a ?crit : >> Franz Holzinger wrote: >>> where can I find a function to alter the keys for a table in t3lib_DB ? >>> >>> I want to execute a SQL 'ALTER TABLE ...' command. >>> But the function $TYPO3_DB->sql is marked as deprecated. >> $GLOBALS['TYPO3_DB']->sql_query. But if you alter TYPO3 table, EM will >> prompt you to restore it when you update extension. Altering tables is a >> task reserved to TYPO3 core by default. > > But I should drop the keys before starting a long import script. And > after this has finished, the keys must be created again. You don't need to drop the keys, just use: ALTER TABLE table DISABLE KEYS; and after finishing the import ALTER TABLE table ENABLE KEYS; This is of course MySQL specific. Cheers, Ernesto From typo3news at otherone.de Sat Jul 26 19:44:31 2008 From: typo3news at otherone.de (Uschi Renziehausen) Date: Sat, 26 Jul 2008 19:44:31 +0200 Subject: [TYPO3-dev] Very bad BE performance when loading the form for creating/editing a CE In-Reply-To: References: Message-ID: Hello Oliver, I thank you a lot for your answer and for your questions. For the questions, I will not be able to answer most of them before tuesday because I simply do not know how or do not have the rights to find out. But I will try hard, can you stay tuned, please :-) Uschi Oliver Rowlands wrote: > Hi Uschi, > > be_acl might be one of your problems as it adds a lot of complexity to > the backend permissions logic. > > Though I doubt this is the root of your problems as your backend page > loading times sound rather slow. > > When it comes to TYPO3 performance there are a number of issues which > you need to be consider: > > - Server hardware specification: what type of hardware are you currently > running your project on? > > - Filesystem optimisations: what filesystem are you currently using? Has > it been optimised? > > - PHP pre-processor: are you running a PHP accelerator (eg: eAccelerator)? > > - mySQL optimisation: has your mySQL configuration been optimised for > your hardware? Are you using query caching? Are you running your tables > in myISAM or InnoDB? > > - TYPO3 backend optimisations: have you optimised the TYPO3 backend? > Michiel posted a good article about the issue on his blog last month [1]. > > We currently run a number of large TYPO3 sites (5000+ pages) and have > not had any major performance issues with the backend as long as > everything has been optimised correctly. > > The only problem we have had in the past is with large numbers of > sibling pages in the same branch of the page tree. In this case using > the local 'Mount as treeroot' option usually solved the problem. > > Best regards, > > Oliver > > [1] http://typofree.org/articles/optimizing-typo3-backend-responsiveness/ > > Uschi Renziehausen wrote: >> Dear devs, >> >> in our university project we encountered a performance problem that >> makes certain parts of the BE very frustrating to use for ordinary >> authors when working with CE forms like text or text with image. >> >> Situation: >> - Pagetree currently has 2500 pages and will at least double up in the >> following 3 months. >> - ALL editors need to be able to link to ALL pages of the tree (e.g. >> using CType menu) regardless whether they are allowed to edit a page >> or not. That means, they need at read access to the whole pagetree. >> - We are using be_acl, typo3 4.2 dev (latest branch). >> - Each editors' group has at least 2 dbmounts >> a) one for the part of the pagetree they are responsible for >> b) one for the whole pagetree with read only to be able to link to >> all pages >> >> >> Some statistics: >> I made some tests by simply counting how long it takes to load >> something. >> >> As an admin >> >> Loading the pagetree (Web->Page): 3 >> Loading pagecontent (clicking on the title of a page): 2 >> Loading CE Text form (clicking on the icon in new content element >> wizard): 3 >> Saving the CE Text: 3 >> >> As an editor with only one DB-mount a (some 80 pages) >> >> Loading the pagetree (Web->Page): 3 >> Loading pagecontent (clicking on the title of a page): 3 >> Loading CE Text form (clicking on the icon in new content element >> wizard): 5 (!!!) >> Saving the CE Text: 5 >> >> >> As an editor with 2 DB-mounts (a and b) >> >> Loading the pagetree (Web->Page): 5 >> Loading pagecontent (clicking on the title of a page): 4 >> Loading CE Text form (clicking on the icon in new content element >> wizard): 18 (!!!) >> Saving the CE Text: 6 >> >> As you can see, the size of the pagetree has an enormous impact on how >> long it takes to load the editing form for a CE. Counting to 18 until >> a form shows up will put editors into a very bad mood. >> >> Any ideas what might be the bottleneck and how performance could be >> improved? >> >> Regards, Uschi > > From jigal at xs4all.nl Sat Jul 26 21:45:37 2008 From: jigal at xs4all.nl (Jigal van Hemert) Date: Sat, 26 Jul 2008 21:45:37 +0200 Subject: [TYPO3-dev] where is exec_alter_table or similar? In-Reply-To: References: Message-ID: Franz Holzinger wrote: > But I should drop the keys before starting a long import script. And > after this has finished, the keys must be created again. This is only true for MyISAM tables which store the indexes in seperate files. InnoDB tables store the table data and indexes in a tablespace. Recreating the indexes after a long import will cause MySQL to create a temporary copy of the table to add the indexes to. You can speed mass inserts in InnoDB up by disabling autocommit and sometimes by turning off the uniqueness checks. (see: http://dev.mysql.com/doc/refman/5.0/en/innodb-tuning.html ) -- Jigal van Hemert. From stig at 8620.dk Mon Jul 28 09:26:13 2008 From: stig at 8620.dk (=?ISO-8859-1?Q?Stig_N=F8rgaard_F=E6rch?=) Date: Mon, 28 Jul 2008 09:26:13 +0200 Subject: [TYPO3-dev] Ajax/JS help needed. Message-ID: I'm trying to create a new version of the Roles extension which is compatible with 4.2 and up. I have based the new Roles menu on the new shortcutmenu. I have almost got it working, but I have one problem which is bugging me still. I use this: new Ajax.Updater('typo3-menu', TS.PATH_typo3 + 'ajax.php', { parameters : 'ajaxID=ModuleMenu::render', asynchronous : false, evalScripts : true, onComplete : eval(shortcut) }); to refresh the ModuleMenu after a role has been activated. This should also refresh the javascript function used to switch modules so that it's possible to actually possible to access new menuitems. The ModuleMenu seems to be refreshed fine, as I can activate new modules which appears when I activate a Role. But then on to my problem. The onComplete part gives me some problems. To every role, it's possible to assign a shortcut from the shortcut menu. So I can have a link in the menu which should both activate a role and activate a shortcut. I got: onComplete : eval(shortcut) shortcut is a var which contains the javascript to activate the shortcut. But it doesn't work the first time I click at role+shortcut link. But it works the next time I click the same link. So it seems like that updated javascript in the ModuleMenu is not ready somehow in the same "instance". Any ideas how to solve this one?? Thanks in advance! /Stig From benni at typo3.org Mon Jul 28 09:47:07 2008 From: benni at typo3.org (Benjamin Mack) Date: Mon, 28 Jul 2008 09:47:07 +0200 Subject: [TYPO3-dev] Ajax/JS help needed. In-Reply-To: References: Message-ID: Hey Stig, how about: ... onComplete: function(xhr) { shortcut(); } ... ? I always try to avoid "eval", especially when you have the possibility of closures like in Javascript. -- greetings, benni. -SDG- From andreas at otto-hanika.de Mon Jul 28 10:16:45 2008 From: andreas at otto-hanika.de (Andreas Otto) Date: Mon, 28 Jul 2008 10:16:45 +0200 Subject: [TYPO3-dev] TYPO3xdev has been migrated to forge.typo3.org Message-ID: Hi, TYPO3xdev has been migrated to forge.typo3.org. A big "Thank you!" goes to Sebastian Kurf?rst and Andreas Wolf who did all the "dirty" import work. All TYPO3 extensions are now sub-projects of the project "Community Extension" [1]. All developers involved, please have a look if SVN checkout and commit works for you. I case of problems create a ticket [2]. [1] [2] Cheers, Andreas -- Amazon wishlist: From dmitry at typo3.org Mon Jul 28 10:49:10 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Mon, 28 Jul 2008 11:49:10 +0300 Subject: [TYPO3-dev] TYPO3xdev has been migrated to forge.typo3.org In-Reply-To: References: Message-ID: Hi! Andreas Otto wrote: > TYPO3xdev has been migrated to forge.typo3.org. A big "Thank you!" goes > to Sebastian Kurf?rst and Andreas Wolf who did all the "dirty" import work. > > All TYPO3 extensions are now sub-projects of the project "Community > Extension" [1]. > > All developers involved, please have a look if SVN checkout and commit > works for you. > > I case of problems create a ticket [2]. > > [1] > [2] Now we need a guide how to create new projects. Any pointers? On SF I could simply put it to SF SVN and that's it :) -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From fsuter at cobweb.ch Mon Jul 28 10:50:21 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Mon, 28 Jul 2008 10:50:21 +0200 Subject: [TYPO3-dev] TYPO3xdev has been migrated to forge.typo3.org In-Reply-To: References: Message-ID: Hi, > TYPO3xdev has been migrated to forge.typo3.org. A big "Thank you!" goes > to Sebastian Kurf?rst and Andreas Wolf who did all the "dirty" import work. > > All TYPO3 extensions are now sub-projects of the project "Community > Extension" [1]. > > All developers involved, please have a look if SVN checkout and commit > works for you. Haven't tried to commit yet, but checkout works fine. I had been eagerly waiting for this move and it's great to see it done so smoothly. Thanks a lot to all involved! -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From franz at fholzinger.com Mon Jul 28 11:09:02 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Mon, 28 Jul 2008 11:09:02 +0200 Subject: [TYPO3-dev] TYPO3xdev has been migrated to forge.typo3.org In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] a ?crit : > Andreas Otto wrote: >> I case of problems create a ticket [2]. >> >> [1] >> [2] > > Now we need a guide how to create new projects. Any pointers? On SF I > could simply put it to SF SVN and that's it :) I have found this: http://forge.typo3.org/wiki/team-forge/New_Projects_-_Getting_Started From andreas at otto-hanika.de Mon Jul 28 11:30:38 2008 From: andreas at otto-hanika.de (Andreas Otto) Date: Mon, 28 Jul 2008 11:30:38 +0200 Subject: [TYPO3-dev] TYPO3xdev has been migrated to forge.typo3.org In-Reply-To: References: Message-ID: Hi, > Now we need a guide how to create new projects. Any pointers? On SF I > could simply put it to SF SVN and that's it :) A podcast from Sebastian Kurf?rst and Jochen Rau exists which explains a lot of the features as outlined in Sebatian's news article [1]. [1] Cheers, Andreas -- Amazon wishlist: From info at sk-typo3.de Mon Jul 28 11:42:21 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Mon, 28 Jul 2008 11:42:21 +0200 Subject: [TYPO3-dev] TYPO3xdev has been migrated to forge.typo3.org In-Reply-To: References: Message-ID: Andreas Otto schrieb: > Hi, > > TYPO3xdev has been migrated to forge.typo3.org. A big "Thank you!" goes > to Sebastian Kurf?rst and Andreas Wolf who did all the "dirty" import work. > > All TYPO3 extensions are now sub-projects of the project "Community > Extension" [1]. > > All developers involved, please have a look if SVN checkout and commit > works for you. > > I case of problems create a ticket [2]. > > > [1] > [2] > > > Cheers, > Andreas > seems to work all. Many thanks for this work! What i saw is that i have a project where only folder trunk exists in svn. What is with folders branches/tags which are there by default, can i create them from svn? vg Steffen From Felix.Buenemann at gmx.de Mon Jul 28 11:51:55 2008 From: Felix.Buenemann at gmx.de (Felix Buenemann) Date: Mon, 28 Jul 2008 11:51:55 +0200 Subject: [TYPO3-dev] Modifying TypoScript code to allow access to flexform data Message-ID: Hello, I noticed, that there is basically no way to access flexform data from within typoscript, so I'd like to extend this functionality. I have thought about a syntax like: someItem = COA someItem { 10 = TEXT 10.field = tx_templavoila_flex|some_flexform_field 10.wrap = | 20 = TEXT 20.field = tx_templavoila_flex|some_other_flexform_field } In which class of t3lib can I find the corresponding code that handles .field .data etc.? Best Regards, Felix Buenemann From masi-no at spam-typo3.org Mon Jul 28 11:56:05 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Mon, 28 Jul 2008 11:56:05 +0200 Subject: [TYPO3-dev] Modifying TypoScript code to allow access to flexform data In-Reply-To: References: Message-ID: Felix Buenemann schrieb: > Hello, > > I noticed, that there is basically no way to access flexform data from > within typoscript, so I'd like to extend this functionality. > > I have thought about a syntax like: > > someItem = COA > someItem { > 10 = TEXT > 10.field = tx_templavoila_flex|some_flexform_field > 10.wrap = | > 20 = TEXT > 20.field = tx_templavoila_flex|some_other_flexform_field > } > > In which class of t3lib can I find the corresponding code that handles > .field .data etc.? tslib_content.php but I would try to do this with user functions instead of XCLASSing. Note that a recenet discussion concerning FlexForms and BE configuration revealed that a FF can be quite complex, so a simple syntax may only work for your specific needs, but not all FFs. But better to have access to fields in a simple case then none. Masi From dmitry at typo3.org Mon Jul 28 12:35:22 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Mon, 28 Jul 2008 13:35:22 +0300 Subject: [TYPO3-dev] Modifying TypoScript code to allow access to flexform data In-Reply-To: References: Message-ID: Hi! Felix Buenemann wrote: > I noticed, that there is basically no way to access flexform data from > within typoscript, so I'd like to extend this functionality. Generic rule: search before you post. TS for flexforms was discussed a month ago. > I have thought about a syntax like: > > someItem = COA > someItem { > 10 = TEXT > 10.field = tx_templavoila_flex|some_flexform_field > 10.wrap = | > 20 = TEXT > 20.field = tx_templavoila_flex|some_other_flexform_field > } This will not work because does not take sheets, containers, sections and flexform languages into account. Please, see the earlier discussion on the subject. -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From Felix.Buenemann at gmx.de Mon Jul 28 13:17:21 2008 From: Felix.Buenemann at gmx.de (Felix Buenemann) Date: Mon, 28 Jul 2008 13:17:21 +0200 Subject: [TYPO3-dev] Modifying TypoScript code to allow access to flexform data In-Reply-To: References: Message-ID: Hello Martin, Martin Kutschker schrieb: > Felix Buenemann schrieb: >> Hello, >> >> I noticed, that there is basically no way to access flexform data from >> within typoscript, so I'd like to extend this functionality. >> someItem = COA >> someItem { >> 10 = TEXT >> 10.field = tx_templavoila_flex|some_flexform_field >> 10.wrap = | >> 20 = TEXT >> 20.field = tx_templavoila_flex|some_other_flexform_field >> } >> >> In which class of t3lib can I find the corresponding code that handles >> .field .data etc.? > > tslib_content.php but I would try to do this with user functions instead > of XCLASSing. OK, I have found the specific code in class.tslib_content:getFieldVal Now I wonder what is the best place to implement this code. One way would be to extend the tslib_cObj class, this would have the pro of making this functionality globally available and very simple to use. But I don't know how I must proceed to have this class included everywhere instead of the original class -- how I can overrride class tslib_cObj globally. You can probably give me a hint as how to achieve that. Another way as you suggested would be a userFunc, eg. something like: someItem = COA someItem { 10 = TEXT 10.field = tx_templavoila_flex 10.preUserFunc = user_ffcObj->parseFFfields 10.preUserFunc.fields = some_ff_field } In this case the flexform xml data would be passed inside $content to the user func. The user func could then do a pi_getFFvalue(xml2array($content), 'some_ff_field') and return the result as new content. However this seems way more dirty and inflexible than extending the cObj class to allow flexform fields to be specified everywhere, where native database fields are allowed. > > Note that a recenet discussion concerning FlexForms and BE configuration > revealed that a FF can be quite complex, so a simple syntax may only > work for your specific needs, but not all FFs. Could you provide a link to that discussion? > But better to have access to fields in a simple case then none. agree ;-) > Masi Best Regards, Felix Buenemann From sebastian at typo3.org Mon Jul 28 13:27:25 2008 From: sebastian at typo3.org (=?UTF-8?B?U2ViYXN0aWFuIEt1cmbCn8O8cnN0?=) Date: Mon, 28 Jul 2008 13:27:25 +0200 Subject: [TYPO3-dev] TYPO3xdev has been migrated to forge.typo3.org In-Reply-To: References: Message-ID: Hey Steffen, > What i saw is that i have a project where only folder trunk exists in > svn. What is with folders branches/tags which are there by default, can > i create them from svn? You can just create them if you are the extension author :-) Greets Sebastian > > vg Steffen From info at sk-typo3.de Mon Jul 28 13:41:37 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Mon, 28 Jul 2008 13:41:37 +0200 Subject: [TYPO3-dev] TYPO3xdev has been migrated to forge.typo3.org In-Reply-To: References: Message-ID: Andreas Otto schrieb: > Hi, > > TYPO3xdev has been migrated to forge.typo3.org. A big "Thank you!" goes > to Sebastian Kurf?rst and Andreas Wolf who did all the "dirty" import work. > > All TYPO3 extensions are now sub-projects of the project "Community > Extension" [1]. > > All developers involved, please have a look if SVN checkout and commit > works for you. > > I case of problems create a ticket [2]. > > > [1] > [2] > > > Cheers, > Andreas > Hi, one big problem now: I can't update existing svn's on my local computer as the throw following error: Repository UUID '735d13b6-9817-0410-8766-e36946ffe9aa' doesn't match expected UUID '2266b86b-ac1d-dd11-99c4-001b210b3e58' so i have to delete the folder and make a new checkout. Is there another solution for this problem? vg Steffen From sebastian at typo3.org Mon Jul 28 13:55:36 2008 From: sebastian at typo3.org (=?UTF-8?B?U2ViYXN0aWFuIEt1cmbCn8O8cnN0?=) Date: Mon, 28 Jul 2008 13:55:36 +0200 Subject: [TYPO3-dev] TYPO3xdev has been migrated to forge.typo3.org In-Reply-To: References: Message-ID: Hey Steffen, I am sorry, you need to re-checkout then. Greets, Sebastian From masi-no at spam-typo3.org Mon Jul 28 14:05:34 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Mon, 28 Jul 2008 14:05:34 +0200 Subject: [TYPO3-dev] Modifying TypoScript code to allow access to flexform data In-Reply-To: References: Message-ID: Felix Buenemann schrieb: > > One way would be to extend the tslib_cObj class, this would have the pro > of making this functionality globally available and very simple to use. > But I don't know how I must proceed to have this class included > everywhere instead of the original class -- how I can overrride class > tslib_cObj globally. You can probably give me a hint as how to achieve > that. Add an XLASS inclusion code into ext_localconf.php. There are many extensions that do so if you need an example. But if you take a look at the bottom of the file, you'll figure it out yourself anyway. > Another way as you suggested would be a userFunc, eg. something like: > > someItem = COA > someItem { > 10 = TEXT > 10.field = tx_templavoila_flex > 10.preUserFunc = user_ffcObj->parseFFfields > 10.preUserFunc.fields = some_ff_field > } > > In this case the flexform xml data would be passed inside $content to > the user func. The user func could then do a > pi_getFFvalue(xml2array($content), 'some_ff_field') and return the > result as new content. > > However this seems way more dirty and inflexible than extending the cObj > class to allow flexform fields to be specified everywhere, where native > database fields are allowed. To me an XCLASS is more dirty. But of course using a preUserFunc requires more manual work on your TS setup. Masi From stig at 8620.dk Mon Jul 28 14:32:37 2008 From: stig at 8620.dk (=?ISO-8859-1?Q?Stig_N=F8rgaard_F=E6rch?=) Date: Mon, 28 Jul 2008 14:32:37 +0200 Subject: [TYPO3-dev] Ajax/JS help needed. In-Reply-To: References: Message-ID: Benjamin Mack skrev: > how about: > > ... > onComplete: function(xhr) { shortcut(); } > ... > > ? > > I always try to avoid "eval", especially when you have the possibility > of closures like in Javascript. > Hi Benjamin Thanks for answering :-) So which part of your suggestion is supposed to help me out. Not using eval or the function()... way? I'm not sure how to convert my script into this style. I have to run the contents of the shortcut var somehow as I see it. Any alternatives to eval? Closures in Javascript - is it a security issue? I have tried: onComplete : function() { return eval(roleTest) } but it doesn't change anything. /Stig From news at ringerge.org Mon Jul 28 17:35:40 2008 From: news at ringerge.org (Georg Ringer) Date: Mon, 28 Jul 2008 17:35:40 +0200 Subject: [TYPO3-dev] Magento to TYPO3 Message-ID: Hi everyone, maybe some of you noticed that I am not as much involved in TYPO3 as some weeks ago. This is because I am spending all my time with Magento - the shop system everybody talks about. With the version 1.1 it is possible to use some very cool services [1] to get all the Magento functionality to everywhere else. It is not only possible to show products, product lists, categorie trees, orders, invoices, customers, ... but it is also possible to create, update and delete all those records. I just tested this and works great. I am planning to work on an extension to be able to use those functions inside TYPO3. Of course I can't do all functionality at once and so I will concentrate on displaying products at the first time. Now there are some questions for you: - What do you think about that? - Which functions are needed the most? Which would you need? - Are you using Magento (or are you planning to do so)? As a company or private person? - What do you think about sponsoring this extension? - What do you think about helping at the code? I did already a small extension which let you export products & customers from tt_products to Magento. I put some screens on my website [2] and the ext is also at forge [3]. The ext won't work at your system out of the box because I did it for a *very* old tt_products version working with a TYPO3 3.5. Have a nice day and thanks for an answer Georg [1] http://www.magentocommerce.com/support/magento_core_api [2] http://www.rggooglemap.com/en/dev/magentoimporter.html [3] http://forge.typo3.org/projects/show/extension-magentoimporter From dmitry at typo3.org Mon Jul 28 18:50:39 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Mon, 28 Jul 2008 19:50:39 +0300 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi! Georg Ringer wrote: > maybe some of you noticed that I am not as much involved in TYPO3 as > some weeks ago. This is because I am spending all my time with Magento - > the shop system everybody talks about. > > With the version 1.1 it is possible to use some very cool services [1] > to get all the Magento functionality to everywhere else. It is not only > possible to show products, product lists, categorie trees, orders, > invoices, customers, ... but it is also possible to create, update and > delete all those records. > > I just tested this and works great. I am planning to work on an > extension to be able to use those functions inside TYPO3. Of course I > can't do all functionality at once and so I will concentrate on > displaying products at the first time. > > Now there are some questions for you: > > - What do you think about that? Sounds good. I never was a fan of any shopping system in TYPO3. > - Which functions are needed the most? Which would you need? It would be great to have Magento Backend integrated to TYPO3 Backend with SSO. Additionally I'd love to be able to generate links to products with TS. > - Are you using Magento (or are you planning to do so)? As a company or > private person? Plan to use, private. -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From christoph.koehler at gmail.com Mon Jul 28 20:03:20 2008 From: christoph.koehler at gmail.com (Christoph Koehler) Date: Mon, 28 Jul 2008 18:03:20 +0000 (UTC) Subject: [TYPO3-dev] TYPO3_PROCEED_IF_NO_USER and ajax.php Message-ID: Hello, For the new backend login stuff [1] I need to set TYPO3_PROCEED_IF_NO_USER = 1, or else it will fail if the login information is wrong. Setting this to true across the board in ajax.php may not be desired, since ajax requests can then be made without a valid BE user. Does anyone have a better idea, or know enough to say that this won't be a problem? Thanks! Christoph [1] -- I'm using an evaluation license of nemo since 412 days. You should really try it! http://www.malcom-mac.com/nemo From christoph.koehler at gmail.com Mon Jul 28 20:15:10 2008 From: christoph.koehler at gmail.com (Christoph Koehler) Date: Mon, 28 Jul 2008 18:15:10 +0000 (UTC) Subject: [TYPO3-dev] TYPO3_PROCEED_IF_NO_USER and ajax.php References: Message-ID: In article Christoph Koehler wrote: > Hello, > For the new backend login stuff [1] I need to set > TYPO3_PROCEED_IF_NO_USER = 1, or else it will fail if the login > information is wrong. Setting this to true across the board in > ajax.php may not be desired, since ajax requests can then be > madewithout a valid BE user. > Does anyone have a better idea, or know enough to say that this > won'tbe a problem? One idea would be to define another section in the typo3_conf_vars. Right now, the ajaxIDs are defined in [BE][AJAX], maybe we could define something like [BE][AJAX_NO_LOGIN] and add ajaxids to it that don't require a login. Then, in ajax.php, we can get the ajaxid, see if it doesn't require a login, if it doesn't, define TYPO3_PROCEED_IF_NO_USER, if not -by default- don't define it. Sound good? Christoph -- I'm using an evaluation license of nemo since 412 days. You should really try it! http://www.malcom-mac.com/nemo From mail-spam at ringerge.org Mon Jul 28 20:36:32 2008 From: mail-spam at ringerge.org (Georg Ringer) Date: Mon, 28 Jul 2008 20:36:32 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Dmitry Dulepov wrote: > It would be great to have Magento Backend integrated to TYPO3 Backend > with SSO. Yes a friend has got the SSO on his list. Do you have any experience with TYPO3 Single Sign On [1]? > Additionally I'd love to be able to generate links to products > with TS. This should be absolutly no problem! Georg [1] http://www.single-signon.com/ From franz at fholzinger.com Mon Jul 28 21:03:00 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Mon, 28 Jul 2008 21:03:00 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Georg Ringer a ?crit : > This is because I am spending all my time with Magento - > the shop system everybody talks about. > > I just tested this and works great. I am planning to work on an > extension to be able to use those functions inside TYPO3. Of course I > can't do all functionality at once and so I will concentrate on > displaying products at the first time. > > Now there are some questions for you: > > - What do you think about that? To implement Magento for TYPO3 is one of the worst things that can happen to the future of the currently developed TYPO3 shop extensions. - Franz From mail-spam at ringerge.org Mon Jul 28 21:14:07 2008 From: mail-spam at ringerge.org (Georg Ringer) Date: Mon, 28 Jul 2008 21:14:07 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi Franz, Franz Holzinger wrote: > To implement Magento for TYPO3 is one of the worst things that can > happen to the future of the currently developed TYPO3 shop extensions. I am missing a bit the reasons why this is not good in your eyes! Please explain? tt_products will *never* be that powerful as Magento is already now! I don't want to get personal but using tt_products and adopting it to your needs has never been real fun in my eyes! I know TYPO3 quite well and written enough extensions but sorry to say so! Magento is one of the most powerful shop systems on the open source market which is developed by a strong team and a big community is starting! Many companies are intested in Magento and this just can't be said about tt_products but about TYPO3 as CMS. Out of this reasons It makes very much sense to me to connect these 2 systems! Georg PS: I am fine with it that you don't want to use it or don't like it but don't be sad if I say the same about tt_products. PPS: This thread should really be about Magento & TYPO3 and not about anything else, thanks From dmitry at typo3.org Mon Jul 28 21:22:41 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Mon, 28 Jul 2008 22:22:41 +0300 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi! Georg Ringer wrote: > Yes a friend has got the SSO on his list. Do you have any experience > with TYPO3 Single Sign On [1]? I have more negative feedback than positive: times out too often, works bad with anonymous proxies, etc. -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From dmitry at typo3.org Mon Jul 28 21:23:37 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Mon, 28 Jul 2008 22:23:37 +0300 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi! Georg Ringer wrote: > Franz Holzinger wrote: >> To implement Magento for TYPO3 is one of the worst things that can >> happen to the future of the currently developed TYPO3 shop extensions. > > I am missing a bit the reasons why this is not good in your eyes! Please > explain? Because they cannot compete with Magento :) It is bad for them but good for TYPO3 :) -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From christoph.koehler at gmail.com Mon Jul 28 23:45:18 2008 From: christoph.koehler at gmail.com (Christoph Koehler) Date: Mon, 28 Jul 2008 21:45:18 +0000 (UTC) Subject: [TYPO3-dev] TYPO3_PROCEED_IF_NO_USER and ajax.php References: Message-ID: In article Christoph Koehler wrote: > In article > Christoph > Koehler wrote: > One idea would be to define another section in the typo3_conf_vars. > Right now, the ajaxIDs are defined in [BE][AJAX], maybe we could > define something like [BE][AJAX_NO_LOGIN] and add ajaxids to it that > don't require a login. Then, in ajax.php, we can get the ajaxid, see > if it doesn't require a login, if it doesn't, > defineTYPO3_PROCEED_IF_NO_USER, if not -by default- don't define it. I ended up hardcoding the two ajaxID calls that don't have a user into ajax.php; it works great. The problem in general is that the definition needs to be made before init.php is called, and you can't really do much so early. Christoph -- I'm using an evaluation license of nemo since 413 days. You should really try it! http://www.malcom-mac.com/nemo From niels.froehling at adsignum.com Tue Jul 29 02:33:40 2008 From: niels.froehling at adsignum.com (=?ISO-8859-1?Q?Niels_Fr=F6hling?=) Date: Mon, 28 Jul 2008 18:33:40 -0600 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hy Georg; >> To implement Magento for TYPO3 is one of the worst things that can >> happen to the future of the currently developed TYPO3 shop extensions. >> > > I am missing a bit the reasons why this is not good in your eyes! Please > explain? > > tt_products will *never* be that powerful as Magento is already now! I > don't want to get personal but using tt_products and adopting it to your > needs has never been real fun in my eyes! I know TYPO3 quite well and > written enough extensions but sorry to say so! > > Magento is one of the most powerful shop systems on the open source > market which is developed by a strong team and a big community is > starting! Many companies are intested in Magento and this just can't be > said about tt_products but about TYPO3 as CMS. Out of this reasons It > makes very much sense to me to connect these 2 systems! > I don't know Franz exact complaints, but I can imagine quite a lot worries that your statement produces. I don't know the Magneto system, but I know a lot other tries of this kind with other CMSs like Joomla + CP and consorten. I personally think that integration of other systems functionality into a extendable system isn't bad per-se, but the realization of these 'bridges' often renders both sistems useless and/or currupt untill the point of no-repair. I can imagine that a Typo3 + SMF or Typo3 + Plone or then Typo3 + Magneto will not make the burned kids feeling safe, so to say. The comment about SSO allready made our day, right? How are you going to explain and implement, and explain the implementation of a 'bridge' between Typo3 + Magneto? Even though I don't agree with Franz, I do understand the concern that Magneto will (like a Magnet :-) suck developer-resources from tt_product, which would be bad, because then we don't have a minimal kickstarting product-extension anymore. Sometimes minimal is sufficient, and sometimes it's even better than the bloated system. In which way do you think Magneto renders tt_product obsolete? In which market are they competing, anyway? Could you possibly configure your product the TS-way (means: does Magneto have TS-integration)? From my experience in Software-Development the 'bridges' though, are bad^TM. Too much cooks, too much styles, too different concepts, and you try to mangle them by pure force together. In a perfect world we would have /well designed/ systems, and the system could just be sub-classed by typo3_magnet extends base_magneto. How are you going to prevent version-madness and incomaptibilties? Do the people of Magneto care about Typo? Will they change their core for easying integration into other systems, especially Typo3? Will they make any compromises for Typo3 if the time of getting rid of the old useless code? There are a lot of questions open, and even though I understand your enthusiasm, I understand Franz's protectionism also. Ciao Niels From mail-spam at ringerge.org Tue Jul 29 06:29:03 2008 From: mail-spam at ringerge.org (Georg Ringer) Date: Tue, 29 Jul 2008 06:29:03 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi Niels, thanks for your statement! > I personally think that integration of other systems functionality into > a extendable system isn't bad per-se, but the realization of these > 'bridges' often renders both sistems useless and/or currupt untill the > point of no-repair. Magento supports and wants these brigdes! The services are not a hack and will be even supported more and more. They are not only for displaying products but for really more issues! It is possible to create invoices and manage all products from anywhere, e.g. ERP,... > I can imagine that a Typo3 + SMF or Typo3 + Plone or > then Typo3 + Magneto will not make the burned kids feeling safe, so to > say. Sorry I don't understand that. The difference with SMF is that IMO SMF doesn't offer this open architecture. > The comment about SSO allready made our day, right? How are you > going to explain and implement, and explain the implementation of a > 'bridge' between Typo3 + Magneto? The implementation is very easy! E.g. those 6 lines: ----- $proxy = new SoapClient('http://magentohost/api/soap/?wsdl'); $sessionId = $proxy->login('apiUser', 'apiKey'); $filters = array( 'sku' => array('like'=>'1234%') ); $products = $proxy->call($sessionId, 'product.list', array($filters)); ----- You will get all products (as array) where the sku begins with "1234". It couldn't be really easier! > Even though I don't agree with Franz, > I do understand the concern that Magneto will (like a Magnet :-) suck > developer-resources from tt_product, which would be bad, because then we > don't have a minimal kickstarting product-extension anymore. IMO not too many developers are developing tt_products but this is really IMO! > Sometimes > minimal is sufficient, and sometimes it's even better than the bloated > system. In which way do you think Magneto renders tt_product obsolete? I never said that tt_products is obsolete! If you need a shop for 10 products, of course it will be better to use tt_products. In my case I needed a new version of a shop for a big existing shop which was an old and hacked tt_products. There are not real content pages and so I could choose between tt_products and magento and the decission wasn't very easy because of the lack of experience with Magento but I don't regret it! > In which market are they competing, anyway? Could you possibly configure > your product the TS-way (means: does Magneto have TS-integration)? Please take a look at the magento website [1] or the Feature list [2] but IMO it is like TYPO3 <> Joomla with Magento <> tt_products. It is a complete different kind of coding world and a complete different view. Of course Magento doesn't have any TS! It is also far more complicated to integrate TYPO3 inside Magento because TYPO3 just doesn't have this API! > From my experience in Software-Development the 'bridges' though, are > bad^TM. Too much cooks, too much styles, too different concepts, and you > try to mangle them by pure force together. No one is forced and as I said above, the bridges are done by the Magento developers to connect Magento with the outside of the world! > How are you going to prevent > version-madness and incomaptibilties? Of course Magento is always free to change the own API but this won't happen too much because this wouldn't be good for them either. My extension will be of course at forge, so everyone is invited to help there. Do the people of Magneto care > about Typo? Will they change their core for easying integration into > other systems, especially Typo3? Will they make any compromises for > Typo3 if the time of getting rid of the old useless code? As above! IMO they care about TYPO3 as much about WP or any other CMS tool. Which compromises you talk about? Of course you can write also new modules for Magento, it is open source too!! > There are a lot of questions open, and even though I understand your > enthusiasm, I understand Franz's protectionism also. Again: If someone wants to use tt_products, he is free to go! Magento is getting stronger and stronger and the connection will also help TYPO3 a lot! I see this connection more like an integration of Google Maps or even like Mootools, JQuery (of course not identical!) but these are stand-alone codes which enrich a website. Georg [1] http://www.magentocommerce.com/ [2] http://www.magentocommerce.com/features From fsuter at cobweb.ch Tue Jul 29 08:28:32 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Tue, 29 Jul 2008 08:28:32 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi Georg, Thanks for these very interesting news. > - What do you think about that? It's great. No TYPO3 e-commerce extension is ever going to be as powerful as Magento. > - Which functions are needed the most? Which would you need? Off the top of my head, I would say the most interesting would be to be able to display Magento products and categories inside TYPO3. I would have to ask my colleagues who are more involved with Magento. > - Are you using Magento (or are you planning to do so)? As a company or > private person? We should soon be launching our first site using Magento and we have begun selling more actively to our clients. > - What do you think about sponsoring this extension? Possibly. That would depend on the features being developed. > - What do you think about helping at the code? If we had a project with TYPO3/Magento integration needs surely, but at the moment there's nothing of the kind in our pipeline. Cheers -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From typo3 at mda.ch Tue Jul 29 08:38:54 2008 From: typo3 at mda.ch (Christopher Schnell) Date: Tue, 29 Jul 2008 08:38:54 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi Georg, Francois Suter schrieb: > Hi Georg, > > Thanks for these very interesting news. > dito. Although I am a fan of the concept "one specialized small system for a certain task", others are not and so, integration can be a very good thing. >> - What do you think about that? >> > > It's great. No TYPO3 e-commerce extension is ever going to be as > powerful as Magento. > dito >> - Are you using Magento (or are you planning to do so)? As a company or >> private person? >> Not yet, but if I have to implement one more shop system, it will be. >> - What do you think about helping at the code? >> > > If we had a project with TYPO3/Magento integration needs surely, but at > the moment there's nothing of the kind in our pipeline. > the same for me. regards, Christopher. From info at sk-typo3.de Tue Jul 29 09:59:55 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Tue, 29 Jul 2008 09:59:55 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi Georg, I like the idea. I thought that Dmitry has already something in the pipe :-) I think there is no need to discuss the sense of this integration as the client needs are enough sense doing this. About SSO - you want to integrate Magento into TYPO3 and not the other way arround, so you have to login in Magento from T3. You don't need SSO as this is normally the way connecting systems on different hosts, so may be you can make an API call from T3 authentivation service. vg Steffen From franz at fholzinger.com Tue Jul 29 10:01:20 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Tue, 29 Jul 2008 10:01:20 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Georg Ringer a ?crit : >> Sometimes minimal is sufficient, and sometimes it's even better than >> the bloated system. In which way do you think Magneto renders >> tt_product obsolete? > > I never said that tt_products is obsolete! If you need a shop for 10 > products, of course it will be better to use tt_products. So you declare tt_products for not recommended for shops with more than only 10 products because a TYPO3 shop based on your Magento extension will be better and because your Magento team is stronger? > Of course Magento doesn't have any TS! It is also far more complicated > to integrate TYPO3 inside Magento because TYPO3 just doesn't have this API! So this is an antagonism to your previous statement of a very easy integration of the Magento shop into TYPO3. Franz From news at ringerge.org Tue Jul 29 10:08:46 2008 From: news at ringerge.org (Georg Ringer) Date: Tue, 29 Jul 2008 10:08:46 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi Franz, Franz Holzinger wrote: > So you declare tt_products for not recommended for shops with more than > only 10 products because a TYPO3 shop based on your Magento extension > will be better and because your Magento team is stronger? No but I wouldn't take tt_products for the shop I do with 4000 products and the chance to get something better. Besides it is not "my magento team". >> Of course Magento doesn't have any TS! It is also far more complicated >> to integrate TYPO3 inside Magento because TYPO3 just doesn't have this >> API! > > So this is an antagonism to your previous statement of a very easy > integration of the Magento shop into TYPO3. No I said it is easy to integrate Magento into TYPO3 because of the cool API but not that easy to integrate TYPO3 into Magento! So it is a 6 line script to get products from Magento to TYPO3 but certainly not that easy to show pages or content elements of TYPO3 at the content pages of Magento. Anyway, I'll stop now discussing tt_products because this is offtopic here Georg From info at sk-typo3.de Tue Jul 29 10:29:29 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Tue, 29 Jul 2008 10:29:29 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi Georg, > > I like the idea. I thought that Dmitry has already something in the pipe > :-) > > I think there is no need to discuss the sense of this integration as the > client needs are enough sense doing this. > > About SSO - you want to integrate Magento into TYPO3 and not the other > way arround, so you have to login in Magento from T3. You don't need SSO > as this is normally the way connecting systems on different hosts, so > may be you can make an API call from T3 authentivation service. > > vg Steffen btw - there is a way using xml-rpc as described here: http://www.magentocommerce.com/boards/viewthread/11773/ vg Steffen From dmitry at typo3.org Tue Jul 29 11:55:05 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 29 Jul 2008 12:55:05 +0300 Subject: [TYPO3-dev] [TYPO3] Hackontest voting ends in two days. Vote for TYPO3! Message-ID: Hi! Hackontest is a 24 hour programming competition between teams of three open source software projects. We are participating. But we are on the third place right now, which means we can be overvoted. We need your help to be included! We got lots of fascinating features there. If we are chosen, we can add major improvements to TYPO3. Here is a list of our projects: - Improve performance by implementing per-object caching - Reduce redundant cached content (sharing similar content for different usergroups) - OpenID authentification for the backend - Integrated RSS feed for content elements per page - Add Messaging Queue Support - Extbase - pibase 2.0 - RSA authentication library - memcached api - Zap the the gremlins, 2008 edition Please, vote for your favorite CMS to ensure that we are in this competition! Here is the address: http://www.hackontest.org/ You need to register and vote for features you want to see. -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From dmitry at typo3.org Tue Jul 29 12:02:51 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 29 Jul 2008 13:02:51 +0300 Subject: [TYPO3-dev] [TYPO3] Hackontest voting ends in two days. Vote for TYPO3! In-Reply-To: References: Message-ID: Hi! Dmitry Dulepov [typo3] wrote: > Hackontest is a 24 hour programming competition between teams of three > open source software projects. We are participating. But we are on the > third place right now, which means we can be overvoted. We need your > help to be included! Correction: I saw we were on the third place 20 minutes ago. I am not sure why it happened because we should be on the second. But you still can go and vote ;) -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From fsuter at cobweb.ch Tue Jul 29 12:06:37 2008 From: fsuter at cobweb.ch (Francois Suter) Date: Tue, 29 Jul 2008 12:06:37 +0200 Subject: [TYPO3-dev] [TYPO3] Hackontest voting ends in two days. Vote for TYPO3! In-Reply-To: References: Message-ID: Hi, > You need to register and vote for features you want to see. Done :-) BTW who the heck is Junior? -- Francois Suter Cobweb Development Sarl - http://www.cobweb.ch From puffi666 at gmail.com Tue Jul 29 12:29:09 2008 From: puffi666 at gmail.com (Daniel Huf) Date: Tue, 29 Jul 2008 12:29:09 +0200 Subject: [TYPO3-dev] [TYPO3] Hackontest voting ends in two days. Vote for TYPO3! In-Reply-To: References: Message-ID: voil? Dmitry Dulepov [typo3] wrote: > Hi! > > Hackontest is a 24 hour programming competition between teams of three > open source software projects. We are participating. But we are on the > third place right now, which means we can be overvoted. We need your > help to be included! > > We got lots of fascinating features there. If we are chosen, we can add > major improvements to TYPO3. Here is a list of our projects: > - Improve performance by implementing per-object caching - Reduce > redundant cached content (sharing similar content for different > usergroups) - OpenID authentification for the backend - Integrated > RSS feed for content elements per page > - Add Messaging Queue Support > - Extbase - pibase 2.0 > - RSA authentication library > - memcached api - Zap the the gremlins, 2008 edition > > Please, vote for your favorite CMS to ensure that we are in this > competition! > > Here is the address: > http://www.hackontest.org/ > > You need to register and vote for features you want to see. > From typo3 at rvt.dds.nl Tue Jul 29 14:16:19 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Tue, 29 Jul 2008 07:16:19 -0500 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: On Jul 28, 2008, at 2:03 PM, Franz Holzinger wrote: > Georg Ringer a ?crit : > >> This is because I am spending all my time with Magento - >> the shop system everybody talks about. >> >> I just tested this and works great. I am planning to work on an >> extension to be able to use those functions inside TYPO3. Of course I >> can't do all functionality at once and so I will concentrate on >> displaying products at the first time. >> >> Now there are some questions for you: >> >> - What do you think about that? > > To implement Magento for TYPO3 is one of the worst things that can > happen to the future of the currently developed TYPO3 shop extensions. > > - Franz > I had to display 10.000 products in 100 different varieties once. Trust me that tt_product is not going to help you there. I had extremely slow rendering times and looking at tt_products source code it was not possible to extend it in any sensible way. Ries From franz at fholzinger.com Tue Jul 29 14:26:09 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Tue, 29 Jul 2008 14:26:09 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hello Georg, > Franz Holzinger wrote: >> So you declare tt_products for not recommended for shops with more >> than only 10 products because a TYPO3 shop based on your Magento >> extension will be better and because your Magento team is stronger? > > No but I wouldn't take tt_products for the shop I do with 4000 products > and the chance to get something better. I will still improve some TYPO3 shop extension and will not use Magento. A TYPO3 extension can be better integrated into TYPO3 than an external system. >> So this is an antagonism to your previous statement of a very easy >> integration of the Magento shop into TYPO3. > > No I said it is easy to integrate Magento into TYPO3 because of the cool > API but not that easy to integrate TYPO3 into Magento! TYPO3 forces all frontend extensions into the pi_base class. IMHO there is no alternative API possible for TYPO3 extensions at the moment. TYPO3 could also be improved to offer an API for third party calls. Magento is a _whole CMS_ like TYPO3, not only a shop. So you have to also rewrite all other TYPO3 extensions for it. Franz From blueduck at gmx.net Tue Jul 29 14:46:42 2008 From: blueduck at gmx.net (Stefano Kowalke) Date: Tue, 29 Jul 2008 14:46:42 +0200 Subject: [TYPO3-dev] [TYPO3] Hackontest voting ends in two days. Vote for TYPO3! References: Message-ID: Hi Dmitry, i translate your article to german and post it to the german mailinglist. Hope to became #1 ;-) Cheers Stefano -- Seit?dem?1.1.2008?werden?Daten?zu?jeder?E-Mail?verdachtsunabh?ngig?gespeichert!? Weitere?Informationen: www.vorratsdatenspeicherung.de GPG-ID: 0x2B08936D Key-Fingerprint: 7F31 BCF0 70C0 B3B1 1235 07E9 1777 D7A0 2B08 936D From info at sk-typo3.de Tue Jul 29 14:48:23 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Tue, 29 Jul 2008 14:48:23 +0200 Subject: [TYPO3-dev] [TYPO3] Hackontest voting ends in two days. Vote for TYPO3! In-Reply-To: References: Message-ID: Francois Suter schrieb: > Hi, > >> You need to register and vote for features you want to see. > > Done :-) > > BTW who the heck is Junior? > Junior is the maker of typo3forum.net vg Steffen From info at sk-typo3.de Tue Jul 29 14:50:00 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Tue, 29 Jul 2008 14:50:00 +0200 Subject: [TYPO3-dev] [TYPO3] Hackontest voting ends in two days. Vote for TYPO3! In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Hackontest is a 24 hour programming competition between teams of three > open source software projects. We are participating. But we are on the > third place right now, which means we can be overvoted. We need your > help to be included! > > We got lots of fascinating features there. If we are chosen, we can add > major improvements to TYPO3. Here is a list of our projects: > - Improve performance by implementing per-object caching - Reduce > redundant cached content (sharing similar content for different > usergroups) - OpenID authentification for the backend - Integrated > RSS feed for content elements per page > - Add Messaging Queue Support > - Extbase - pibase 2.0 > - RSA authentication library > - memcached api - Zap the the gremlins, 2008 edition > Hi, why we get these improvements only if we are choosen? I don't get the relation vg Steffen From news at ringerge.org Tue Jul 29 15:53:16 2008 From: news at ringerge.org (Georg Ringer) Date: Tue, 29 Jul 2008 15:53:16 +0200 Subject: [TYPO3-dev] Magento => TYPO3: 1st progress report In-Reply-To: References: Message-ID: Hi, just a small update what I did today (besides of the usual working stuff): Finished the first draft of the extension which can do now the following stuff, configurable via flexforms & templates - API to handle the SOAP stuff - API to retrive a single product including its images and the categories which are saved for this product. - API to retrive a product list: E.g. all products with sku starting 123 or where the title is like %foo% - API to retrieve some category information So all you would now need to show a specifc product, product list in your TYPO3 would be: 1.) Install the extension 2.) Set the Url to your Magento Shop in the EM configuration, including the username and password (you configured in the Magento backend) 3.) Go to a page, add the plugin, choose what you want: E.g. Select "Single Product" > Set the SKU > Save 4.) You are done 1-2min work. I am sorry, there is no demo link but it will follow later. The next steps are: - Extend the basic stuff to get things like * A simple product list with page browser * A simple search module * Kind of teaser: Show the latest x products * Let the categories of Magento be a part of the flexforms - Demo somewhere online - More ToDos ;) Anyways I won't do much in August because I am on holiday (really no internet, sorry guys *g*) put I will keep you informed! Georg From franz at fholzinger.com Tue Jul 29 15:56:51 2008 From: franz at fholzinger.com (Franz Holzinger) Date: Tue, 29 Jul 2008 15:56:51 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hello Ries > I had to display 10.000 products in 100 different varieties once. > Trust me that tt_product is not going to help you there. I had extremely > slow rendering times and looking at tt_products source code it was not > possible to extend it in any sensible way. Have a look at the thread 'list module hangs at 1 million records'. You must add some additional indexes to make the SQL queries much faster. Franz From news at ringerge.org Tue Jul 29 16:03:58 2008 From: news at ringerge.org (Georg Ringer) Date: Tue, 29 Jul 2008 16:03:58 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Franz Holzinger wrote: > Magento is a _whole CMS_ like TYPO3, not only a shop. So you have to > also rewrite all other TYPO3 extensions for it. Magento is not a _Content_ ManagementSytem and I said: I am not planning yet to go this way but the different one! Georg From typo3 at rvt.dds.nl Tue Jul 29 16:20:59 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Tue, 29 Jul 2008 09:20:59 -0500 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: On Jul 29, 2008, at 8:56 AM, Franz Holzinger wrote: > Hello Ries > >> I had to display 10.000 products in 100 different varieties once. >> Trust me that tt_product is not going to help you there. I had >> extremely >> slow rendering times and looking at tt_products source code it was >> not >> possible to extend it in any sensible way. > > Have a look at the thread 'list module hangs at 1 million records'. > > You must add some additional indexes to make the SQL queries much > faster. > > Franz Hey Franz, tt_products also didn't support the product structure we needed for this particular job. Ries From dmitry at typo3.org Tue Jul 29 16:41:54 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 29 Jul 2008 17:41:54 +0300 Subject: [TYPO3-dev] Magento => TYPO3: 1st progress report In-Reply-To: References: Message-ID: Hi! Georg Ringer wrote: > So all you would now need to show a specifc product, product list in > your TYPO3 would be: > 1.) Install the extension > 2.) Set the Url to your Magento Shop in the EM configuration, including > the username and password (you configured in the Magento backend) > 3.) Go to a page, add the plugin, choose what you want: E.g. Select > "Single Product" > Set the SKU > Save > 4.) You are done Q: what will the plugin do? Does it show product on the TYPO3 page? Do you use Magento formatting or plugin has its own template to format products? > 1-2min work. Sounds impressive! -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From news at ringerge.org Tue Jul 29 16:55:53 2008 From: news at ringerge.org (Georg Ringer) Date: Tue, 29 Jul 2008 16:55:53 +0200 Subject: [TYPO3-dev] Magento => TYPO3: 1st progress report In-Reply-To: References: Message-ID: Dmitry Dulepov wrote: > Q: what will the plugin do? Does it show product on the TYPO3 page? Do > you use Magento formatting or plugin has its own template to format > products? the API delivers you an array with all the information. What I currently do is very simple: Get the correct array using the API I wrote (which uses the services) and create for every entry in the array a marker. Marker is used in a normal template. So you can design everything like you want it to look like. My current template looks like http://pastebin.com/m664dc67c Some more progress: An own extension to get the Backend of Magento into the Backend of TYPO3 using an iframe. No SSO and this is also not that important to me because it isn't that time consuming and difficult to enter your username+pwd a 2nd time ;) I also created an own group at the Magento website [1]. You can add yourself or create a comment (if you are registered and their website). Georg [1] http://www.magentocommerce.com/group/view/243/typo3 From masi-no at spam-typo3.org Tue Jul 29 17:01:28 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Tue, 29 Jul 2008 17:01:28 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Franz Holzinger schrieb: > > TYPO3 forces all frontend extensions into the pi_base class. IMHO there > is no alternative API possible for TYPO3 extensions at the moment. Why? You don't have to extend pi_base at all if you don't want to. It's just a custom. You have to have only a method that takes the two parameters $conf and $content, which you can name whatever you like. Masi From dmitry at typo3.org Tue Jul 29 17:11:51 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Tue, 29 Jul 2008 18:11:51 +0300 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi! Franz Holzinger wrote: > TYPO3 forces all frontend extensions into the pi_base class. IMHO there > is no alternative API possible for TYPO3 extensions at the moment. TYPO3 > could also be improved to offer an API for third party calls. tslib_pibase is optional. Frontend plugins are not required to use it. > Magento is a _whole CMS_ like TYPO3, not only a shop. So you have to > also rewrite all other TYPO3 extensions for it. I think you misunderstand. It is not about using TYPO3 extensions in Magento, it is about connecting two systems together. Just like connecting oscommerce or Google Maps to TYPO3. -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From info at sk-typo3.de Wed Jul 30 00:07:42 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 30 Jul 2008 00:07:42 +0200 Subject: [TYPO3-dev] Magento => TYPO3: 1st progress report In-Reply-To: References: Message-ID: additional: we created a new project on forge where all can be viewed/reported/tested It's just the beginning, but working in team can help a lot. For the start several extensions are developed for expieriences, a master extension will be created step by step. http://forge.typo3.org/projects/show/extension-magentobackend vg Steffen From niels.froehling at adsignum.com Wed Jul 30 01:08:31 2008 From: niels.froehling at adsignum.com (=?ISO-8859-1?Q?Niels_Fr=F6hling?=) Date: Tue, 29 Jul 2008 17:08:31 -0600 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hy Georg; > > Magento supports and wants these brigdes! The services are not a hack > and will be even supported more and more. They are not only for > displaying products but for really more issues! It is possible to create > invoices and manage all products from anywhere, e.g. ERP,... > If it is like that, that you basically have a libMagneto and a Magneto-FrontEnd, I highly suggest to create a complete Typo3-extension, _with_ TS, _with_ FlexForms, _with_ feuser and the stuff. Try to offer support for DirectMail (to make product-boletins) for example. Create a back-end plugin that allows you to trigger these extended functionalities. I mean, I surely don't want to dictate you what and how to do it! Maybe I can just suggest you some things that make (to me) Magneto (or any other system) appear integrated and consistend inside the Typo3-Framework, :-) So then it (the extension) would be a wrapper instead of a bridge, and a good one. >> I can imagine that a Typo3 + SMF or Typo3 + Plone or >> then Typo3 + Magneto will not make the burned kids feeling safe, so to >> say. >> > > Sorry I don't understand that. The difference with SMF is that IMO SMF > doesn't offer this open architecture. > When you got burned you're not even going near _possible_ fire, right? I suppose SMF could, if somebody wanted. Everything could be /nice/ if somebody did wanted to. I think (I only have experience with the Joomla stuff because I had to repair a completely desintegrated Joomla-Site + CP + SMF + Gallery2, I afterwards on my own account switched the site to elgg BTW) the quality of these bridges is proportional to the care of the programmers on each side. >> The comment about SSO allready made our day, right? How are you >> going to explain and implement, and explain the implementation of a >> 'bridge' between Typo3 + Magneto? >> > > The implementation is very easy! > > E.g. those 6 lines: > > ----- > $proxy = new SoapClient('http://magentohost/api/soap/?wsdl'); > $sessionId = $proxy->login('apiUser', 'apiKey'); > $filters = array( > 'sku' => array('like'=>'1234%') > ); > $products = $proxy->call($sessionId, 'product.list', array($filters)); > ----- > > You will get all products (as array) where the sku begins with "1234". > It couldn't be really easier! > You don't have something more direct than a HTTP-connection? I suppose they offer other different data-exchange-implementations too? It's not so wise to start 2 httpd-processes, possibly more, on the same machine. For the SOAP-connection, does (that) SOAP(-implementation) offer caching? Do you plan to make the fe-plugin USER_INT? Are you going to offer a Javascript SOAP-client which can be integrated into a typo-site? > Of course Magento doesn't have any TS! Of course. I meant your extension. > My extension will be of course at forge, so everyone is invited to help > there. > I possibly at least would try it for a site that does have no payment, but the shop (display). It's in a Month or so. It's not exactly excessive, maybe 300 products, so possibly we could see how to optimize the integration on the low-end (means for simple purposes, possibly for simple people, or those in a hurry). >> There are a lot of questions open, and even though I understand your >> enthusiasm, I understand Franz's protectionism also. >> > > Again: If someone wants to use tt_products, he is free to go! Magento is > getting stronger and stronger and the connection will also help TYPO3 a > lot! I see this connection more like an integration of Google Maps or > even like Mootools, JQuery (of course not identical!) but these are > stand-alone codes which enrich a website. > I think they are successfull, because your site and all of those tools, operate on _the same_ document-object-model. No concept-clash. I urge you :-), please offer more Typo3-functionality like TS (obviously not to work inside the Magneto, but inside the extension). Ciao Niels From mail-spam at ringerge.org Wed Jul 30 07:17:15 2008 From: mail-spam at ringerge.org (Georg Ringer) Date: Wed, 30 Jul 2008 07:17:15 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi Niels, please: It is Called Magento!!! > If it is like that, that you basically have a libMagneto and a > Magneto-FrontEnd, I highly suggest to create a complete Typo3-extension, > _with_ TS, _with_ FlexForms, _with_ feuser and the stuff. I will > Try to offer > support for DirectMail (to make product-boletins) for example. You creaete as normal a page you will send with DirectMail, as ususal. > I mean, I surely don't want to dictate you what and how to do it! Maybe > I can just suggest you some things that make (to me) Magneto (or any > other system) appear integrated and consistend inside the > Typo3-Framework, :-) So then it (the extension) would be a wrapper > instead of a bridge, and a good one. Yes I am planning it kind of a wrapper but as I said, first just to display everything. > You don't have something more direct than a HTTP-connection? There is currently only SOAP and XML RPC. > I suppose > they offer other different data-exchange-implementations too? It's not > so wise to start 2 httpd-processes, possibly more, on the same machine. > For the SOAP-connection, does (that) SOAP(-implementation) offer > caching? Do you plan to make the fe-plugin USER_INT? I haven't looked yet to close to the speed issue. I am planning the plugin as USER because otherwise it would be a bit too slow. > Are you going to offer a Javascript SOAP-client which can be integrated > into a typo-site? Not a #1. > I think they are successfull, because your site and all of those tools, > operate on _the same_ document-object-model. No concept-clash. I urge > you :-), please offer more Typo3-functionality like TS (obviously not to > work inside the Magneto, but inside the extension). I still don't get you but I do everything in the best way (I know). So everything template based and everything with stdWrap. So it also works if you do something like lib.singleProduct < plugin.tx_magento_pi1 lib.singleProduct.mode = SINGLEPRODUCT lib.singleProduct.sku = 123456 or lib.productList < plugin_tx_magento_pi1 lib.productList.mode = PRODUCTS lib.productList.where = 1234% lib.productList.whereField = sku have a nice day Georg From alex at axiomtech.co.uk Wed Jul 30 11:58:10 2008 From: alex at axiomtech.co.uk (Alex Masidlover) Date: Wed, 30 Jul 2008 10:58:10 +0100 Subject: [TYPO3-dev] Fwd: ldap server / sync with staticgroups Message-ID: Hi, I'm trying to get LDAP authentication to work against Typo3 and have the frontend users syncing and authentication working if I manually set the user groups for each user. Because OpenLDAP does not support memberOf (at least not without upgrading to 2.4 and adding an overlay) I need to use static groups where the users' uids are held in memberUid attributes of the group object. It looks like this has been coded for with getStaticGroups, and I have found an example of configuring it at: http://typo3.toaster-schwerin.de/typo3_dev/2005_02/msg00384.html However, I can't work out what the key options in the configuration do (searchAttr, groupFilter - is this generic to filter all groups or do I add a ### variable to only get groups for the user being considered?, searchAttr, attribute - in the userfunc, attribute of what? the group uid, the user id...) When I looked at the code for the function in the class, it seems not to use any of these conf vars but has a whole different set - are they being reforumlated somehow or is the sample config post I am looking at out of date/wrong? I think I roughly see how to configure it from the code and would think something like: userFunc = tx_ldapserver->getStaticGroups userFunc { pid = table = fe_groups filter=(&(objectClass=posixGroup)(memberUid=###IDENT###)) } But I can't see how the conf['value'] is set (which is what IDENT gets replaced with and should be the user's uid). Any help would be much appreciated, especially from someone with a working config... Thanks in advance, Alex Masidlover -- Open Source Specialist Axiom Tech Limited W: http://www.axiomtech.co.uk T: 0845 1270316 Axiom Tech is a Limited Company registered in England and Wales at 92 Didsbury Road, Stockport, SK4 2JL. Axiom Tech's company number is 5684132, our VAT registration number is 878 6568 46. Unless agreed otherwise, all services and products supplied by Axiom Tech are subject to our standard terms and conditions, available on request. From masi-no at spam-typo3.org Wed Jul 30 12:09:08 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Wed, 30 Jul 2008 12:09:08 +0200 Subject: [TYPO3-dev] Fwd: ldap server / sync with staticgroups In-Reply-To: References: Message-ID: Alex Masidlover schrieb: > Hi, > > I'm trying to get LDAP authentication to work against Typo3 and have the > frontend users syncing and authentication working if I manually set the > user groups for each user. Because OpenLDAP does not support memberOf > (at least not without upgrading to 2.4 and adding an overlay) I need to > use static groups where the users' uids are held in memberUid attributes > of the group object. I recall it uses another property which name I don't remember right now. Isn't there an option in the LDAP server configuration? Masi From niels.froehling at adsignum.com Wed Jul 30 12:24:07 2008 From: niels.froehling at adsignum.com (=?ISO-8859-1?Q?Niels_Fr=F6hling?=) Date: Wed, 30 Jul 2008 04:24:07 -0600 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hy Georg; > please: It is Called Magento!!! > Like, 'Mage'nto, or 'Magent'a. Let's try 'Cyan'ismo next time. ;-) >> I urge >> you :-), please offer more Typo3-functionality like TS (obviously not to >> work inside the Magneto, but inside the extension). >> > > I still don't get you But you understood what I meant, your example is a good example for that. You just didn't express it explicitly. > but I do everything in the best way (I know). So > everything template based and everything with stdWrap. > > So it also works if you do something like > lib.singleProduct < plugin.tx_magento_pi1 > lib.singleProduct.mode = SINGLEPRODUCT > lib.singleProduct.sku = 123456 > > or > > lib.productList < plugin_tx_magento_pi1 > lib.productList.mode = PRODUCTS > lib.productList.where = 1234% > lib.productList.whereField = sku > I do understand now, that you are trying to offer something very nice, to be implemented after thorough planification. It's just not natural to assume that first-hand, not from hobby-php implementations. Thanks for taking the time to explain a bit the details. Good luck. Niels From mail-spam at ringerge.org Wed Jul 30 12:32:05 2008 From: mail-spam at ringerge.org (Georg Ringer) Date: Wed, 30 Jul 2008 12:32:05 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi Niels, > I do understand now, that you are trying to offer something very nice, > to be implemented after thorough planification. yes I hope so. > It's just not natural to assume that first-hand, not from hobby-php > implementations. hehe ;) I do my best and it is by far not my first extension in TER, so I got a bit of experience. I got the extension key "magento" transferred from Nikolas (thx therefore). So this will be the final extension key holding all the sub projects which are existing now: - magentoimporter: Import from tt_products - magentobackend: Login of Magento inside TYPO3, screen at [1] - API - FE Plugin - BE-module Have a nice day Georg [1] http://forge.typo3.org/attachments/download/355 From dmitry at typo3.org Wed Jul 30 12:46:55 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 30 Jul 2008 13:46:55 +0300 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Hi! Georg Ringer wrote: > I got the extension key "magento" transferred from Nikolas (thx > therefore). So this will be the final extension key holding all the sub > projects which are existing now: > - magentoimporter: Import from tt_products I think many people will be interested to import from commerce ;) -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From mail-spam at ringerge.org Wed Jul 30 12:48:44 2008 From: mail-spam at ringerge.org (Georg Ringer) Date: Wed, 30 Jul 2008 12:48:44 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Dmitry Dulepov wrote: > I think many people will be interested to import from commerce ;) If someone got commerce running and want to swich, please contact me if you want help with the script. I don't have any experience with commerce and this won't change ;) Georg From info at sk-typo3.de Wed Jul 30 13:01:10 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 30 Jul 2008 13:01:10 +0200 Subject: [TYPO3-dev] options.disableDelete = 1 Message-ID: Hi, this is in documentation http://typo3.org/documentation/document-library/references/doc_core_tsconfig/4.1.0/view/1/2/#id3927218 but searching the core i don't find it. Was this removed? Did this never exists? vg Steffen From michiel at netcreators.com Wed Jul 30 13:26:43 2008 From: michiel at netcreators.com (Michiel Roos [netcreators]) Date: Wed, 30 Jul 2008 13:26:43 +0200 Subject: [TYPO3-dev] Magento to TYPO3 In-Reply-To: References: Message-ID: Niels Fr?hling schreef: > I do understand now, that you are trying to offer something very nice, > to be implemented after thorough planification. > It's just not natural to assume that first-hand, not from hobby-php > implementations. > > Thanks for taking the time to explain a bit the details. > Good luck. > Niels > Niels man . . . . Where's your faith in humanity? ;-) -- Netcreators BV :: creation and innovation www.netcreators.com Interesse in werken bij Netcreators? http://www.netcreators.com/bedrijf/vacatures/ From info at sk-typo3.de Wed Jul 30 16:14:41 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 30 Jul 2008 16:14:41 +0200 Subject: [TYPO3-dev] endless loading ... Message-ID: Hi, i can produce that on many websites. If i edit a template and i save the browser loads and loads ... doesn't stop. If i interrupt, the template is saved correct. What happens there? This seems to be on servers with big DBs. vg Steffen From info at sk-typo3.de Wed Jul 30 16:19:59 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 30 Jul 2008 16:19:59 +0200 Subject: [TYPO3-dev] endless loading ... In-Reply-To: References: Message-ID: Steffen Kamper schrieb: > Hi, > > i can produce that on many websites. If i edit a template and i save the > browser loads and loads ... doesn't stop. If i interrupt, the template > is saved correct. What happens there? > This seems to be on servers with big DBs. > > vg Steffen i think this has something todo with deleting cache caller t3lib_DB::exec_DELETEquery ERROR Lock wait timeout exceeded; try restarting transaction lastBuiltQuery DELETE FROM cache_hash vg Steffen From dmitry at typo3.org Wed Jul 30 16:40:40 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 30 Jul 2008 17:40:40 +0300 Subject: [TYPO3-dev] endless loading ... In-Reply-To: References: Message-ID: Hi! Steffen Kamper wrote: > i think this has something todo with deleting cache > > caller t3lib_DB::exec_DELETEquery > ERROR Lock wait timeout exceeded; try restarting transaction > lastBuiltQuery DELETE FROM cache_hash Do you use MyISAM for cache_hash? -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From info at sk-typo3.de Wed Jul 30 16:48:13 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 30 Jul 2008 16:48:13 +0200 Subject: [TYPO3-dev] endless loading ... In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Steffen Kamper wrote: >> i think this has something todo with deleting cache >> >> caller t3lib_DB::exec_DELETEquery >> ERROR Lock wait timeout exceeded; try restarting transaction >> lastBuiltQuery DELETE FROM cache_hash > > Do you use MyISAM for cache_hash? > Hi, no, all standard InnoDB (i saw same on support.typo3.org or typo3.org, so my installs are not the only ones ...) vg Steffen From typo3 at rvt.dds.nl Wed Jul 30 16:30:00 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Wed, 30 Jul 2008 09:30:00 -0500 Subject: [TYPO3-dev] endless loading ... In-Reply-To: References: Message-ID: On Jul 30, 2008, at 9:19 AM, Steffen Kamper wrote: > Steffen Kamper schrieb: >> Hi, >> >> i can produce that on many websites. If i edit a template and i >> save the >> browser loads and loads ... doesn't stop. If i interrupt, the >> template >> is saved correct. What happens there? >> This seems to be on servers with big DBs. >> >> vg Steffen > > > i think this has something todo with deleting cache > > caller t3lib_DB::exec_DELETEquery > ERROR Lock wait timeout exceeded; try restarting transaction > lastBuiltQuery DELETE FROM cache_hash > > vg Steffen as a test try to change DELETE FROM cache_hash to TRUNCATE cache_hash; See if that helps. Ries From info at sk-typo3.de Wed Jul 30 17:07:13 2008 From: info at sk-typo3.de (Steffen Kamper) Date: Wed, 30 Jul 2008 17:07:13 +0200 Subject: [TYPO3-dev] endless loading ... In-Reply-To: References: Message-ID: ries van Twisk schrieb: > > as a test try to change DELETE FROM cache_hash to TRUNCATE cache_hash; > > See if that helps. > > Ries > Hi Ries, sure i could patch core but this is not my aim ;-) I think it's not the best to clear cache on every save of a template. On big sites that makes editing problematic. Sometimes you save 3-4 times until you're finished. Ok, template can change render, but saving any content also change a page. To see result cache can be cleared manually vg Steffen From typo3 at rvt.dds.nl Wed Jul 30 17:20:26 2008 From: typo3 at rvt.dds.nl (ries van Twisk) Date: Wed, 30 Jul 2008 10:20:26 -0500 Subject: [TYPO3-dev] endless loading ... In-Reply-To: References: Message-ID: On Jul 30, 2008, at 10:07 AM, Steffen Kamper wrote: > ries van Twisk schrieb: > >> >> as a test try to change DELETE FROM cache_hash to TRUNCATE >> cache_hash; >> >> See if that helps. >> >> Ries >> > > Hi Ries, > > sure i could patch core but this is not my aim ;-) > > I think it's not the best to clear cache on every save of a > template. On > big sites that makes editing problematic. Sometimes you save 3-4 times > until you're finished. Ok, template can change render, but saving any > content also change a page. > To see result cache can be cleared manually I think that only relevant items needs to be flushed (or are they all relevant??). It will just give you a quick understanding if TRUNCATE can be faster. this will get you closer to the solution. I don't think a manual flush is a option since it can be done automatic... Ries > > > vg Steffen From dmitry at typo3.org Wed Jul 30 17:23:09 2008 From: dmitry at typo3.org (Dmitry Dulepov [typo3]) Date: Wed, 30 Jul 2008 18:23:09 +0300 Subject: [TYPO3-dev] endless loading ... In-Reply-To: References: Message-ID: Hi! ries van Twisk wrote: > I think that only relevant items needs to be flushed (or are they all > relevant??). > > It will just give you a quick understanding if TRUNCATE can be faster. > this will > get you closer to the solution. Shouldn't be... It is faster for MyISAM but not for InnoDB. I wonder too why this happens. -- Dmitry Dulepov TYPO3 Core team Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/ More about TYPO3: http://typo3bloke.net/ Subscribe: http://typo3bloke.net/rss.xml From typo3 at andreasburg.de Wed Jul 30 19:43:08 2008 From: typo3 at andreasburg.de (Andreas Burg) Date: Wed, 30 Jul 2008 19:43:08 +0200 Subject: [TYPO3-dev] [TYPO3] Hackontest voting ends in two days. Vote for TYPO3! In-Reply-To: References: Message-ID: Dmitry Dulepov [typo3] schrieb: > Hi! > > Hackontest is a 24 hour programming competition between teams of three > open source software projects. We are participating. But we are on the > third place right now, which means we can be overvoted. We need your > help to be included! > > We got lots of fascinating features there. If we are chosen, we can add > major improvements to TYPO3. Here is a list of our projects: > - Improve performance by implementing per-object caching - Reduce > redundant cached content (sharing similar content for different > usergroups) - OpenID authentification for the backend - Integrated > RSS feed for content elements per page > - Add Messaging Queue Support > - Extbase - pibase 2.0 > - RSA authentication library > - memcached api - Zap the the gremlins, 2008 edition > > Please, vote for your favorite CMS to ensure that we are in this > competition! > > Here is the address: > http://www.hackontest.org/ > > You need to register and vote for features you want to see. > Done by clicking on the green arrows left of the features. (I believe) andreas From bartoszx at SPAMgmail.com Wed Jul 30 19:51:08 2008 From: bartoszx at SPAMgmail.com (Bartosz Aninowski) Date: Wed, 30 Jul 2008 19:51:08 +0200 Subject: [TYPO3-dev] load ballancing and mysql master/slave architecture Message-ID: Hi I think about improving website productivity with mysql replication. I would like to INSERT, UPDATE, DELETE to master database and SELECT from random slave databases. Question is: How to allocate read and write to the two different servers. p.s for read server I want to use Round robin DNS. From ernst at cron-it.de Wed Jul 30 20:34:37 2008 From: ernst at cron-it.de (Ernesto Baschny [cron IT]) Date: Wed, 30 Jul 2008 20:34:37 +0200 Subject: [TYPO3-dev] [TYPO3] Hackontest voting ends in two days. Vote for TYPO3! In-Reply-To: References: Message-ID: Hi, Andreas Burg wrote: on 30.07.2008 19:43: >> Please, vote for your favorite CMS to ensure that we are in this >> competition! >> >> Here is the address: >> http://www.hackontest.org/ >> >> You need to register and vote for features you want to see. > Done by clicking on the green arrows left of the features. (I believe) Thanks for the hint. I wasn't "seeing" how to vote either. Done. :) I wonder how the "jury" will be able to review the new feature implemented in TYPO3... They will have a hard time to review a patch to an unknown system in 6 hours. :) At least they have some time to prepare... Cheers, Ernesto From masi-no at spam-typo3.org Thu Jul 31 09:27:01 2008 From: masi-no at spam-typo3.org (Martin Kutschker) Date: Thu, 31 Jul 2008 09:27:01 +0200 Subject: [TYPO3-dev] endless loading ... In-Reply-To: References: Message-ID: ries van Twisk schrieb: > > On Jul 30, 2008, at 10:07 AM, Steffen Kamper wrote: > >> ries van Twisk schrieb: >> >>> >>> as a test try to change DELETE FROM cache_hash to TRUNCATE cache_hash; >>> >>> See if that helps. >>> >>> Ries >>> >> >> Hi Ries, >> >> sure i could patch core but this is not my aim ;-) >> >> I think it's not the best to clear cache on every save of a template. On >> big sites that makes editing problematic. Sometimes you save 3-4 times >> until you're finished. Ok, template can change render, but saving any >> content also change a page. >> To see result cache can be cleared manually > > I think that only relevant items needs to be flushed (or are they all > relevant??). To clear only the affected pages you have to figure out in which branches the template is loaded. Maybe this can be done via soft references faster than analysing the real template structure. Masi From hagelstein at shr.cc Thu Jul 31 11:28:04 2008 From: hagelstein at shr.cc (Nikolas Hagelstein) Date: Thu, 31 Jul 2008 11:28:04 +0200 Subject: [TYPO3-dev] Magento => TYPO3: 1st progress report References: Message-ID: Georg Ringer wrote: > just a small update what I did today (besides of the usual working > stuff): >[progress] Great work that far. IHMO its better to create interfaces to already existing systems instead of reinventing the wheel over and over again by trying to rewrite things from scratch within T3. BTW: i just handed the "magento" extKey over to you. I registered it about a year ago. Did you received it? Keep on the good work, Nikolas From mail-spam at ringerge.org Thu Jul 31 11:30:08 2008 From: mail-spam at ringerge.org (Georg Ringer) Date: Thu, 31 Jul 2008 11:30:08 +0200 Subject: [TYPO3-dev] Magento => TYPO3: 1st progress report In-Reply-To: References: Message-ID: Nikolas Hagelstein wrote: > BTW: i just handed the "magento" extKey over to you. I registered it about a > year ago. Did you received it? yes thx a lot georg