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
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 ...
2
votes
2answers
607 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
38 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)...
0
votes
1answer
46 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
49 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 ...
3
votes
1answer
160 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
54 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
40 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
44 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
37 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
110 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
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
146 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
99 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
133 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
46 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://...
3
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
69 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
440 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
92 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
177 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
258 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
157 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
316 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
484 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
512 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
904 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
78 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
277 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
249 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
118 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
149 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. ...
0
votes
1answer
241 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
436 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?
0
votes
2answers
1k 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 ...
1
vote
1answer
411 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 ...
0
votes
2answers
4k 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 ...
1
vote
1answer
623 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
143 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 ...
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 ...