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
5
votes
1answer
726 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
349 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
1answer
39 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
3answers
873 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 ...
3
votes
2answers
54 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
115 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
157 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
833 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
82 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
39 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
94 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
276 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
259 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
8k 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
31 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
2answers
559 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 ...
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
3answers
100 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 { ...
1
vote
2answers
421 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
946 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
441 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
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
2answers
172 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
396 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
596 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
232 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
813 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
894 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
33 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
99 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
223 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
421 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
142 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
244 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
357 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
278 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
41 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
31 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 ...
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://...
1
vote
0answers
110 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.
1
vote
0answers
368 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 ...
1
vote
0answers
52 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 ...