How to load widgetkit shortcode in modules? - joomla

i look for a way to load widgetkit in any module. For example in mod_content. I dont want to use default joomla! {loadposition #} to load another widgetkit module in mod_content.
I think that is more straightforward to user widgetkit shortcode in module. this doesnt work on some sites. On some sites it works.
Has anyone an idea how to solve it? Thank you.

Make sure the "Prepare Content" option in basic configuration of the module is enabled. However you might want to use a widgetkit module and a content module to keep things separate.

Insert the shortcode of the widget...e.g. [widgetkit id=4].. then select yes in the prepare content in the basic options of the custom html module.

Related

Override JE Quick Contact module in Joomla 3x

My client is using the module Je Quick Contact in their site, in Joomla 3.7.3
As default, the sender email is user's one, but in that way sometimes email goes in spams.
We would like to change it to have a generic send contact#domain.fr, seems we can't handle it in Back-office.
So I tried to override the module to change the sender email.
The module was in modules/mod_je_quickcontact and there there is files mod_je_quickcontact.php, index.html, mod_je_quickcontact.xml and folder CSS, JavaScript, PHP, images
In my template I created a folder mod_je_quickcontact and I put there all thoses elements, and I changed the file mod_je_quickcontact.php
But it's not working, it's still default data which are displayed.
I looked at Internet to see how to override, but for all example I found, in default module there is tmpl/default.php file to override. I don't have such folder and file.
Maybe I missed something or I did it wrong... I don't know what to do know, so, if someone has an idea, it would be great!
I think in Joomla there is only a way to override a template or layout of modules. The module you used is not best practice, because there are not using a default template (tmpl/default.php) to display the output of the module.
Like in Joomla docs mentioned:
The directory structure you need is: TEMPLATE_NAME/html/EXTENSION_NAME/VIEW_NAME/FILE_NAME.php
(Source: Joomla override documentation)
What I would do: Copy the module, change it in the way you need it. That´s it.
There have to be a difference between paid and free modules :-P

Why isn't loadposition working to load a module within a custom HTML module in Joomla 3.2?

I am developing a website with Joomla 3.2. I want to put a search box inside a custom HTML module. I have the module loading plugin enabled, a module position defined for the search box ('searchbox'), created the module instance, assigned it to the correct position, enabled it, and made sure it was assigned to all pages.
Inside my custom HTML module I inserted the following:
{loadposition searchbox}
As you can see here - http://ojospa.webez.net/ - it isn't working (look in the upper right hand corner).
Why isn't it working? I've looked over everything to make sure there were no typos and everything looks fine.
Any help would be appreciated.
Thanks!
Cynthia
You need to enable the "Prepare Content" parameter in the options of the module. Then it should work.

Create custom module, with javascript and load javascript into footer

I have been assigned to create joomla template from HTML template, and this is first time for me. In HTML template I have a custom JS, and as far I can tell, I will need to create one, or maybe two custom modules in order to recreate functionality that exists. Is there some way to write JS for specific module and load it in footer (this module will be active only on one page, so I don't want to load JS on all pages). Is it possible to do this, or the simplest way is to load JS on everypage?
Please read the Joomla documentation on creating modules Creating a simple module and then on your module file mod_mymodule.php add the script call using:
$doc = JFactory::getDocument();
$doc->addScript( JUri::root() . "media/your_js_directory/your_script.js" );
Hope it helps.

Change admin module title joomla

When I installed the module that I developed and in the module manager screen of the backend I can see the title like this.
Module Manager: Module mod_examplemodule
So I want to change it into something like this. Module Manager: Module Example Module
I have developed few Joomla modules but so far I didn't realize how to do this.
Your help on this would really appreciated.
Thank you.
Im using Joomla 2.5.8. I have just added the screen shot. Perhaps it would be more helpful.
In my modules I use:
<name>Module Title</name>
<description>MOD_MODULE_TITLE_XML_DESCRIPTION</description>
I then add an entry in the language file for the description. This normally covers my needs
I have solved this:
You can change name tag in mod_examplemodule.xml file and install again
OR
If you have database access then in [prefix]_modules table find the record of this module and change the name field as per your requirement

In a custom Joomla! template, how can I determine whether I am on the home page?

I am trying to create a custom template, but I want the template to look a little different for my Joomla! homepage/frontpage. Is there a easy boolean-type expression I can use to determine whether I am on my site's homepage?
That way, I can just say if ($on_homepage) { [custom homepage html] } else { [regular template] }
Thanks in advance!
You can create a separate template for your homepage. More details here.
This is very easy, just create 2 templates. One for your homepage and one for the rest of your site. Then install both, make sure you give them a descriptive name in their xml file so you know the difference.
Once they are installed you can set a default template that would be site wide. Then choose/click on your homepage template and it's options will load up. On the bottom left you can select the menu items where this template will be visible. This setup is very much like the way in which you define where modules are shown.

Resources