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.

Filter by
Sorted by
Tagged with
0
votes
2answers
36 views

How to build a podcasting site?

I am new to Joomla so I want to know if it is possible to build a podcasting site with user registration on Joomla. I want guests to be able to subscribe to an individual user's podcast (not ...
2
votes
1answer
37 views

How do I pass _JEXEC to a php file?

I have a form in my Joomla! site. Once completed, the form should send an e-mail but only if some conditions have been met. Not having been able to use standard, commercially available mailers while ...
0
votes
1answer
47 views

how to get value for search in joomla module

how to get value for search in joomla module. Does anyone know how to get the value for the search field? my problem is that after i search for specific data it still shows everything In my helper....
0
votes
1answer
54 views

Custom module doesn't work, messing up all page, messing up editor

I am using Joomla! 3.7.5 and JA Builder. I'm trying to create a block with custom module. Once I create it, paste code and assign position, then in page editor add block with widget - position and ...
1
vote
1answer
40 views

Getting module parameters in AJAX call using module id

I have set up an AJAX call in my module which works fine. I want to get the module parameters when I make the ajax call. So I'm doing this $app = JFactory::getApplication(); $module = JModuleHelper::...
0
votes
2answers
42 views

What directory should contain GPL scripts from external source? Best practice?

I am making a custom gallery module using Light Gallery. In most cases, I would just place all my JS files inside /assets/js directory. But I wonder if this is good practice when using an external ...
1
vote
1answer
60 views

Pass PHP variables to CSS?

I want to pass some variables to my css, without using inline styles. During some research I found different sources pointing to the same solution. For example here on the Joomla forum. Basicly they ...
1
vote
2answers
39 views

Use addScriptOptions for multiple modules on same page

I am passing some params to JS in my custom module using the addScriptOptions provided by Joomla: $document->addScriptOptions("mod_mymodule", $params)); This works fine, as long as there ...
0
votes
1answer
29 views

Owl Carousel not working in Joomla, why?

I am making a custom module using Owl Carousel 2. For some reason it just doesn't work in Joomla. The html structure is there in frontend, but the owl carousel is not displayed. Unfortunatly, there ...
0
votes
2answers
55 views

Custom module best practices. JS inside template file or not?

I am building a custom module for Joomla. Let's call the module "mod_mygallery". Inside the module I have a the files mod_mygallery.php, helper.php and mod_mygallery.xml. And off course I also have ...
2
votes
2answers
620 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
30 views

Insert custom field into modules .xml file

I have currently created a Joomla Module, and i would like to make it a bit more advanced now. I have created a Custom field, and i have tried to add it to the mod_NAMEOFMODULE.xml file. To use it ...
0
votes
1answer
40 views

Display the component view or layout into a module

I've built my own component com_mycomp and in the component there is form in a layout and the path to this layout is: com_mycomp/site/layouts/subscription/form.php so I want to show this layout (form)...
3
votes
1answer
200 views

How to use HTMLHelper to add to the document head

In this post: How to add CSS/JS/an Image to a module backend @lodder shows me how to use HTMLHelper to add CSS and JavaScript. Previously I had followed the Joomla! documentation https://docs.joomla....
1
vote
1answer
57 views

Connecting module with com_ajax triggers request on menu item one level up

I've got a custom module which makes use of com_ajax to return values without refreshing the page. In my helper file I'm struggling to get the module parameters within the AJAX request and it looks ...
2
votes
2answers
42 views

How can I display the first name of the currently logged in user in content

Matthew Murphy asks the following on the Joomla Facebook Group: Anyone know of an extension for content that replaces the name with the person who's logged in? For example I have been working on a ...
1
vote
0answers
47 views

Error coming from T3-framework while updating Joomla

I am trying to update the Joomla version and T3-Framework version of our website and there seems to be a bug somewhere. Current JOOMLA version: 3.7.4 Current T3-FRAMEWORK version: 2.4.1 I first ...
0
votes
1answer
40 views

Using plugins into modules

I working on a simple module that have a simple backend form composed with custom field and I looking for a event or something else to process something during it submition. What's the way to to do ...
2
votes
1answer
38 views

Create a new folder in 'images' when installing module

I'm working on a basic module to display an image carousel. The module itself works well, but what I want to do now is create a new folder called 'carousel' within the root 'images' folder when the ...
0
votes
2answers
111 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 ...
1
vote
2answers
34 views

Add Options to {loadedmoduleid ID}

I want to create a module that implements animated icons into my articles. For this I want to use the following icon-pack: https://github.com/icons8/titanic Then I want to somehow write in my ...
1
vote
2answers
169 views

Call com_ajax from module backend

To create thumbnails & cache files, I have to access my already created Ajax Functions inside my helper.php file. I'm already able to call the functions within the frontend (button that is ...
0
votes
2answers
32 views

How to prevent the modification of a customized module?

Is it possible to prevent the modification of a customized module by another administrator? If so, how can I implement such a restriction?
2
votes
3answers
105 views

Is it possible to add a new module position within a module?

I know in a template you can add <jdoc:include type="modules" name="newposition" /> and then within the positions tags you add your new position. <positions> <position>...
2
votes
3answers
139 views

Module Class Suffix Child Div

Joomla! 3.9.1 I've created a 'custom html' module and in the module settings Advanced > I've added the feature-box suffix. In my custom.css file I have added the following code; .feature-box { ...
4
votes
1answer
47 views

Getting CSS style to vary with different module instances

Edit: see the Update below for the current status of the problem. I have a module that has to display a variable number of rows, based on how the user configures it in the back-end, and several ...
1
vote
0answers
28 views

Make Search bar dynamically appear at top of body

One of our clients would like to have a search icon in their Main menu, which when clicked causes a search bar to appear at the top of the website's body. An example of this behaviour is at https://...
4
votes
3answers
1k views

How to create a custom script to force the download of a .csv file that is generated in real time?

So I've been handed a custom administrator module which simply displays database table data in an HTML table. My task is to create a clickable button on the module that will generate the csv data on ...
0
votes
1answer
73 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 ...
0
votes
3answers
445 views

Problems with sourcerer and a table

Why if I try to generate a table in a custom html it doesn't show a table?, it appears everything in the same line and I don't know why. This is the code: {source} <?php $db =& JFactory::...
3
votes
1answer
95 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 ...
2
votes
1answer
68 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
2answers
182 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::...
1
vote
1answer
276 views

Custom header content depend on article

I am wondering is it possible to have different headers depending on the different articles? e.g article ID 1 shows header A and article ID 2 shows header B. Currently I have modified the template ...
0
votes
1answer
63 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" >
1
vote
1answer
162 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(...
2
votes
2answers
331 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 ...
4
votes
2answers
2k 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: ...
1
vote
1answer
514 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 ...
0
votes
1answer
538 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 ...
6
votes
1answer
1k 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 ...
0
votes
1answer
81 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'...
0
votes
0answers
102 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
4k 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
279 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 = $...
0
votes
2answers
250 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
2answers
68 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
122 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
79 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
1answer
150 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. ...