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
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 ...
5
votes
1answer
1k views

Joomla access state variable in modules

How can I access my state variables in Joomla modules? Usually I do it like $app = JFactory::getApplication(); $variable = $app->getUserState('com_mycomponent.view.filter.variable' ,'default'); ...
5
votes
1answer
356 views

How to pass, with a custom button, the selected items to a controller?

As seen in this question (Add a custom button to a core backend component), I've created a simple plugin that adds a custom button on the com_content component. When I click on this button, the site ...
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 ...
4
votes
1answer
52 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 ...
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: ...
3
votes
2answers
58 views

Where can I find source for Joomla chrome templates?

I want to add custom chrome for my modules, and I'd like to take peek at source of standard chrome styles in Joomla but I can't find their location. If anyone can help it's much appreciated. Thanks!
3
votes
1answer
242 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....
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....
3
votes
2answers
180 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 ...
3
votes
1answer
962 views

Dynamically Showing Articles Of The User Who Has Logged In?

I want to make a custom page/module/iframe or whatever which, when opened, will display only the articles written by the user WHO HAS LOGGED INTO MY JOOMLA WEBSITE. Is there any way to do that? ...
3
votes
2answers
1k views

Custom Admin Panel/Back-End Functionality Starting Point

I'm new to Joomla, but not to CMSs in general(I have years of Drupal/Wordpress module/plugin development), but I am unsure of how to go about creating what a client asked for. Part of it is since I am ...
3
votes
1answer
99 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 ...
3
votes
1answer
2k views

Display Joomla article contents and title using PHP

I have a component and module built by an external company, they have hardcoded content into the component - I want to change it so the content is called from the Joomla Article Manager. The ...
2
votes
2answers
45 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 ...
2
votes
3answers
107 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
2answers
349 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 ...
2
votes
1answer
266 views

Debug custom plugin error

I am developing few plugins for Joomla 3. I've done so far 4 of them. The first 3 works flawlessy, but the latest one gives me this error during the installation: 500 Installation unexpectedly ...
2
votes
2answers
128 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 ...
2
votes
1answer
9k views

Inserting php in a custom html module

I'm trying to introduce a simple php in a custom html module and it doesn't let me do it.Why? This is the code: <p> </p> < ? php echo " Hello World" . "\n"; ?>
2
votes
1answer
1k views

Display and edit user profie in a custom componet

i am creating a customer dashboard component in joomla 3.2, so i want to display user profile fields to my view and able to edit fields as well, i am displaying them manually using $this->user = ...
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 ...
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:...
2
votes
1answer
39 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 ...
2
votes
3answers
149 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 { ...
2
votes
2answers
640 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 ...
1
vote
2answers
42 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 ...
1
vote
2answers
455 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
1k 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
2answers
467 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 ...
1
vote
2answers
892 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
1k views

Unable to insert form values in to database Joomla 3

I am creating a custom joomla module based on form submission but i am having some problems in inserting the values I have a html form which has certain fieldsets which pass values to mod_score.php ...
1
vote
1answer
51 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::...
1
vote
1answer
75 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
188 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
428 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
642 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 ...
1
vote
1answer
243 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
2answers
956 views

mod_articles_category Override - Adding category link outside of loop

I have a custom layout for mod_articles_category. I am trying to add the Category link outside that this Articles Category item links to, but outside of the loop of $items. I have tried this, but ...
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
205 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 ...
1
vote
1answer
293 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 ...
1
vote
1answer
553 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
vote
1answer
169 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(...
1
vote
1answer
256 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.
1
vote
1answer
425 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 ...
1
vote
1answer
292 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 ...
1
vote
1answer
1k views

Joomla custom module $params stays empty

When I call my custom module from the index.php of my template, the $params variable in the modules.php, with my module settings from the backend, stays empty. So I cannot access the module parameters....
1
vote
1answer
64 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 ...
1
vote
0answers
54 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 ...