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
2 answers
188 views

How to display order data with simple SQL query?

I am trying to run a simple query in Joomla 4 to retrieve order data to display in a module. Testing the query with phpMyAdmin works fine, but despite generating no errors (set to Maximum) the below ...
Phil91's user avatar
  • 31
1 vote
1 answer
31 views

Dynamic Title Module Control

I'm using PHP to creata dynamic page title based on the menu item using Sourcer and the following PHP: <?php $active = JFactory::getApplication()->getMenu()->getActive(); echo $active->...
John S's user avatar
  • 11
2 votes
3 answers
253 views

Migrating custom module to Joomla 4

I have a Joomla 3.x module which calls the category name from the database and then shows this in the module position. It does this with: $db = &JFactory::getDBO(); $id = JRequest::...
RustyJoomla's user avatar
  • 2,066
1 vote
1 answer
81 views

How to know the Joomla article ID for customization

I have a demo installation of J 3.10.9 with protostar template (https://joomla4.extrowebsite.com/). The menu item "Home" -> blog category - has N articles. The article "Welcome to ...
Floyd611's user avatar
2 votes
1 answer
124 views

HTMLHelper call a custom class in a module

In the xml file for a module, I call a custom field class: <config> <fields name="params"> <fieldset name="basic" addfieldprefix="Myextension\Name\...
user3533235's user avatar
1 vote
0 answers
70 views

Delete Thumbnails Button Created as Joomla Custom Form Field Throws Me Out

I am developing a Joomla 4 Content Slider Module and it creates thumbnails in the mysite.com/cache/mymodule/ folder. I am trying to add a delete-thumbnails button. I am using a custom form field for ...
wisdom's user avatar
  • 21
0 votes
1 answer
58 views

Can a module used in an article have parameters?

Im quite new to joomla. As far as I understood, modules can be used in an article like building blocks. Example: {loadmoduleid 117} Goal I would like to give article authors a simple method to add ...
Georg W.'s user avatar
  • 103
1 vote
1 answer
218 views

Use Text-Editor in UIkit Modal (Module Backend)

For a new Project i would like to have an editor instance inside a modal popup (click on an object to add / edit details). I have my Custom Field that loads an editor like so: $editor = JEditor::...
Marco's user avatar
  • 549
1 vote
1 answer
36 views

Show 'menuitem' field name in frontend of module

I have the following XML in my module params: <field name="menulink" type="menuitem" default="45" label="Select a menu item to show" description="Select ...
RustyJoomla's user avatar
  • 2,066
1 vote
1 answer
219 views

Joomla 4 - Module Backend Subform subform-row-add "row" not available

while updating one of my modules for J4 i recently noticed that the repeatable subform field no longer provides the added "row" in JS. Working JS for J!3.x: $(document).on('subform-row-add', ...
Marco's user avatar
  • 549
0 votes
1 answer
57 views

Undefined property: stdClass::$showtitle in custom module [closed]

I currently have a problem that is driving me crazy. My module shows the following error in the frontend in the DEV environment: Undefined property: stdClass::$showtitle .../joomla3/templates/system/...
Marco's user avatar
  • 549
3 votes
1 answer
140 views

Unable to get (site) template params from my module's backend

Someone at stackoverflow recommend I ask the question here, apologies if this is considered cross-posting... OVERVIEW I am developing a set of custom templates and a set of custom modules. The ...
Bold's user avatar
  • 103
0 votes
2 answers
525 views

What is the proper way to use content.prepare?

I am trying to put a module inside another component. According to https://www.joomlashack.com/blog/joomla-how-to/module-position-component/ I can put <?php echo JHtml::_('content.prepare', '{...
shenkwen's user avatar
  • 1,369
0 votes
0 answers
86 views

How to add base64 string to email as an attachment in Joomla?

I am getting data in the following format through post request. "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/...
Parkar's user avatar
  • 101
0 votes
1 answer
466 views

Where do I define custom global variables in my Joomla project?

I'm using Joomla 3.9.18 and I've got a project including a component and a couple of modules. I've got a couple of variables that are the same throughout the whole project (like some prefixes and a ...
user avatar
0 votes
2 answers
206 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 ...
BHIT Magazine's user avatar
1 vote
1 answer
508 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::...
user1616338's user avatar
2 votes
1 answer
243 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 ...
Firefighter's user avatar
0 votes
2 answers
47 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 ...
TVBZ's user avatar
  • 213
1 vote
2 answers
263 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 ...
TVBZ's user avatar
  • 213
1 vote
1 answer
2k 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 ...
TVBZ's user avatar
  • 213
0 votes
1 answer
555 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 ...
TVBZ's user avatar
  • 213
0 votes
2 answers
362 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 ...
TVBZ's user avatar
  • 213
0 votes
1 answer
505 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 ...
jokk's user avatar
  • 3
0 votes
1 answer
443 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)...
TrolliFlame's user avatar
1 vote
1 answer
137 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 ...
essbaxter's user avatar
2 votes
2 answers
608 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 ...
Neil Robertson's user avatar
0 votes
1 answer
225 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....
Rhea Lorraine's user avatar
1 vote
0 answers
141 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 ...
Smolikas's user avatar
  • 111
2 votes
1 answer
67 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 ...
JJBW's user avatar
  • 43
1 vote
2 answers
37 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 ...
Cowboy_Patrick's user avatar
1 vote
2 answers
399 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 ...
Marco's user avatar
  • 549
0 votes
2 answers
39 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?
nicovon's user avatar
  • 85
4 votes
1 answer
131 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 ...
William's user avatar
  • 299
1 vote
0 answers
35 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://...
William's user avatar
  • 299
0 votes
1 answer
77 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 ...
Viktoriia Shestak's user avatar
3 votes
1 answer
2k 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....
Eoin's user avatar
  • 1,889
4 votes
3 answers
2k 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 ...
mickmackusa's user avatar
  • 4,781
2 votes
3 answers
258 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 { ...
jonboy's user avatar
  • 3,563
2 votes
3 answers
153 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>...
Eoin's user avatar
  • 1,889
0 votes
1 answer
45 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 ...
Sebastien's user avatar
1 vote
1 answer
514 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 ...
Z Pat's user avatar
  • 13
0 votes
1 answer
71 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" >
Uziel Almeida Oliveira's user avatar
2 votes
2 answers
612 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 ...
Muteshi's user avatar
  • 233
1 vote
1 answer
853 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 ...
Marcel's user avatar
  • 35
1 vote
1 answer
229 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(...
Pablo Castelo's user avatar
0 votes
1 answer
787 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 ...
OlafGizursson's user avatar
0 votes
1 answer
144 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 ...
Eoin's user avatar
  • 1,889
6 votes
1 answer
2k 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 ...
NivF007's user avatar
  • 2,097
1 vote
2 answers
267 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::...
Eoin's user avatar
  • 1,889