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
32k 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?
27
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 ...
21
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 ...
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 ...
13
votes
2answers
446 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

How can I use Joomla's Cache with my components view?

As is typically the case with a CMS, the most hits occur while it is still "new". I'd like to cache the page output the first time it is rendered for a given period as to reduce the heavy workload ...
12
votes
4answers
22k 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 ...
12
votes
3answers
3k views

Best method to check if a component is installed/enabled?

Between joomla 2.5 and 3.x what is the best way to check if another component is installed and/or enabled? There exist a helper class called JComponentHelper but I believe the isEnabled function will ...
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 ...
11
votes
4answers
14k 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 ...
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 ...
11
votes
3answers
511 views

Is there a roadmap for Joomla development?

I recognize that most (all?) of the code is written by volunteers so it is hard for anyone to say that 'this' is the order that things need to be done and 'this' is what we have to do next. That ...
11
votes
2answers
141 views

How do I add an article to #__content from my component?

My component needs to add articles from the front-end in a non-conventional way. I realize I can just insert them with MySQL, but I'd like to use the core functions to do so (if it's possible). ...
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 ...
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 ...
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:...
10
votes
4answers
1k views

Which Bootstrap version should be used v2.3 or v3 in new extensions

As an extension developer, I am still confused which Bootstrap version to be used in my upcoming extension. In many discussion I found that Joomla 3.x will not utilize bootstrap-3.0. Most of ...
10
votes
1answer
397 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 ...
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 ...
9
votes
2answers
5k views

Tutorial for setting up PhpStorm to work with Joomla

Is there a good resource or tutorial which explains how to setup PhpStorm so one can develop and debug Joomla extensions (and core) with it? I am looking for something similar to the Configuring ...
9
votes
1answer
448 views

Trash Joomla Article in frontend

I'm developing a small plugin for Joomla 3.x that adds a "Trash article" button when you're in Joomlas Frontend. See screenshot below. http://imgur.com/NYLGRdY Now I have this AJAX call that ...
9
votes
2answers
1k views

How can I override the class or readonly attribute that is specified in the form xml?

We have a particular field that can only allow input when adding the record for the first time, so I'm wondering if it is possible to add a class, or specify readonly at some point after the form has ...
8
votes
2answers
5k views

Display system messages inside component instead of in the template

By default Joomla 3 system messages (messages, notices, warnings) are displayed in a certain position of the template using <jdoc:include type="message" /> Would it be possible getting more ...
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 ...
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(...
8
votes
1answer
3k views

Managing sites with Git

I'm starting to use Git to manage Joomla site builds, and I'm looking for some best practice guidance. As it stands: Use WHM to provision a new account. I've written a post-install hook to ...
7
votes
6answers
1k views

What is the best place to store downloadable PDF invoices?

My component will produce invoices in PDF format that will be available for customers to download. Where is the best place to store these files? /adminitrator/componentes/com_mycomponent/invoices /...
7
votes
3answers
238 views

How to develop safe Joomla extension?

Before I'm going to write my first extension, I would like to understand how to design it as invulnerable as possible. Is there a set of rules to write safe Joomla extension? I can imagine only SQL ...
7
votes
3answers
274 views

How to resolve `Strict standards` warning for different method signatures across Joomla versions

In updating an extension to support Joomla 3.x we've run into a few cases where the signature for a function has changed since 2.5 and results in a Strict standards warning. For example in the JTable ...
7
votes
3answers
3k views

What's the proper way to authenticate a user?

A couple years back I wrote a small and very incomplete component that authenticated users coming from outside of Joomla! i.e. a mobile application. Is there a proper or preferred way of handing this?...
7
votes
2answers
599 views

How do I properly raise an error from within a plugin?

I am successfully preventing some content from being saved under certain conditions, but am having trouble handling the error message to the user. The actual text does display, but there is ...
7
votes
2answers
5k views

Is there a way to know where jdoc:include type=head lines are being loaded from?

In a previous question I already got clarified how exactly did <jdoc:include type=head> work. Now I have a new question about it. Basically, any extension can add a call to new scripts, css ...
7
votes
2answers
369 views

How is content “locking” handled in custom components?

Default core's com_content has a built in system that, when a specific article is being edited by a user, it gets "locked", so no other user can edit it at the same time. If the user closes the window ...
7
votes
1answer
3k views

How should I use view.raw.php properly

I'm trying to add a custom JToolbar button to my list view that will export the list contents to excel. I created a new task in my list controller to render the raw view class in a file called view....
7
votes
1answer
1k views

JUri::base() issue, losing subdomain

There is a chance this is a bug, but I am pretty sure I must be overlooking something. Basically JUri::base() is removing the subdomain path, this is in siteground with its Joomla staging enviroments,...
7
votes
1answer
472 views

How can I use the MVC Model to Load, Change, then Save a record?

After googling,etc. I've arrived at the below code to Add a new Category to Joomla so that all the plugin events, etc. get done. $basePath = JPATH_ADMINISTRATOR.'/components/com_categories'; ...
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. ...
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: ...
6
votes
2answers
398 views

Structure folder of sql files in my component

What folder should I put my sql files in my component for joomla execute them automatically? If in the first version I created a table and in later version I want to change, how should I organize that ...
6
votes
3answers
3k 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 ...
6
votes
2answers
1k views

What to use , simplexml_load_file or JForm::getInstance or?

I need to get field attribute value from templateDetails xml . This is the field and I need the styles attribute <field name="get_styles" type="yjsglist" default="blue|007ebd" styles="blue==007ebd|...
6
votes
4answers
6k views

Date/time picker in component

In my custom component, I need to enter date and time. Joomla's standard calendar-element supports a date picker - but no time picker. Can anyone help me and point me to an alternative date and time ...
6
votes
1answer
2k views

JInput->get() , how does it work?

I'm a beginner in Joomla and a little confused with this method. for example consider this : $app->input->get('foo',0,'int'); where is the source of foo ? JInput->get() get's inputs from ...
6
votes
2answers
137 views

Joomla Component Development: Starting Point

So, basically, I've developed an application that gets the data from the database, processes it and then displays it on a webpage and now I need to integrate it with joomla. I've read about MVC ...
6
votes
1answer
61 views

Package installation with conditions

I have a package (Joomla! 3x) that contains 2 plugins and it install/update and uninstall correctly. But now, I need to refine the installation/update process. Scenario on fresh installation: If ...
6
votes
1answer
141 views

How to make a Joomla! component cross-compatible (J2.5 - J3.x) [closed]

When developing a Joomla! 3.x component, how do you make it backwards compatible with Joomla! 2.5?
6
votes
1answer
437 views

Abandonware user self-registration procedure in Joomla core

Joomla 3.6 has two different controllers intended to create a new user: UsersControllerRegistration::register() defined in components/com_users/controllers/registration.php and UsersControllerUser::...
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 ...
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?
5
votes
3answers
5k 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?...

1
2 3 4 5
7