Assuming you are using the extension.php page, you could do this:if (($Context->SelfUrl == 'extension.php') && (ForceIncomingString('PostBackAction', '') == 'MyExtension') {
$Head->BodyId = 'MyExtension';
} The if simply makes sure that your extension doesn't change the body id when it shouldn't.
Comments
if (($Context->SelfUrl == 'extension.php') && (ForceIncomingString('PostBackAction', '') == 'MyExtension') { $Head->BodyId = 'MyExtension'; }
The if simply makes sure that your extension doesn't change the body id when it shouldn't.