Solved

Is K2 Custom HTML module any better than Joomla's?

Posted on 2016-08-15
2
116 Views
Last Modified: 2016-08-16
Hello!

I know there's a K2 Tools module and it has among other things, its own Custom HTML module. The only difference that I've noticed is that it has "Parse PHP code" option.
So my question is... Is K2 Custom HTML module any better than Joomla's? Is it any different in any way?
0
Comment
Question by:Member_2_7970041
  • 2
2 Comments
 
LVL 50

Accepted Solution

by:
Steve Bink earned 500 total points
ID: 41757972
You can see the code for yourself by downloading the K2 Tools install package, and looking at modules/mod_k2_tools/helper.php::renderCustomCode().  It basically sends the custom code parameter through the ob_* functions to execute it, then manually triggers the onPrepareContent and onK2PrepareContent events.  It is a pretty basic concept... I first saw it in NoNumbers' Sourcerer plugin, which worked beautifully, and is far less weighty than the entire K2 Tools package.

Of course, K2 Tools has much more to offer than just parsing PHP in your HTML module.  If you can find a use for the other features, perhaps it is worth your while to install it.
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 41757977
Just one further note: the K2 Tools module will act only on modules you create specifically with K2 Tools.  General plugins like Sourcerer will try to act on a much wider array of content.  That's not necessarily a problem, but it is something to consider.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the following article I will try to explain some of the issues I had learning Joomla and I hope this helps all of you beginners out there that love the concept but find it confusing and difficult to manage and configure a Joomla website. Like …
This is our step by step to setting up and configuring a Joomla Install on a Windows 2003 Server. This is the perfect solution for an Intranet Website using Joomla. What you need (only use the following versions) : A fresh copy of Joomla http…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question