Has Sourcerer no power in backend?

Search
Other Pre-Sale questions
Forum

Has Sourcerer no power in backend?

Mavi N's Avatar Mavi N
Hello,

I tried to get a Java script into the backend via a module. However, only the source code is then displayed.
Is this perhaps a security feature of Joomla that Sorcerer is also subject to?

Settings: Prepare content > yes
Editor Tiny: no filter for Superadmin | no content filter for: php, script
{source}<?php
$myscript = "
var button = document.getElementById('showButton');
var content = document.getElementById('content');

button.addEventListener('click', function() {
content.style.display = 'block';
button.style.display = 'none';
});
";
$doc->addScriptDeclaration($myscript);
?>{/source}

Or can this type of script only be implemented with the Pro version?
Peter van Westen's Avatar Peter van Westen ADMIN
You cannot use {source} tags for the administrator side.
Please post a rating at the Joomla! Extensions Directory
Mavi N's Avatar Mavi N
🙁
sad... but thank you for your very fast answer
You can only post on this forum if you log in