Updated: The Navigation links having CMS pages work flow. Also the inactive or not existing cms pages will redirect to page not found.
This commit is contained in:
@@ -237,4 +237,13 @@ class WkCustomNavigationLink extends ObjectModel
|
||||
$objCustomNavigationLink->save();
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getRelatedNavLinksByIdCMS($idCMS)
|
||||
{
|
||||
return Db::getInstance()->executeS('
|
||||
SELECT * FROM `'._DB_PREFIX_.'htl_custom_navigation_link`
|
||||
WHERE `id_cms`='.(int) $idCMS
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user