-
I add process:
filters:
[ext:joomla.template.filter.module.plugins] and want to use regularlabs moduleanywhere in page. but after I add plugins to the filters. My page always show error 0. Originally, I tried to refer to the flexicontent module by bringing the parameters in the params of the <ktml:module name="flexicontent" params="<?= json(["layout" => "mod22-userstory-items", "count" => 5, "count_feat" => 0, "method_tags" => "3", "tag_ids" => ["15", "16", "322"]])?>"> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Happy to help you, but going to need a bit more info here. Turn on error reportingFirst please turn on debug and set error reporting to max, this should produce a more meaning full error page? This should be a default when you do development with Pages. Plugins filterThe code for the plugins filters is here: contrib/extensions/joomla/template/filter/plugins.php. This filter will wrap a block of content and process it using content plugins. <ktml:plugins>
[Content to be wrapped and processed by content plugins]
</ktml:plugins> It triggers:
It could be that one of the content plugins cannot handle this approach. Haven't tested this at length yet with different plugins. Internally it makes use of the event template helper, which wraps the Joomla event dispatcher. Regularlabs Modules AnywhereWhy would you want to do this? The whole idea behind Pages is that you get full control over how and when you render content where, the Pages template and layout system is vastly more powerful than Joomla and or Modues Anywhere. I would consider that a very complex workaround. Pages has a concept called blocks, that allows you move content anywhere on a page. Check: #704 to get an idea how this works. Flexicontent ModuleUsing Try: <?
$params = [
"layout" => "mod22-userstory-items",
"count" => 5,
"count_feat" => 0,
"method_tags" => "3",
"tag_ids" => ["15", "16", "322"]
]
?>
<ktml:module name="flexicontent" params="<?= json($params, true)?>"> |
Beta Was this translation helpful? Give feedback.
-
Thank you johanjanssens <ktml:module name="flexicontent" params="">` and some error msg. Thank you ~~ :) |
Beta Was this translation helpful? Give feedback.
Thank you johanjanssens
Actually I want to show the flexicontent module and overwrite params in joomlatools page.
Before I use joomlatools page. I usually insert flexicontent module in flexicontent item. To make the modules show some items related to the original flexicontent item.
but I don't know how to insert the flexicontent's tags event in joomlatools page to make flexicontent module know the relation with the page. So I try to insert flexicontent module and overwrite params in page.
` "mod22-userstory-items", "count" => 5, "count_feat" => 0, "method_tags" => "3", "tag_ids" => ["15", "16", "322"] ] ?>
<ktml:module name="flexicontent" params="">`
I try this but still not work.
and som…