Solved

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

Posted on 2016-08-15
2
125 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
First of all, we will need Jumi component or Sourcerer plugin for this to work. We need either of these because the main focus here is custom development outside of the standard modules or articles within Joomla. You can find Jumi here...it's my …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

734 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