/**
  * Generate the module
  */
 protected function compile()
 {
     $this->Template->empty = $GLOBALS['TL_LANG']['MSC']['emptyLinks'];
     $intTotal = \LinksModel::countPublishedByPids($this->links_categories);
     if ($intTotal < 1) {
         return;
     }
     $objLinks = \LinksModel::findPublishedByPids($this->links_categories);
     // No items found
     if ($objLinks !== null) {
         $this->Template->links = $this->parseLinks($objLinks);
     }
 }