Questions tagged [development]

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

Filter by
Sorted by
Tagged with
40
votes
6answers
31k views

What is the proper way to make an AJAX call in component?

I am developing a custom component for Joomla! 3.x and want to make an AJAX call inside it to retrieve some data. What is the proper way to do it?
12
votes
4answers
21k views

How to display user profile information?

I want to make a custom profile page which will only display the details of the user who has logged into my website. I need to display username name registered email Is it also possible to create ...
20
votes
4answers
13k views

Joomla 3.x extension development tutorial for a beginner developer

I worked extensively in Joomla 1.0.15 version and developed multiple extensions. Also, I continued my developed in Joomla 1.5.x But, my developed discontinued after this release. Now, I want to start ...
10
votes
4answers
2k views

How to develop a Joomla module?

I've looked far and wide for a tutorial on this, but can't seem to find anything satisfactory. How do you make a new module for joomla? Right now I'm using custom HTML modules all over my code, and ...
26
votes
10answers
3k views

What tools can I use to help assist me with Joomla development?

I'm new to Joomla development and I would like to know what tools and/or software can assist me in in developing both the backend and frontend of a Joomla site. This would also include any future ...
5
votes
3answers
5k views

Migrating component from 2.5 to 3.3

This documentation: Adapting a Joomla 1.5 extension to Joomla 2.5 http://docs.joomla.org/Adapting_a_Joomla_1.5_extension_to_Joomla_1.6#Renamed_events Really helped me when I migrated my component to ...
13
votes
2answers
409 views

How do you update a website once it has gone live?

How do you push updates live to templates and modules once you have gone live with the site? We tend to do a few different solutions as we develop on one site and then akeeba backup to push the site ...
13
votes
1answer
3k views

Adding drag-n-drop ordering in component

I've developed a small component based on the Joomla Hello World tutorial, and now I would like to implement the same drag-n-drop reordering that many other Joomla components include: By sorting by ...
10
votes
1answer
2k views

How can I dynamically generate a form's XML from PHP?

I have a requirement to generate a page/form based on the user's list of items. As is, the user can specify a list of items that have a text description of the item, and whether it's a text or list ...
6
votes
3answers
2k views

Programmatically Add Menu Item in Component

I am trying to create a component where the user can add a menu item to an existing Menu after creating the article (or selecting from a list of article). The closest I could come across to an example ...
10
votes
2answers
2k views

What's the difference between JHtml:script() and $doc->addScript?

