Archive for August, 2008

TYPO3 Bug day the 29th of august

Wednesday, August 27th, 2008

TYPO3 bug hunt day is an official day with an official IRC channel for hunting down bugs together. I missed the first two bug hunting days, but this time I really hope to be able to help out. I like the initiative of a bug day to get the general community more involved into TYPO3. Let’s hunts some bugs shall we? (c’mon. join me :P )

T3CON08, here I come

Sunday, August 24th, 2008

Me and my colleague decided to register for the annual TYPO3 conference – t3con08. This year it’s taking place in Berlin, which will be cool as I’ve never been there. But the best part will hopefully be to meet a lot of TYPO3 users and developers – perhaps even one or two from freenode channel #typo3 where I’m hanging around from time to time.

Not only did we register for the conference but also to become association members for Merea, our company, which feels like the right choice to do as we focus our business more and more around TYPO3 services. It’s a good way of giving back something to the product and community as well as taking further engagement with TYPO3.

So, I hope to meet a lot of friendly faces and get loaded with inspiration and knowledge.

create new record link with TCE

Friday, August 8th, 2008

If you need a ‘create new record’ link in BE of TYPO3 and also need to supply some default values, this is the way;

  1. $params = "&edit[$mapTable][123]=new&defVals[$mapTable][name]=banana&defVals[$mapTable][codename]=hajaja";
  2. $aOnClick = t3lib_BEfunc::editOnClick($params,‘../../../../’.TYPO3_mainDir);
  3. $icon = ‘<img’.t3lib_iconWorks::skinImg($this->doc->backPath,‘gfx/edit2.gif’,).‘ title="Create secret agent" alt="" style="border:0;" />’;
  4.  
  5. //print a pen icon with the link
  6. $HTML = ‘<a href="#" onclick="’.$aOnClick.‘">’.$icon.‘</a>’;
  7.  

So, what we do is setting up necessary parameters for alt_doc.php to perform cmd actions. In this example I use;

edit[table name][uid OR pid OR -uid]=command – use uid and the command edit to edit a uid, otherswise (as I do  above) use pid and new as command to create a new record in a certain pid. A negative uid together with the new command Creates a new record right after the supplied uid.
defVals[table name][table column]=value – two times. This sets default values for my two fields; name and codename.

Then assemble the parameters with the TYPO3 API call t3lib_BEfunc::editOnClick(); into a javascript call.