0

I know there's a K2 Tool's module and it has among other things, its own Custom HTML module. The only difference that I've noticed is that it has a "Parse PHP code" option. So my question is... is the K2 Custom HTML module different to the Joomla custom module in any other way? Are there any situations where you would choose one module over the other?

1 Answer 1

1

I've never used K2's Custom HTML module, but I would not suggest installing the entire K2 package just to be able to use this module. That's extremely overkill.

You best bet is to install the Sourcerer plugin by Regular Labs (formerly known as NoNumber). It allows you to add any of the following to your Joomla articles and custom HTML modules:

  • Any kind of HTML
  • CSS
  • Javascript
  • PHP

You simply need to wrap your PHP code in the {source} tags like so:

{source}
<?php
    echo 'Welcome to my Joomla! site';
?>
{/source}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.