4 Posts
Jess
7 years ago
Topic

Having an issue trying to display a joomla module within the search form category of list & search. The module displays fine within a seblod content type but for some reason is just not showing within the search form. Can anyone help me out? Thanks!

Get a Book for SEBLOD
7 years ago
4
Level 1

Hello Jess,

welcome on SEBLOD forum.


For the time, this function is not implemented for the form view in the plugin feield Joomla Module. You can add a freetext field with the tag

"{"loadposition position_name"}" (without ")

Please, can you add a request in the tracker.


Regards.

Lionel

4 Posts
Jess
7 years ago
0
Level 2

Thanks for the help!

When you say add a tag to the freetext field, where exactly am I adding this tag?
(sorry, relatively new to seblod!)


Thanks

45 Posts
Castor
7 years ago
2
Level 2

Hi Lionel,

in this case you have to change for example the file default.php in yoursite/components/com_cck/views/list/tmpl/ before the searchform is loaded ($this->form).

You need to add just before

echo ( $this->config['action']...

this snippet of code:

if ( JCck::getConfig_Param( 'prepare_content', 0 ) )  {
   JPluginHelper::importPlugin( 'content' );
   $this->form   =   JHtml::_( 'content.prepare', $this->form );
}

Best regards

Castor

4 Posts
Jess
7 years ago
0
Level 3

This did the trick, thank you!

33 Posts
makedifferent
7 years ago
0
Level 3

Idem if you want to display it in form edition (could be needed) 

Just add:

if ( JCck::getConfig_Param( 'prepare_content', 0 ) ) {
JPluginHelper::importPlugin( 'content' );
$this->data = JHtml::_( 'content.prepare', $this->data );
}

before

echo ( $this->config['action'] ) around line 50 of the file edit.php in yoursite/components/com_cck/views/form/tmpl/

449 Posts
gebeer
7 years ago
0
Level 1

Will this be available in a future release? It still doesn't work with 3.3.7.

I don't really want to hack core files.

84 Posts
Skepsis
5 years ago
0
Level 1

Hello,

Some Plugins are still not triggered in SEBLOD 3.8. 
I need this on form edition. It works with the code snippet from makedifferent but now the email-field is not rendered correctly and hacking the core files is still a bad way.
I want to follow up the question of gebeer. Will this be available in a future release?

84 Posts
Skepsis
5 years ago
0
Level 1

Finally I solved it for me.
I´m using a variation in my siteform and so I triggered the plugin with

echo JHTML::_('content.prepare',"{the_plugin_code} bla bla bla {/the_plugin_code}");

Get a VIP membership