Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [custom-module]

Ok, this tag has been used for questions related to developing custom modules, but also for question about the Joomla Custom html module.

0
votes
1answer
37 views

How to retrieve the default site template in my xml module?

I wish to add a formsource to a subform in my custom maded module. The example code: <field type="subform" formsource= "templates/DEFAULT_TEMPLATE/MY_MODULE/SUBFORM_NAME.xml" >
2
votes
2answers
43 views

How to style a module or article title with font awesome icons?

I am using the Helix framework template. Is it possible to add a font awesome icon to a module or article title? If yes, how do I go about it? I have seen around that you can style a title using the ...
1
vote
1answer
47 views

Get com_contacts item by id?

I need to get a com_contacts item the same way Joomla does (so I can re-use a template for example). I know I can get the item by querying the database directly, but that won't prepare things the same ...
-1
votes
1answer
69 views

JOIN multiple queries?

I was wondering if anyone could help me JOIN multiple queries into one query. Currently, these 2 blocks of code retrieve information from the DB. I am using "Sourcerer" plugin to add custom PHP code ...
2
votes
1answer
148 views

Custom Fields in a module with a repeatable field

I'm trying to create a module which will display a list of custom fields and allow me to place one or more in that module. module.xml <fields name="params"> <fieldset name="...
0
votes
0answers
31 views

Custom Module - Subform get file type

Sorry the English. I have a subform, xml: <fields name="params"> <fieldset name="basic"> <field name= "sliders" description= "" type= "subform"...
1
vote
1answer
98 views

Error when populating a database table while installing a module

