David Ansermot Web Developer / TYPO3 Integrator

13avr/110

TYPO3 – Get content element from extension code

I've not wrote something from long time, so today I give you a little snippet.
If you have to use in your extension a content element from another page, you can use this function to get it from it's uid :

  1. function loadContentElement($uid) {
  2.  
  3.         $conf = array(
  4.                 'tables' => 'tt_content',
  5.                 'source' => $uid,
  6.                 'dontCheckPid' => 1,
  7.         );
  8.  
  9.         return $this->cObj->RECORDS($conf);
  10. }
23mar/110

Google Maps – Center and fit map to a group of markers

Google LogoToday I'll explain how you can center and auto zoom to the correct value your map to fit a group of markers.
Suppose that we have our map called myMap and a group of markers called markers (^.^')

2mar/110

GoogleMaps stretched icons after map resize

If, like me, you have to resize your GoogleMap on your page with javascript (nldr. without page reloading) and have your marker custom icons stretched, here's the solution I found.

After your map resize function, call this one :

  1. google.maps.event.trigger(myMap, 'resize');

Then after this, make a Zoom.

  1. myMap.setZoom(xx);

It's done, your icons are right sized.

Hope this tip was helpfull for you.

14fév/110

Google Maps – InfoWindow layout broken

If you have, like me, your infowindow right corners broken, here's my solution :

Look at your CSS for something like :

... img { max-width: 300px; }

If you find a max-width applied on your img tag, remove them and it should be ok ;)

5nov/100

Opening of the Mac AppStore for developers !

Mac AppStore LogoAhead of the release of "Lion" in about three months, Apple now provides the ability for developers to propose applications for its new online store.
It'll open for user in january but developers can submit applications they made.