Questions tagged [development]

This tag is for question about the development of features or extensions in Joomla.

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

How to integrate Nicepage site on Joomla

I am kinda new to this whole website thing. Definatly dont have much experiance in coding ect, but I have created a whole website with a nicepage paid subscription. I downloaded Joomla and XAMPP. I ...
Shelby's user avatar
  • 1
0 votes
1 answer
21 views

Generated <a> links to wrong URL

I generate a link in a module as follows: $user->contactAddress = str_replace("//", "/", trim(JUri::base() . $params->get('defaultContactAddress') . '?' . $params->get('...
alve89's user avatar
  • 113
0 votes
1 answer
45 views

DB error using updateObject or Store after upgrading to Joomla 4

I am a component developer and now I am migrating my component to Joomla 4.x. In Joomla 3.x I could do code like: $row= new stdClass(); $row->id = "2"; $row->user_id = ""; $...
Piero Marsilio's user avatar
0 votes
0 answers
17 views

Problem setting image info when creating an article via the J4 REST API

I’ve been using the J4 REST API for a while to create articles from form data through the Webhook feature of the Convert Forms extension. It works great for both standard article fields and for ...
Jeff Gilmore's user avatar
1 vote
1 answer
35 views

Setting ignore for Joomla files or directories

I'm new to developing in Joomla and I was wondering if there are a set bunch of files and directories you ignore say for example using the VSCode ftp extension or .gitignore. I'm specifically looking ...
Tim's user avatar
  • 11
1 vote
2 answers
32 views

Does Jinput has a limit of max file size that supersedes PHP directives?

Here's one that is driving me crazy: PHP memory_limit: 512M PHP post_max_size: 256M PHP upload_max_filesize: 128M $app = Factory::getApplication(); dd($app->getInput()->files->get('jform')); ...
Alexandre Paulo's user avatar
2 votes
1 answer
248 views

Create own Custom Field for Joomla 5

I am looking at how to create my own custom field using a self implemented form field in Joomla 5. I started my extension in the same way as the core extensions (https://github.com/joomla/joomla-cms/...
agi's user avatar
  • 303
0 votes
1 answer
163 views

Route not working properly on J4?

I have a menu entry like so: ID: 524 Type: Articles->Create Article Link: index.php?option=com_content&view=form&layout=edit In the "old days" I'do Route::_('index.php?option=...
Alexandre Paulo's user avatar
1 vote
1 answer
135 views

Joomla 4: no need for Route::_($url)?

I am using this on a custom component: $url = index.php?option=com_content&view=article&catid=427&id=15106 Both echo $url; echo Route::_($url); will output a friendly url. I'm guessing ...
Alexandre Paulo's user avatar
0 votes
1 answer
101 views

Disable custom field validation

I've created a new custom field type name "lazyload" on Joomla 4. Basically it is a list field that places an empty (no options) HTML select tag and uses the select2 plugin to fetch the ...
Alexandre Paulo's user avatar
1 vote
1 answer
75 views

How to register {my namespace]\Site\Service\Category?

My component is using Joomla Categories and I'm using the following code to fetch a category: $component = Joomla\CMS\Factory::getApplication()->bootComponent('com_khub'); $category = $component-&...
Alexandre Paulo's user avatar
2 votes
0 answers
123 views

How do I upload a file with article custom fields?

I've created a custom field plugin type "file" and am using it as custom field on articles so users can upload a file (the "media" type file does not suit my needs). It looks and ...
Alexandre Paulo's user avatar
2 votes
2 answers
110 views

Adding Javascript to the Administrator Template

Is there a way to add Javascript to the Joomla Administrator template without creating a child template? Something equivalent to /media/templates/administrator/atum/css/user.css for Javascript.
Alexandre Paulo's user avatar
1 vote
0 answers
72 views

How can I override custom fields layout for the Administrator side?

I'm using Custom Fields in articles intensively. I need to override the Custom Fields edit layout on the administrator side. Editing the files created via Administrator Template Overrides do not work. ...
Alexandre Paulo's user avatar
0 votes
2 answers
72 views

Why does template stuff still appear after uninstall [helixultimate]

I installed the site template Helixultimate. Some time later, I removed it by Manage Extension. Then, I logged stuff inside of SiteMenu.php and found e.g. helixultimatemenulayout inside the params ...
SteAp's user avatar
  • 173
2 votes
2 answers
138 views

Change title for Categories page on custom component

I'm writing a component that will rely on Joomla's Categories to manage its own categories. Everything's working OK, I just cannot figure out how to change my component's Categories list title. I'd ...
Alexandre Paulo's user avatar
2 votes
1 answer
84 views

Content triggers on batch actions

I need to trigger code when an article is moved from one category to another. onContentAfterSave works fine for a single article, but what if I move articles via Actions -> Batch? Is there a ...
Alexandre Paulo's user avatar
2 votes
1 answer
44 views

How to 3rd party routing to my component?

I need to add EasySocial routing to my own component, so that JRoute([some EasySocial link]) outputs a proper EasySocial URL. How can I do that? If I understand correctly, EasySocial routing is active ...
Alexandre Paulo's user avatar
2 votes
1 answer
75 views

Extension update server - targetplatform to support 4.2 and later

I want my extension to support Joomla 4.2 and later, what should I write for the targetplatform in that case? Will 4.* do the trick? Writing something like 4.[2|3] for the targetplatform is not a good ...
Dmitrijs Rekuns's user avatar
0 votes
1 answer
82 views

How to connect custom authentication plugin to openid so I can authenticate it through steam?

I need to create a "login using steam button" for a website using Joomla, from my research I can gather up that using OAuth no longer works for Steam, so I'll have to create a custom ...
gabriel0369's user avatar
0 votes
1 answer
61 views

How to return Http 401 on Joomla Administrator for an unauthenticated user?

everyone How can I have /administrator/index.php?option=COM_MYCOMPONENT&controller=MYCONTROLLER&task=MYTASK return a "401 Unauthorized" HTTP error instead of redirecting to the ...
Alexandre Paulo's user avatar
1 vote
1 answer
217 views

About Joomla 4 Lazy Loading feature

everyone. I've read this: https://magazine.joomla.org/all-issues/january-2021/using-native-lazyloading-on-your-website, so it's clear to me that media images inserted in articles content will be lazy-...
Alexandre Paulo's user avatar
0 votes
1 answer
27 views

Menuitem form field type: show only components

I am building an admin side form and placed a Menuitem form field, that is working just fine. It is showing all the menu entries as expected, but I need it to list only the ones for "components&...
Alexandre Paulo's user avatar
0 votes
1 answer
47 views

Proper way to access Component config from API?

I am building a custom admin component for Joomla!4 that includes an API. To access the component's config I am using, on the API Controller file: $params = ComponentHelper::getComponent('...
Alexandre Paulo's user avatar
2 votes
0 answers
67 views

Very slow HTTP response times possibly due to SEF rules in htaccess

Im running Joomla 3.X and can't seem to pinpoint why I'm getting such high HTTP response times. I think I narrowed it down to the SEF rules in my .htaccess I ran some tests and thought to post my ...
Nick's user avatar
  • 51
1 vote
2 answers
132 views

Use different module settings/parameters on different posts in Joomla!

TLDR: Is there an easy way to include the same instance of a module in different posts with different settings in Joomla!? What works: URL parameters. I can call the post with a URL to which I append ...
herrpfarrer's user avatar
2 votes
3 answers
341 views

How to create a (better) development environment for Joomla 4

I have been writing a custom joomla 4.x component. It's not working. But rather than getting people here to debug my code I want to know how to set up a proper development environment that will give ...
Huw Evans's user avatar
  • 371
1 vote
0 answers
28 views

How to set another price (EUR) after current product price in Virtuemart 3.8.8

In current VM shop we need to add EUR currency next to domestic price, calculated by specific conversion value. I was hoping to do it with custom VM plugin, however I am having trouble finding ...
Oktarin's user avatar
  • 41
2 votes
1 answer
200 views

How does a custom component store config.xml information

I've been developing a custom component on Joomla 4 for a few months now and I've finally got round to working on the access and permissions side of things. Whenever I try to access the Options for my ...
Grant Hood's user avatar
1 vote
1 answer
982 views

404 View not found [name, type, prefix]

I'm currently building a new Joomla! 4 component from scratch by following along a series of blog posts since I am new to Joomla! and its development. I am using Joomla! 4.1.5 Unfortunately I am not ...
pollux's user avatar
  • 31
1 vote
1 answer
43 views

Library manifest delete folder

I use a library in my component with these folders: /library/wbs/classes /library/wbs/helpers /library/wbs/js /library/wbs/css /library/wbs/libraries And I want to use this manifest: <?xml version=...
Piero Marsilio's user avatar
2 votes
1 answer
147 views

How to remove a file from a template using the installer?

I am developing a template for a small group of sites. In the old J3 days, I had to make an override for some core templates to fix some minor things. With the update to J4 this was no longer ...
Christian Wolf's user avatar
1 vote
1 answer
2k views

Trouble linking external css file with Dompdf library

I'm trying to create a Joomla system plugin enabling a user to generate a pdf based on a template. I'm using the Dompdf library. I managed to create a PDF, but linking to an external css file isn't ...
ShaneV's user avatar
  • 21
1 vote
0 answers
367 views

Joomla 3.9 CORS error

I'm trying to allow CORS on my website but I can't get it to work. I've seen many posts about this, from updating .htacces, httpd.conf, meta tags, and php headers, but nothing worked. I always get a ...
Brian's user avatar
  • 11
4 votes
1 answer
247 views

Coding Standard Question - defined( or \defined(

A general Joomla! coding question... Checking _JEXEC is defined. In administrator/components/.../src/everywhere it is defined('_JEXEC') or die; use function defined; Whereas in components/.../src/...
mfleeson's user avatar
  • 128
1 vote
0 answers
289 views

How to programmatically change a page's meta tag?

I am making a very simple product page for my site. With very little component development experience, I decided to build this page with Javascript only. The URLs will be like https://mystie.com/...
shenkwen's user avatar
  • 1,389
1 vote
1 answer
30 views

Event for user creation in administration

Is there an event like onUserCreation() for the backend in J3? So if an administrator creates a new user, specified code (e. g. from plugin) is executed. In the API guides I didn't find any obviously ...
alve89's user avatar
  • 113
1 vote
0 answers
103 views

Codeception Acceptance Testing issue using session snapshot

I think i read almost all similar reccources considering this issue, but nothing helped so far. I am moving our Codeception tests on Github Actions. The whole build process is running but the ...
Mike's user avatar
  • 351
1 vote
1 answer
51 views

Codeception Acceptance Test Issue with JoomlaBrowser

When trying to write a simple Acceptance Test only creating a new Joomla Article Blog Menu Item, I'm doing this: $I->createMenuItem('Blog', 'Articles', 'Category Blog', 'Main Menu'); I get this: ...
Mike's user avatar
  • 351
1 vote
2 answers
207 views

How to use SQL statements not supported by JDatabaseQuery

Recently, I have needed to use some SQL statements that are not supported by the JDatabaseQuery class, specifically REPLACE INTO and INSERT IGNORE. The only way that I am able to get something to ...
Irata's user avatar
  • 3,927
2 votes
1 answer
615 views

How to open a new window/tab or modal from within a component

I am trying work out how I can pop up a modal or open a new window or tab when selecting a button on a form that processes the form and passes to another extension? I can't seem to find any examples ...
Irata's user avatar
  • 3,927
1 vote
1 answer
46 views

Restrict access to your paid extension

Our company is wanting to deploy a pro and free version of our extension onto JED. Is there any way that I can prevent people with the free version from hacking to get the pro version? I would like to ...
Richard Slabbert's user avatar
1 vote
0 answers
30 views

Form With Buttons That Don't Submit Data

I am trying to make a page that performs various functions in vanilla Javascript. One of the functions involves submitting form data to Joomla. However the issue I have is that Following the following ...
Huw Evans's user avatar
  • 371
1 vote
1 answer
257 views

How to use Openlayers transpiled Javascript code in my own extension (a "bundle")

I am developing a Joomla 3.x content plugin to display Openlayer maps in articles based on @Robbie Jacksons excellent tutorial at https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_Map ...
SoaringBird's user avatar
3 votes
3 answers
189 views

Multilingual site where several countries share the same language

I'm making a multilingual site where I'm using Spanish, English, German, and others. I have already made several multi-language sites and I am familiar with the process but in this case, my client ...
Piero Marsilio's user avatar
2 votes
2 answers
126 views

Reroute all emails to developer / debug address

I am trying to intercept outgoing emails from joomla and reroute them to my email address for development and testing. Ideally I could set up a toggle under Global Configuration > Server > Email ...
Joseph Turner's user avatar
0 votes
1 answer
66 views

How to write Joomla functionality that writes image data directly to the browser?

I am in the process of writing Joomla functionality that will produce JPEG-images on the fly using Imagick and GD. It is supposed to be used in Joomla articles like this: <IMG src="/index.php?...
SoaringBird's user avatar
1 vote
1 answer
91 views

Reason for parameter for using custom fields in configuration

In the Joomla Core Extensions we have a parameter for selecting if custom fields are used in an extension or not. For example here: https://github.com/joomla/joomla-cms/blob/staging/administrator/...
astridx's user avatar
  • 439
3 votes
1 answer
168 views

How to replace deprecated Joomla classes with VS Code?

Is there a way to conveniently replace deprecated Joomla classes with VS Code. I do have the PHP CodeSniffer (with Joomla Coding standards) and Intelephense extensions, although I am not sure if ...
jost21's user avatar
  • 239
2 votes
2 answers
592 views

How can I generate a stubs file for Joomla?

I'd like to develop Joomla components with VS Code. With PHP Intelephense enabled, all my file show errors because I use Joomla classes and functions. (And it would also be convenient to have auto ...
jost21's user avatar
  • 239

1
2 3 4 5
8