I am using the following code for creating tables in my .sql file as part of a module. CREATE TABLE IF NOT EXISTS `#__gruposlocales` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(...
0
votes
1answer
111 views

Different views on router.php (Joomla! 3.6.4)

I am developing my second custom component for Joomla! 3.6.4 and I have another problem with my router.php. This time I need to dynamically change the view on my router.php but I don’t know how to do ...
0
votes
0answers
71 views

Joomla: How to make a table view in module-backend?

Created a module and want to show the data on module-backend from database. I tried "sql" type in formfields but it provides me a drop down list not a table view. Please suggest any option to show the ...
0
votes
0answers
17 views

Module Template/alternate layout Name language Override

Is there a way that I can create a module template and give it a name with spaces? At the moment it takes it's name from the file name, but that is not very neat for the user. Can we create a ...
4
votes
1answer
160 views

What does “Prepare Content” do and when should it be used?

For some (all?) custom modules, under the options tab, there is a Prepare Content option. What does it do? When should it be used? (Conversely, when should it not be used?) What's its impact on ...
1
vote
1answer
106 views

XML file does not upload with my custom module

I have created my own module. Within my module I have used the Joomla! subform which allows me to create repeatable fields using a separate XML file. If I look at my module I see an error: JForm::...
0
votes
1answer
42 views

Custom module with menu and multiple articles

I need to create a custom module with his own menu, when I click on that menu I want to display an article. For adding the menu I don't have any problem. The thing is when I click on the second menu I'...
2
votes
1answer
40 views

Module field type category not working

I am trying to tweak a module based on Joomshopping, a shopping cart extension. The module is called "mod_jshopping_categories", I want to add a field that is a dropdown list of the product categories ...
0
votes
0answers
92 views

Create custom HTML page as administrator menu in Joomla 3.7

As we know Joomla 3.7 permits to create custom administrator menus, but is it somehow possibile to create "Custom HTML" administrator single item menu? Something like creating single article menu on ...
3
votes
3answers
2k views

Using AJAX in a custom module - how to do it?

I think this might be useful in future for many others. First of all, I know that there's com_ajax for this kind of a job, but I do not want to use it. Is there an alternative? What I got: default....
0
votes
1answer
153 views

Pass xml field inside module's helper class

I have a custom Joomla module. In the helper.php class, I need to pass XML field data. Here is what I have so far. class modcatbanerHelper { // I need to pass here public $selected_cat = $...
-4
votes
1answer
37 views

how to create a module in joomla 3.3 [duplicate]

How to create a new module in Joomla 3.3 The new custom module to create to journal 3.3 version And tell the file structure.
0
votes
2answers
52 views

Module class suffix not applied after joomla update

I just updated my site to version 3.6.4 and I'm having a strange issue where module class suffixes aren't being applied. I'm editing a single article module as well as a custom html advanced module ...
1
vote
0answers
83 views

repeatable form field type - drag & drop

Is it possible to add a drag & drop function for sorting inside a repeatable field? I use repeatable fields in my modules and it would be nice to change the order per drag & drop.
0
votes
1answer
68 views

Custom Admin Dashboard: Manual Menu Assignment to Modules

I need to create a custom Admin dashboard for my client. He should be able to add, edit custom modules via this dashboard. As far as I know I need to play with #__modules table (jdatabase).I figured ...
0
votes
2answers
164 views

How to preserve HTML input via wysiwyg into custom html module?

I am getting strange behavior while trying to add custom html via a custom html module. My markup is getting altered and the behavior is affected as a result. I want to have an anchor tag wrapped ...
0
votes
1answer
181 views

How to determine (and fix) z-index of an anchor tag within a custom module?

I have adapted Webtiki's Responsive hexagon grid into a custom html module, however something is messing with the stacking of the anchor tag. When I added the html to my joomla site, the link seems ...
1
vote
2answers
258 views

Style a custom HTML module

So, I have worked up a html menu with a css3 hexagon grid that I'm adding to a page with a custom html module. Can I add a separate style sheet for this module? If so, how?
1
vote
1answer
314 views

Joomla 3.6.2 won't save HTML Tags

After upgrading to Joomla 3.6.2 I cannot save a Custom HTML module or Article with any tags. Add a link via the Tiny MCE Editor, stripped out on save. Add through HTML, stripped out on Save. Try using ...
1
vote
1answer
451 views

Joomla 3x ,articles anywhere plugin ,not loading my article inside a module

I'm new to Joomla,so I got this problem: I have Articles Anywhere and Modules Anywhere plugins instaled and I have a module for the Home page. In this module I try to load another module and in the ...
0
votes
1answer
118 views

How does K2 Custom HTML module differ from Joomla's?

I know there's a K2 Tool's module and it has among other things, its own Custom HTML module. The only difference that I've noticed is that it has a "Parse PHP code" option. So my question is... is ...
0
votes
2answers
3k views

What is the best way of using PHP code in Joomla's articles or modules?

Let's say I need to create a simple page and for my links I want to use JRoute::_() in order to make them SEF or display ID of the current user. What would be the best way to achieve this? Joomla by ...
0
votes
2answers
720 views

how to run php code in joomla content and custom module without third party plugin

i wonder how to insert php code in joomla content and custom module without plugins when i change the editor from tinyMCE to none i can insert js/css code and they work perfectly but when i insert ...
2
votes
2answers
377 views

Custom Module Menu Item Link Class Css

I would like to customize a Menu module. I want to add a default CSS class to a Joomla 'my_template' to render all link menu items with a default class (<a class="link_menu"...). I know that it is ...
0
votes
1answer
989 views

Custom Module Header Class Css

i am developing an web site in Joomla, and i wolud like adding a css class to my custom module. Specifically to an h3 tag. But when i have wrotten the css class into the form input field in the ...
1
vote
1answer
175 views

Module Development: What fieldset name do I need to use to add JFields to the tabs: Menu Assignment & Module Permissions

What fieldset name do I need to use to add JFields to the tabs: Menu Assignment & Module Permissions Please see below picture for more details.
0
votes
2answers
80 views

PHP in helper module. How to format directory string to access images

I wanted a Joomla extension which would (among other things) allow me to show a different image for every day of the month but couldn't find one. So I decided to learn PHP to do the job. I wrote ...
4
votes
2answers
96 views

Getting wrong IP address from JFactory::getApplication()->input->server->get('REMOTE_ADDR','');

I am attempting to validate the user IP address in a post. Joomla 3.5 and PHP 5.6.20. I have read How can I grab the user's IP address? and tried this out, but the wrong IP address is being ...
1
vote
1answer
710 views

Passing variables between a PHP module and a PHP script

I am trying to pass some variable from a PHP module (Sourcerer) to custom PHP script using Sessions method (as posted here). The method works fine between two PHP scripts but when I tried to implement ...
1
vote
1answer
129 views

Using jimport in ajax php file

I run a fantasy football website. My League Registration is handled through a form and mysql database. This all works well. Once I hire a manager, I want to create a Joomla user for the user. ...
1
vote
0answers
261 views

How can I put a module in a modal and pass parameters

I'm trying to make all my custom php pages into modules so they fit in the proper windows and are responsive. So I do not want to use Iframes (as I've done previously). So I have a module that will ...
2
votes
2answers
189 views

How to detect whether the user is on a specific menu?

I am assigning a php module on different menus on my Joomla website, but I want the module to show different data when loaded on different menu pages. Example : There is parent menu Home and three ...
5
votes
2answers
1k views

How can I use google recaptcha in my custom page?

1) Get recaptcha keys from http://www.google.com/recaptcha 2) Set these keys to recaptcha plugin and activate it if it's not. 3) Put below code where you want to show recaptcha php code: ...
0
votes
1answer
52 views

