title: Get Nextgen album ID in compact.php template
body: <p>How do I go about echoing the albums ID from within the compact.php template? I need to do it to be able to run some javascript on several album DIVs on one page. So I need to have the album container divs to have IDs like "album-1, album-2" etc.</p>
  
  <p>I tried to echo $album->id and $this->id but it doesn't return anything. I'm not very savvy with PHP so I'm hoping someone can help me.</p>
  
  <p>I've found that using the following code, I can get to the albums data.</p>
  
  <pre><code>global $nggdb;
  $album = $nggdb-&gt;find_album(1);
  
  echo $album-&gt;name;
  </code></pre>
  
  <p>So the only thing left to figure out is how to dynamically check what ID the album that is loaded has, instead of having to specify an exact number. Does anyone know how to do that?</p>
  
  <p>Thanks in advance, best/Dag</p>