All Questions
703
questions
21
votes
5
answers
47k
views
How do I override the CSS styles in my template?
When using a free/commercial Joomla template from Template Club X/Y/Z, what is the best way to include my own CSS styles?
40
votes
6
answers
33k
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?
20
votes
4
answers
6k
views
How to override core classes?
Sometimes there is a need to override core classes to get more functionality or to make some core functions work in another way. Is there any way how to override core classes? If it is possible then ...
12
votes
2
answers
5k
views
How to deal with Duplicated Content / URLs in Joomla?
I just found out a major SEO issue and while I have solved it for the time being; I am trying to figure out why it may have occurred in the first place and if there was mistake or is it something to ...
9
votes
4
answers
6k
views
Multiple website managment with Joomla?
I'm planning on starting three different websites, under one web host. I know of a web host that supports this. The question I have is this: can I administer all three sites under one Joomla instance? ...
12
votes
4
answers
24k
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 ...
5
votes
1
answer
2k
views
SQL Injections using Jfactory::getDBO and setQuery() with LIKE condition
$db = JFactory::getDBO();
$searchP = JRequest::getVar('key');
$sql = "SELECT name FROM people LIKE " . "'%" . $searchP . "%'";
$db->setQuery($sql);
$fileR = $db->loadObjectList();
Will ...
34
votes
9
answers
1k
views
How to secure a new Joomla installation?
What are the actions that one should take after a new Joomla installation in order to keep it secure? Both on shared hosting servers and dedicated ones.
23
votes
4
answers
14k
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 ...
24
votes
1
answer
8k
views
How to save Custom Fields in Core components
I'm trying to add a single, simple field to each #__content item, and I've very carefully followed the tutorial at Adding Custom Fields to Core Components, substituting "content" for "contact". I now ...
8
votes
3
answers
9k
views
How to show tagged items in category blog layout
I want to create a menu item for a tag that shows the articles as in category blog layout. I have tried with these menu item types: "Compact List of Tagged Items", "List of all tags" and "Tagged Items"...
10
votes
5
answers
5k
views
What to do if my Joomla website got hacked?
I have a Joomla 2.5 website. Yesterday I was not able to login administrator panel. I checked out users table. I was shocked when I saw that all the users' username field were 'admin' and passwords ...
3
votes
2
answers
1k
views
Why does Category View use Home Page Itemid when displaying the articles?
From the home page of v3.3.6, I have a Category View listing all the sub-categories of a given main Category. When I click on that link from the home page, it lists those Sub-categories as expected, ...
10
votes
4
answers
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 ...
4
votes
2
answers
999
views
Joomla Beginner Tutorials - How to start with Joomla?
A friend told me to use this Joomla to set up my own website. Truth is I have no idea how to start with it. I have some html, css, php knowledge but never had to use a CMS before and specifically ...
12
votes
5
answers
14k
views
How to setup a new multi-language website?
One of my old clients want to turn to Joomla instead of a static HTML5/CSS3 responsive Multi-languages website.
I'm a newbie to Joomla, and my biggest challenge is how to make a multi-languages Joomla ...
15
votes
9
answers
18k
views
How can I completely remove Bootstrap from the frontend of Joomla?
Recently, I tried to remove all instances of Bootstrap from the front end of Joomla for debugging purposes.
I was using a skeleton template with a relatively new installation of Joomla 3.3. I removed ...
9
votes
2
answers
16k
views
How to stop (fake) users from registering on my website?
I administer a website which does not require users to register. The only user that is needed is the Super User. The problem is that I found a large number of new registered users.
First I want to ...
17
votes
4
answers
34k
views
Adding custom CSS styling on some of my pages
I would like to add custom CSS styling to some of my pages to give them a unique style, and override the default template styling.
How can I achieve this in Joomla?
4
votes
3
answers
2k
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 ...
27
votes
10
answers
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 ...
26
votes
2
answers
13k
views
What's the proper way to get the entire $_POST?
In Joomla! 2.5.x I could simply run JRequest::get('post'); but seeing as JRequest is deprecated in Joomla! 3.x I should use JInput.
At them moment this is the code I'm using to get the entire $_POST:
...
32
votes
4
answers
5k
views
Method for creating a subquery using JDatabase
At http://docs.joomla.org/Selecting_data_using_JDatabase, there isn't a documented method for writing a subquery using JDatabase.
https://gist.github.com/gunjanpatel/8663333 exemplifies one way of ...
9
votes
2
answers
2k
views
What is the Joomla Execution Flow, after a request reach to index.php till the final output on the browser?
Based on this question: How Templates work and load css/js files? Website building process with Purity III
Quote:
.... I have to present my website tomorrow and i may get asked "where does
the ...
18
votes
5
answers
6k
views
What is an efficient way to troubleshoot a "white screen of death"
Quite a few times I have been in a position where the front-end of a Joomla website is a blank screen with no content, sometimes known as a "white screen of death".
This has occurred after a website ...
10
votes
5
answers
10k
views
Disable script loading in head
How do I disable the loading of
mootools-core.js
core.js
In <head> without using a third party component/plugin?
5
votes
1
answer
450
views
How to make my Editor plugin (type: editors-xtd) survive after updates?
I have a project that I am writing a component, module, and editor plugin for.
I have managed to piece together a rudimentary plugin that works with TinyMCE (at least) which:
Displays a custom ...
5
votes
3
answers
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 ...
20
votes
3
answers
9k
views
Whats the correct way for exception handling?
In Joomla core I find still many calls like this:
// Check for errors.
if (count($errors = $this->get('Errors')))
{
JError::raiseError(500, implode("\n", $errors));
...
7
votes
3
answers
7k
views
Virtual host for Joomla
How can I set up a VirtualHost on my local developer environment? Ideally I would also like to be able to access my site from a simply URL, such as www.joomla.loc rather than having to constantly use ...
13
votes
2
answers
498
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 ...
10
votes
5
answers
7k
views
How to remove the 'index.php' from URL's?
I was wondering if it is possible to remove the 'index.php' that is shown in every URL.
26
votes
8
answers
17k
views
Recommended practices regarding Joomla file/directory permissions and ownership on linux systems?
In the past I’ve often run into trouble with permissions and ownership of Joomla files/directories on linux systems.
Problems included
Not being able to transfer files to the server using programs ...
7
votes
1
answer
7k
views
How do I apply JHtmlSidebar to add a sidebar to my admin view?
I can't find any tutorials on how to use the JHtmlSidebar Utility Class.
This comes close to it: Creating a toolbar for your component, but it is very vague. It mentions $this->sidebar, which ...
4
votes
3
answers
24k
views
Joomla DB Insert, how to get last inserted id?
I have to insert my data into 2 different tables, in the first table I have the following query which works perfectly:
$insertProjectUser = 'INSERT INTO #__pmanager_user (user_cms_id, user_email, ...
8
votes
3
answers
518
views
Is there a way to promote articles between environments?
Is there an easy way to move articles between Joomla installations? For example in a development/staging/production environment, I have the same 20 articles in each.
If I make a change to all 20 ...
6
votes
3
answers
844
views
How to update an online website?
Maybe this is a silly question, but I would like to know how you deal the update of an online website. I'll explain me better.
Suppose there's this website with daily added articles, comments, forum ...
2
votes
3
answers
739
views
2 domains, 2 templates one cms with same content
I have a site that need to have two sites in one, it is one company with two brands the one is news paper and the other one is tv(video). They have corresponding articles or videos, that feature on ...
4
votes
2
answers
453
views
Single source many Joomla sites on a server. How could it be possible?
I have hundreds of identical joomla installations on same server. For two years, I have been updating and maintaining them seperately which makes me too tired and causes too much time and energy loss.
...
3
votes
1
answer
505
views
Unexpected parent tag association
I'm using 3.3.0 and started playing with the tags. I've noticed that all of the tags recently created have the Joomla tag as their parent. When I edit the tag, the Parent pull down menu is set to ...
12
votes
2
answers
4k
views
Create categories, subcategories and articles using php
Is it possible to dynamically create Joomla categories, subcategories and articles using PHP scripts?
Is there any example link?
7
votes
1
answer
5k
views
Override MVC classes in Joomla 3
Is there anyway to override MVC classes in Joomla 3?
I have found this thread but it is for Joomla 2.5. How to override core classes?
I have done MVC overrides in Joomla 2.5 successfully but now I ...
15
votes
4
answers
11k
views
How to check what component is being used on current page?
I want to set up my template so it will display different layout depending on what component is being used on current page. How to check for this?
10
votes
2
answers
3k
views
Joomla browser detection
Can we create a thorough question/answers post with the core methods that allow browser detection in Joomla 2.5 and 3 ?
After a quick research in the web, I feel that there is not sufficient ...
7
votes
1
answer
15k
views
How to get the alias or title of the active menu item?
In my template I want to give an extra class to the body of the document that will take the names of the alias of the menu item, so I can create individual styling among the pages.
But how can I get ...
6
votes
3
answers
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 ...
4
votes
3
answers
2k
views
Pass var to jQuery script
I need to pass a php var to a jQuery script. They are in separate files, one file to php code and another file to jQuery scripts. Is there a way of doing it? I am using Joomla 3.4.1. I just need to ...
13
votes
8
answers
17k
views
How to display module in component area
I often need to create a menu item that displays a module in the component area, without any other content.
The way I solve this is to create a new article, and add only {loadposition mymodule} in ...
6
votes
2
answers
3k
views
Logging in user without getting password from them
My requirement is something like login by Facebook, so the user does not provide password but gets logged in. I want to make a user logged in from within extension code by knowing his user id and/or ...
6
votes
3
answers
4k
views
What does JHtml::_ do?
I've seen code like this:
JHtml::_("script", "path/to/script.js");
JHtml::_("stylesheet", "path/to/stylesheet.css");
JHtml::_("jquery.framework");
What does the underscore function do here?