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:
vishalsingh.qlo325
2024-05-01 14:37:02 +05:30
parent 8dcfc9e892
commit a2198c7e4f
6 changed files with 171 additions and 18 deletions

View File

@@ -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
);
}
}