Hi!
You can do it by using our FrontEnd helper
$frontendHelper = vchelper('Frontend');
if($frontendHelper->isFrontend()) {
//do the needed stuff
}
But most likely you want to detect if the page is editable, and you will need this method
$frontendHelper = vchelper('Frontend');
if($frontendHelper->isPageEditable()) {
//do the needed stuff
}
Let me know if that helped you.
-
This reply was modified 5 years, 1 month ago by Edgars V.