Uploading a module adds a new line each line of every file

I'm new to Joomla! and I was asked to create some modules, I have succesfully created and installed about a dozen by following the documentation here (https://docs.joomla.org/J3.x:...
1
vote
0answers
45 views

Custom Installer for Custom Package

I got a custom package which contains a component and few modules and few plugins. The installation of this package takes about 2 to 3 minutes and some time it crosses the PHP maximum execution time ...
0
votes
1answer
546 views

Get user info and send email from button

I need to create a module with just one button (like Join Us). When a user click on this button, an email will be sent to the user and to administrator. In this email must be written the username who ...
1
vote
1answer
180 views

Calling module params from custom field type

I've created a module which has a number of settings, one of which uses a custom field type defined within my module. The custom field essentially generates a dropdown list which is populated with ...
1
vote
1answer
25 views

How to make a Joomla module installation from a module already installed on another page

I'm working on a new website and I wanted to install a module that I have on another website that I'm administrating (I didn't make that website and the developer who made it, made that module himself)...
2
votes
2answers
117 views

Custom self-made module doesn't show content after J3.4.3 upgrade

I've create a module which uses the standard contact component to show content but it will not work anymore after upgrade from j3.4.1 to 3.4.3. Maybe there is someone from the coding team who could ...
1
vote
1answer
247 views

$params and $module stay empty for custom made modules

I created a custom mod_helloworld module, according to the instructions in the Joomla 3 documentation. I have a "lang" parameter on the mod_helloworld.xml config section. The module is loaded ...
0
votes
1answer
67 views

Update module content by email trigger?

I'm wondering if it's possible to write the equivalent of a "3 most recent Tweets" module, but for a Listserv mailing list, and where to begin? If the system can be somehow made to read email, I ...
1
vote
2answers
600 views

How can I display a system message from a custom HTML module

I would like to display a system message from a custom HTML module. I have sourcerer installed which is allowing me to add php code into the module and this seems to be running fine. However, it ...
1
vote
2answers
97 views

Droppable images in a module

I am trying to make an Custom HTML module which can allow droppable contents on my localhost Please view the image for the result I have installed the JQuery Easy extension and have enabled it as ...
1
vote
1answer
228 views

Set width of module table to the width of the module

I use the module Display News with the custom class dn on my home page to display the last articles published. The width of the module adjusted to the size of the screen but only if the screen is ...