I developed a module recently that required certain JS and CSS files to be injected into the <head> of each page. Initially, I used: $doc =& JFactory::getDocument(); $doc->addScript(JURI:...
3
votes
2answers
1k views

How to save image in specified folder in joomla directory and save file name in db

I am working on a custom component, where at the backend interface - we want the admin user to be able to upload image and let that image directly save to a specified folder - /images/uploads/variants/...
8
votes
1answer
12k views

How to create a view with filters and pagination

I want to create a view with filters and pagination for Joomla 3.x, but I'm not sure about what I have to include and where. For now, my model extends JModelList and I started using the getListQuery(...
11
votes
4answers
13k views

How to build a RESTful API with Joomla

I have been building Joomla extensions since v1 but I soon need to take an API live that I have built and have been using for a while. Currently I am using Joomla 2.5 and have written plugins for this ...
5
votes
2answers
6k views

Available fields in Joomla XML manifest

When developing an extension, what are the form field types I can use in Joomla?
8
votes
2answers
6k views

Best way to include CSS/JS files in my custom extension

If I need to include CSS or JS files in my custom extensions, what would be the best and safest way to achieve this: Should I put them i a specific folder in my extension zip file? How should I ...
11
votes
1answer
2k views

How can I add 3rd party libraries to Joomla to have them generally available with my code

We use a number of 3rd party open source products such as PhpExcel and HtmlPurifier. In the past we have always had a separate folder for them and called them accordingly, but would now like to know ...
11
votes
3answers
2k views

How to restrict access to custom component views?

In my custom component, I'd like to be able to restrict specific views to only certain usergroups. If I create a menu item for one of my views, that's pretty easy to do: I just select the access level ...
10
votes
1answer
369 views

Adding Tags Functionality To Existing Component

I'm looking to get tags working inside of an extension. I saw this and have gotten the field to appear in the edit view, but of course it doesn't save anywhere. Looking at com_content article tag ...
11
votes
2answers
4k views

Add a custom button to a core backend component

Is it possible to add a custom button (with a custom action, of course) to the JToolbar of a standard Joomla 3 component (com_contents) without modifying the original source code? Background: I need ...
7
votes
1answer
1k views

What exactly gets loaded “inside” template's jinclude type=head call?

When building a template, you must put one (and only one) of these calls inside your <head></head>: <jdoc:include type="head" /> Checking here does not provide much extra info: ...
5
votes
2answers
3k views

What is best approach to show the component page in popup-modal window without header and footer?

I have developed a custom component that displays some information. I want to show the same information in modal popup window without header and footer information. what should be best approach to ...
7
votes
1answer
3k views

Pagination confusion - Pagination uses start, PopulateState uses limitstart?

I'm a bit confused. When I look at the link created by pagination in the front end, I see a query parameter called start included in the individual page number links and Start and End links. ...
5
votes
2answers
2k views

Two left join in one query to Joomla database

I have two tables: #__records and #__parents. In the first table some records may have parent records that are stored in the same table but relations between childs and parents are stored in the ...
5
votes
3answers
4k views

How to set get('Items') limit?

By default, populateState seems to limit a call to any model's get('Items') function to 20 items. How can this be overridden - by re-writing populateState? By writing a separate function in the model?...
4
votes
1answer
833 views

How to add a composer package without modifying the core composer.json file

I am trying to add a Composer Package and make it globally available but I do not want to modify core composer.json for obvious reasons. Is the only way to do this having a composer.json either on ...
4
votes
3answers
378 views

When will the JxxxLegacy classes be deprecated?

Is there any estimated time frame for the validity of JModelLegacy, JControllerLegacy and JViewLegacy? When will the switch to native 3.x ones occur?
3
votes
1answer
100 views

How to install a new component version automatically during development

I develop my first full component, following my tutorial. When I reached a point for check I do some steps: create the zip file open the backend tab in my browser click on "browse installation file" ...
3
votes
2answers
2k views

Pre-processing form data before display / save - what's the standard approach?

I'm developing a new Joomla component where I have a JAdminForm called course.xml. This form has several text fields / text areas that will contain meta titles / tags for an item. However, when ...
3
votes
1answer
2k views

Creating custom field type multiselect list - how to save the values?

I want to make a module that parses the manufacturers from virtuemart, and the user will select which manufacturers he wants to be shown in the index page. Its the first time I try to create a custom ...
3
votes
2answers
210 views

Is there a way to have two Joomla sites on the same virtual host?

We have an existing site, version 1. We want to build a new version of the site, version 2 in a new Joomla instance so that we can ensure a cleaned up code base, but we want to do it incrementally, ...
3
votes
1answer
69 views

Is it possible to change system plugin fire order without change order in backend?

I have small issue with one of 3rd party system plugins that fires before my system plugin. We both use onAfterRoute but if that plugin is ordered before mine, my override is not taking place. I ...
2
votes
1answer
191 views

when calling “JRequest::get('FilterForm')” result is empty

When calling the method $this->filterForm = JRequest::getVar('FilterForm');, I get an empty result. But checking the com_banners component on the same system shows a result. What can I do to get ...
2
votes
1answer
462 views

From the model, how I can access the data retrieved in the view?

I'm trying to add some external information to a component, and it retrieves the data in view.html.php. Once it is retrieved, how can I use it the model? I've tried as many of the usual variables ...
2
votes
1answer
128 views

Content Plugin loadfile loads CONDITIONAL form/data, but does not save the data - why not?

I'm completely baffled! I'm trying to load Custom Fields to a Category as I've successfully done in the past, and explained in this question/answer. It works as expected until I try to load a ...
2
votes
2answers
365 views

How about storing single records and their categories in one table

I'm developing my own component for Joomla. I know that in many components single records and their categories are stored in different tables of the database. But how about storing them in ONE table ...
1
vote
1answer
236 views

How can I add custom user field values to an article?

I have created a custom user field named "Gender". How can I show this field in an article? I can only manage to show: username, name, email and User Id Here is my current Sourcerer code to access ...
1
vote
3answers
44 views

Develop a System Plugin with Sample Data for Options

I'm in the process of developing a system plugin. In the options is a subform-field (repetable), which contains several fields. In the "default" of the subform I can specify a record. a) How can I ...
1
vote
1answer
257 views

Joomla 3 plugin to override class JMenuSite

I'm trying to override a class JMenuSite in libraries/cms/menu/site.php. I created a plugin system jmenusite.php <?php defined( '_JEXEC' ) or die( 'Restricted access' ); class plgSystemJmenusite ...
1
vote
0answers
676 views

Why doesn't my subform field data get saved?

I've been trying to debug this all day. I can't figure it out. My subform field: <field name="tricks" type="subform" formsource="administrator/components/com_test/models/forms/bagtrick.xml" ...
1
vote
1answer
179 views

Testing Joomla extensions

After recently having started developing a Joomla component, the question of how to systematically test it for bugs has entered my head. I already have some experience in using testing frameworks for ...
0
votes
1answer
133 views

How to remove rel=“nofollow” with Joomla Buffer?

I am developing a plugin to get rid of any rel="nofollow" on HTML links using a buffer, but its not working. I am testing it with a nofollow link on a Custom HTML Module. I thought that "JFactory::...