You might be familiar with using the "Prepare Content" option in Joomla to
allow an embedded plug-in to function in Custom HTML such as "{foobaz ...}.
But there are some third-party modules that don't have the "Prepare
Content" option. "I know!" said in a Craig Ferguson voice. :-)

So I'm thinking of adding this option to those Modules lacking "Prepare
Content" unless someone can offer other solutions or simply talk me out of
doing this. I'm thinking the code found in mod_custom.php would accomplish
this?

*if ($params->def('prepare_content', 1))*
*{*
* JPluginHelper::importPlugin('content');*
* $module->content = JHtml::_('content.prepare', $module->content, '',
'mod_custom.content');*
*}*

What do you think of doing this to solve this problem? From my
understanding of this, it needs to be done at the Module level so it treats
the content as if it were a Joomla Article.

Thanks in advance!

David Roth
_______________________________________________
New York PHP SIG: Joomla! Mailing List
http://lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to