MODX Output Modifier / Snippet to get the Youtube Video ID from a youtube.com or youtu.be link.
##Installation Copy contents on getYouTubeId.php into a new snippet inside MODX manager. This is an output modifier.
##Example [[*TVyouTubeURL:getYouTubeId]]
<a href="http://www.youtube.com/watch?v=[[*TVyouTubeURL:getYouTubeId]]" target="_blank">