26 votes
Accepted

Joomla 3.x extension development tutorial for a beginner developer

I will provide the list of my bookmarked links and a list with links for Joomla Development Books, with various resources all around Joomla Development. I hope they will be useful for anyone ...
  • 19.5k
17 votes

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

Development General Composer Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. ...
  • 3,208
17 votes
Accepted

Adding drag-n-drop ordering in component

There are some prerequisites and you have to do some modifications to your view template. But you don't have to develop this feature all on your own. Prerequisites You need a column ordering of type ...
  • 3,693
16 votes

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

Environments: Wamp (Windows) WampServer is a Windows web development environment. It allows you to create web applications with Apache2, PHP and a MySQL database. Alongside, PhpMyAdmin allows you to ...
12 votes
Accepted

Available fields in Joomla XML manifest

Numerous types of form field are built into Joomla, with many usefull fields like calendar, color picker, image picker, file upload, file selection etc.: Available Fields +---------------------+-------...
  • 13.3k
11 votes
Accepted

Add a custom button to a core backend component

Here is a draft idea using a plugin: You need to create a system plugin (I am not getting into that) and to use the event onBeforeRender. Inside you get an instance of your Toolbar and append the ...
10 votes
Accepted

How to pass variables via $.ajax to a controller

You should use Joomla's JInput class https://docs.joomla.org/Retrieving_request_data_using_JInput e.g. public function add() { // Get Joomla's input object: $input = JFactory::getApplication()-&...
  • 1,006
10 votes

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

Testing: If you're planning on writing a significant amount of either PHP or JavaScript code then all of the standard PHP and JavaScript development tools will be useful, regardless of the fact that ...
  • 610
9 votes
Accepted

How to restrict access to custom component views?

You can create a system plugin to handle all the request to your custom component before sending control to the component. Use onAfterRoute event to perform all the access checking. function ...
  • 1,791
9 votes
Accepted

Display system messages inside component instead of in the template

Ok, looks like digging a bit more I found an answer to my own question. Basically I found this plugin: http://extensions.joomla.org/extensions/style-a-design/popups-a-iframes/25240 It's not exactly ...
9 votes
Accepted

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

So far Google-searches make me presume that joomla caches your component automatically if you add display(true,...) to your controller's display method as in following example. The example also ...
  • 208
9 votes
Accepted

How to add meta tags to a page header based on an url parameter?

Assuming that with "Read Current Url", you mean that you want to be able to get request data, then: $jinput = JFactory::getApplication()->input; $url_parameter = $jinput->get('url_param', '...
  • 19.5k
9 votes

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

Frontend (template, framework etc): UIKit (framework) UIKit is only a couple of years old but has become extremely popular. It's a lightweight and modular front-end framework for developing fast and ...
  • 19.5k
8 votes

Joomla 3.x extension development tutorial for a beginner developer

I can recommend the official doc page. There is a section for developers which includes also tutorials. http://docs.joomla.org/Portal:Developers David Hurley is currently doing a series of short ...
  • 5,537
8 votes

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

Actually it would be a bad idea to have a Joomla site nested inside the root of another Joomla instance. The better scenario (which would require shell access to configure) is to have each one in it's ...
8 votes
Accepted

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

Haven't done this for awhile, but these steps should do it: Add JHTML::_('behavior.modal'); near the top of the view Add class="modal" to any links you want to open in a modal window Add &tmpl=...
  • 7,685
8 votes
Accepted

Two left join in one query to Joomla database

$db = JFactory::getDBO(); $query = $db->getQuery(true); $query->select('a.id, a.name, c.id as parent_id, c.name as parent_name') ->from('#__records as a'); $query->select('b.parent as ...
8 votes

How to create a view with filters and pagination

Follow the below steps: Filters: 1) Make sure to add all your filterable fields in your model constructor public function __construct ($config = array()) { if (empty($config['filter_fields'])) ...
  • 2,971
7 votes
Accepted

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

The best way would be to use the media folder. So, you will firstly need to create a folder called media in your module folder. Note: This folder should be created before installing, not after. The ...
  • 26.5k
7 votes

Joomla 3.x extension development tutorial for a beginner developer

Previous answers are comprehensive about Joomla Core MVC. As an alternative MVC for Joomla, FOF https://www.akeebabackup.com/documentation/fof/introducing-fof.html#what-is-fof https://github.com/...
  • 7,415
7 votes
Accepted

How to use data from another table in my view?

I'm not sure if this is the best-practice way of doing it (please comment if there's a better way), or it is exactly what you're looking for, but here's my approach using a Joomla article as an ...
  • 7,685
7 votes
Accepted

How can I can get the new record ID after saving data with JModel?

Try using the postSaveHook method which allows the controller to access model data after it has been saved. public function postSaveHook($model, $validData) { $item = $model->getItem(); $...
  • 26.5k
7 votes

What is the best place to store downloadable PDF invoices?

I would advise against using administrator/components/com_mycomponent/invoices This is because it could pose a problem when you use .htaccess on your administrator directory. For example, with ...
7 votes

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

Browser Tools: Adobe Edge Inspect CC (free) Edge Inspect is an essential application for web developers and designers who need to preview their content across multiple mobile devices. Wirelessly ...
  • 19.5k
7 votes

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

Editors: Notepad++ (for extreme speed and simplicity) Atom Sublime Text (super fast and feature packed) PhpStorm (Full PHP IDE) Netbeans IDE Quickly and easily develop desktop, mobile and web ...
  • 19.5k
6 votes
Accepted

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

Open the model file and add these lines inside the model class: public function getContentTable($type = 'Content', $prefix = 'JTable', $config = array()) { return JTable::getInstance($type, $...
  • 2,275
6 votes
Accepted

How to add image/icon to the header of the administration pages of a component?

You can define a class for the Header Title of your view, while creating the toolbar for your view within the view.html.php. Within your "addToolbar()" function, you can call the JToolbarHelper::...
  • 19.5k
6 votes

Creating a different kind of frontpage

This can be done with most templates. There's usually setting that lets you turn OFF the component function, hiding the main body. At that point it's just a page filled with modules. But even if you ...
  • 2,366
6 votes
Accepted

Programmatically Add Menu Item in Component

firstly - menu items are not put into the assets table, so this question is about a non-existent problem. The link provided in the question gives the correct answer for joom 2.5 and 3.x. but for ...
  • 3,144
6 votes

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

Not sure if this will answer your query but the first thing I would do is look here: /libraries/joomla/document/html/renderer/head.php In terms of modules adding 'strange' stuff; well they could ...
  • 1,105

Only top scored, non community-wiki answers of a minimum length are eligible