Hey guys!
I do a one custom listing but i dont where i can add my code JS and my css, where i can add this?
I do a one custom listing but i dont where i can add my code JS and my css, where i can add this?
<?php
$doc = JFactory::getDocument();
$script = "
// add your JS here
";
$doc->addScriptDeclaration($script);
$style= "
// add your CSS here
";
$doc->addStyleDeclaration($style);
?>
<?php
$doc = JFactory::getDocument();
$doc->addScript(JUri::root().'some/file/url/file_name.js');
$doc->addStylesheet(JUri::root().'some/file/url/file_name.css');
?>
repeat the $doc->add . . . for each file.