Search the website and IRC logs

#TYPO3 IRC log from : Monday 29 March 2010

Year: 2007 2008 2009 2010 2011 2012
Month: Jan Feb Mar Apr May Jun Jul Sep Oct Nov Dec
Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
09:19 maholtz|WORK morning
09:20 Winston_S gmorning
09:21 FloLeBlanc hi all
09:21 PiMB morning
09:22 FloLeBlanc does anyone happen to know how I can force uniqueness for record fields in the backend?
09:22 FloLeBlanc (alert if a specific phonenumber has already been used)
09:22 FloLeBlanc even better would be a regexp check
09:24 Winston_S ugly, but may be working: set the phone number database field as "unique".
09:24 PiMB that should work just fine.
09:24 PiMB and why is it ugly?
09:24 Winston_S then store only "normalised" phone numbers. (means, proper prefixed, everything but digits removed)
09:24 PiMB it's what you need
09:25 Winston_S depending on what you set to unique it can have some impact on db performance, and i've got no clue how t3 will handle the db query failure that will happen in case the phone number already exists
09:26 PiMB true
09:26 PiMB one way to find out..
09:32 FloLeBlanc hehe
09:37 FloLeBlanc hmm the problem with unique is: if someone deleted his registration (deleted=1) and then tries to register again he SHOULD be able to register (so I need "unique visible")
09:37 PiMB :D
09:39 BejjWrk morning
09:39 BejjWrk or something :>
09:39 FloLeBlanc hi BejjWrk
09:40 snoy_ms moin moin
09:42 BejjWrk if i were to setup a wiki style website, what would be the best practise ? I want user to be able to comment (more like a blog), should i look for a wiki ext or just go with tt_comment and use regular content on the pages ?
09:45 snoy_ms BejjWrk: I think tt_comment could be enough
09:51 BejjWrk yea i think i'll go with that
09:52 poggie Anyone knows a good tutorial on how to create a extension with multilaunguage support ?
09:54 BejjWrk poggie: not without searching for it hmm, tho the llxml markers are pretty easy to use .. $this->pi_getLL('yourLangMarker')
10:48 Nemitz Hello guys - hope someone can help me here, not familiar with Typo3 but need to modify the output from a custom module
10:48 FloLeBlanc hmm anyone who joined recently who happens to know if I can force field uniqueness for new entries in the backend via Typoscript? (f.e.: telephone unique) - if I set it in the db it compares "deleted" (deleted=1) entries too, which must not be the case
10:49 PiMB_ FloLeBlanc, did you try the field 'unique' option?
10:49 PiMB_ doesn't it work like that?
10:50 Nemitz The plugin is called: tt_products_popular, where can i find files for the plugin?
10:50 FloLeBlanc PiMB: I couldn't find how to set it in the TCA for the backend
10:50 PiMB_ in tca.php by hand or via TSconfig?
10:50 PiMB_ try tcamanipulate extension.
10:50 PiMB_ it rocks
10:51 FloLeBlanc PiMB: ok thank you
10:51 PiMB_ http://sebastiaandejonge.com/articles/2010/maart/pimp-my-back-end-tcamanipulate.html
10:51 PiMB_ short desc. about usage
10:51 PiMB_ if that doesn't work you might want to try using BE hook
10:52 PiMB_ something like processDatamap_postProcessFieldArray or something
10:52 PiMB_ I know tt_news uses those to do some remodelling on inserted data
10:54 Nemitz Can anyone tell me where to find files for a plugin?
10:55 Nemitz nvm found it
10:57 pmk65 FloLeBlanc: TYPO3's way of checking unique records sucks (it fails with overlay records etc.)
10:57 pmk65 The best thing to do is wriyte some custom eval function (That's what I did for one of my ext.)
11:24 FloLeBlanc pmk65: for the backend form? could you give me an example?
11:26 Nemitz Have a problem with imageLinkWrap and IE8 - where the JS functions are blocked, anyone that have experience with this?
11:27 beeeviz hey, is there a way to show the content of another field than bodytext in a typo3 content element extension?
11:30 pmk65 FloLeBlanc: http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/2/#id2520906
11:31 pmk65 you can create your own eval function, in PHP, and execute that when testing if a field is valid or not.
11:32 pmk65 Nemitz: It's a well known IE8 problem. You can solve it by using a lightbox extension for the popups.
11:33 FloLeBlanc pmk65: thank you
11:33 FloLeBlanc pmk65: if I edit the tca.php for an extension will it be overwritten on the update?
11:34 Nemitz pmk65: thank you for answering, will have a look at a lb solution
11:34 PiMB_ FloLeBlanc, yes it will
11:35 FloLeBlanc PiMB: isn't that a pretty bad soluton then? :)
11:35 pmk65 FloLeBlanc: depends on how you do it. If yopu modify the TCA file in the extension, then it will be overrridden, but if you do it in an extra plugin, or using tcamanipulate ext, then it will not be overwritten.
11:35 FloLeBlanc can't I access it via Typoscript?
11:35 PiMB_ FloLeBlanc, not if you change it in the correct way.
11:35 FloLeBlanc I tried: TCAdefaults.fe_users.telephone.config.eval = unique in the page TS but that won't work :(
11:36 PiMB_ that value cannot be written on default.
11:36 Phlunk3 lo guys, sr_feuser_register, does anyone know how I make it obey/use the url I set in "autoLoginRedirect_url"?
11:36 PiMB_ you need extension for that.
11:36 PiMB_ like tcamanipulate
11:36 FloLeBlanc bah... :( thank you
11:36 PiMB_ otherwise you could use your own extension and rewrite the tca from that one.
11:36 pmk65 FloLeBlanc> Here's an example of a custom eval function (from my ext) -> http://forge.typo3.org/repositories/entry/extension-pmkglossary/trunk/class.tx_pmkglossary_extraeval.php
11:36 PiMB_ so nothing is overwritten on update of the current extension
11:37 FloLeBlanc pmk65: thx
11:41 beeeviz hey, is there a way to show the content of another field than bodytext in a typo3 content element extension?
11:46 iaj is there any way to tweak the list view in the be.. to have the entry 'Show contents from page instead' with a insert field? then to have to search every time?
11:58 iaj and is there a way to somehow edit ALL aliases from a certain page tree below?
12:03 pmk65 iaj: Maybe this one -> http://typo3.org/extensions/repository/view/impaoe_aliasbulknamer/current/
12:05 pmk65 or this -> http://typo3.org/extensions/repository/view/awaccess/current/
12:10 iaj pmk65: greaaaaaaat thanks:)
12:18 Neo2 Hi
12:19 Neo2 I have the following code to display the subtitle if it is given. But the if query seems not be valid. Any ideas what may be wrong on it?
12:19 Neo2 http://paste.phlogi.net/-35d10d615d/
12:25 Neo2 Found it.
12:34 iaj wee.. anyone happens to know where there is a ftplugin for vim for typoscript :)?
12:34 pmk65 iaj: do you want to change the 'Show contents from page instead' field to a selectbox instead of the normal display?
12:35 iaj pmk65: best would be just to be able to insert a page id there ... no select box.. no new window select popup
12:36 pmk65 then you just need to change it to an input field..
12:36 iaj pmk65: yeh.. just - I dont know how to do it :(
12:41 pmk65 iaj: -> TCA.pages.columns.shortcut.config.type = input
12:41 pmk65 (Requires tcamanipulate ext..)
12:42 iaj that value I enter in root template / setup?
12:42 iaj after I got the ext :p
12:45 pmk65 in page tsconfig
12:59 Phlunk3 lo guys, sr_feuser_register, does anyone know how I make it obey/use the url I set in "autoLoginRedirect_url" aner enableautologinonconfirmation is set to 1?
13:06 Himanshu Hello all
13:21 FloLeBlanc re
13:29 Neo2 Is there a way to give a FCE a global Id that I can access from a extension?
13:29 m99 hi guys. i'm trying to output a specific text, if there is no second level for one specific first menu item
13:29 m99 any ideas?
13:38 iaj_ another question... page.10.marks.INHALT.select.andWhere = uid!=3310 how can I check for another uid as well here?
13:40 iaj_ (uid!=3310 AND ...) did the job:)
13:41 iaj_ thanks iaj! - yw.
13:41 m99 maybe something like NO.wrapItemAndSub.ifEmpty?
13:43 Neo2 How can I write a global variable with TS?
13:47 pmk65 m99: You can use the "numRows" property to test if a page got subpages or not.
13:47 m99 dou you have an example in mind?
13:47 snoy_ms ahhrg....anyone knows where to set a new maximum for uploads in the site media field
13:47 pmk65 http://www.typo3wizard.com/en/snippets/general-config/show-only-if-at-least-1-level-below-exists.html
13:48 m99 thanks. i will give it a try.
13:48 pmk65 try searching for "numrow" on that site. There's a couple other excamples too.
13:48 pmk65 snoy_ms: TCA
13:48 snoy_ms i tried $TCA['pages']['columns']['media']['config']['maxitems'] = 99;
13:48 snoy_ms in the page ts
13:49 Neo2 That is PHP and not TS
13:49 snoy_ms ahhhrg
13:49 snoy_ms copy paste
13:49 snoy_ms my fault !!!
13:49 snoy_ms ok, i need a coffee...lol
13:51 FloLeBlanc pmk65: I currently check out extdeveval but I'm unsure on which option presented in the manual will help me check a specific field for uniqueness
13:56 m99 @pmk65: i tried this: http://pastebin.com/8gjc4apW
14:01 m99 with no success by the way :(
14:07 iaj_ ms... someone familiar with powermail settings? Am I wrong.. - when nothing is inserted in the flexform, the default settings ( I set via typoscript ) should be used?
14:11 foertel hi guys
14:15 foertel i can't obtain extbase from ter, can I?
14:25 Neo2 How can i see all the values stored in $var=$GLOBALS['TSFE']
14:26 Neo2 I've tried print_r($var=$GLOBALS['TSFE']) but without results
14:27 pmk65 FloLeBlanc: extdeveval has nothing to do with custom evaluation of fields. It's for evaluating ownmade extensions, and add API docs etc.
14:27 Winston_S Neo2, print_r( $GLOBALS[ 'TSFE' ] ); should do the trick
14:28 pmk65 Neo2: t3lib_div::debug($GLOBALS['TSFE']);
14:29 pmk65 FloLeBlanc> To enable a custom eval script, you add your script key to $TYPO3_CONF_VARS['SC_OPTIONS']['tce']['formevals'] which then points to your eval script.
14:30 pmk65 I do it like this in my ext: -> $TYPO3_CONF_VARS['SC_OPTIONS']['tce']['formevals']['tx_pmkglossary_extraeval'] = 'EXT:'.$_EXTKEY.'/class.tx_pmkglossary_extraeval.php';
14:31 PiMB_ Neo2, do a print_r( 01$GLOBALS['TSFE'] ); die( 'Ill be back' );
14:31 PiMB_ if then you don't see anything your script is messed up :)
14:31 pmk65 then in the eval field in TCA, I add the key to the eval line: 'eval' => 'tx_pmkglossary_extraeval,required,trim',
14:31 Neo2 PIMB: this is what I did, without results
14:32 PiMB_ then probably the line you set the print_r die combination is not run through php
14:32 PiMB_ otherwise it would've died on you
14:34 Neo2 hum... that's the file that I am editing typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php
14:35 FloLeBlanc thx pmk65
14:35 PiMB_ pmk65, thanks mate
14:35 PiMB_ learned something today :)
14:41 pmk65 Neo2: BE modules are very hard to debug using print_r or t3lib_div::debug() as a lot of them doesn't have any output.
14:42 pmk65 Install the extension "cc_debug", Then you can do a debug($GLOBALS['TSFE'] ) (without t3lib_div::) and get the output shown in a new window.
14:42 Neo2 yeap, that's what I see. Maybe do you know how to access a TS variable "config.flexName" in PHP?
14:42 Phlunk3 another question regarding sr_feuser_register, has anyone ever allowed usergroupselection when working with this extension?
14:46 pmk65 Neo2: don't expect to find TSFE if it's a BE script you are working on, as TSFE is a Frontend object.
14:47 Neo2 okay, but how can I access the TS variable?
14:48 pmk65 if you need to access TS vars from BE, you'll have to create a fake TSFE object.
14:48 Neo2 hummm...now it becames complicated?
14:50 Neo2 Just to explain what I am trying to do.. I am looking for a way to identify FCEs
14:51 pmk65 yes. creating a full TSFE is a pain, but usually yoc can do it by creating hjust the part you need.
14:51 pmk65 Here's a snippet from one of my BE ext.. -> http://pastebin.com/VAfeyYkV
14:52 Neo2 My approach at this time is to set a TS in the FCEs giving him a name
14:52 pmk65 I use that to access the TS setup of tt_news from a BE ext.
14:52 pmk65 $this->tmpl = $this->init_tmpl($reference->checkValue_currentRecord['pid'],0);
14:52 pmk65 $this->ttnewsConf = $this->tmpl->setup['plugin.']['tt_news.'];
14:56 Neo2 pmk65: thanks I will try it
15:14 iaj_ hmpf.. I dunno what's wrong..someone got experience with powermail? In my common sense it should work out but it doesn't... I added http://pastebin.com/5ZcQxBrn to my Extension Template (Setup)... and even the TSOB shows everything correctly.. I assumed when I don't enter any values in the flexform that those default values are used... but I dont receive an email at all :(

Technologies


R. van Twisk 2004-2010 R. van Twisk / Avenida Diego de Almagro No: 22-47 y Juan Severino / Quito Ecuador
callto://r.vanTwisk | Support: +1 (803) 4263350

© 2012 R. van Twisk. All Rights Reserved.