Questions tagged [joomla-3.x]
For question regarding Joomla 3.x of the Content Management System. This includes versions 3.0 up to 3.8.
310
questions
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?
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 ...
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 ...
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
994
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 ...
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?
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 ...
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 ...
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 ...
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.
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 ...
8
votes
3
answers
514
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 ...
2
votes
3
answers
731
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 ...
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
16k
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 ...
2
votes
3
answers
4k
views
Sending POST data within module - AJAX
Requirements for this task is - I can NOT use any type of components (com_ajax is out of the options list)
GOAL: send post data if checkboxes are 'checked' using ajax within custom module.
Is my ...
8
votes
2
answers
11k
views
How to change the title tag?
On each page I get the option of meta description and keywords but don't get Title.
Where can I change what appears under the <title> tag.
6
votes
1
answer
762
views
Can't see alternative layout once i add xml file
I create a file "product.php" in "\templates\beez3\html\com_content\category"
I can see it in "alternative layout option" but i can't see it in "menu item type".
Then i create a "product.xml" file.
...
4
votes
3
answers
549
views
Mass Joomla sites Updates / Maintenance
I have around 100 websites on a single server, all in j3.2.x all working fine.
Now if i want to add a single module/component/plugin in all the websites i have to log-in in all the websites and add ...
3
votes
3
answers
5k
views
Using AJAX in a custom module - how to do it?
I think this might be useful in future for many others.
First of all, I know that there's com_ajax for this kind of a job, but I do not want to use it. Is there an alternative?
What I got:
default....
2
votes
5
answers
10k
views
Single Sign On (SSO) Joomla with other System
I've been searching over the net on how to make a Single Sign On Joomla 3.3 to work with a system that is based on Java. Both Joomla portal and java system are under the same server.
I need it to ...
1
vote
3
answers
1k
views
select data from several tables in one query - how to control JOIN?
I'm building on my question here: Build a query with JOIN, but filter and sort that joined table first
Now the goal has become more complicated and I can't solve it.
Here's the problem:
I'm building ...
7
votes
2
answers
14k
views
How (re)set password for admin after migration from 1.5?
I migrated an old Joomla 1.5 site to a shiny new Joomla 3.3 version using the tool SP UPGRADE.
Now I can't seem to login and I fear its because all the user passwords in the DB look like 'MD5':'Salt'...
6
votes
3
answers
995
views
Joomla/PHP How can a plugin append a css class to the body section?
Hello Joomla Community,
How can a css class be appended to the <body> from inside a system plugin?
Any advice is appreciated,
Thank you.
5
votes
2
answers
492
views
How can I load the new Protostar custom CSS stylesheet last?
I have been using EasyScript to load custom CSS on a website using the Protostar template:
This works well and allows me to override the template styling and also third party extension styling (e.g. ...
5
votes
2
answers
2k
views
How Can I Get Rid Of Category Pages in Joomla
I have created several categories in my Joomla site to keep my articles organised but I have noticed that Google can see these categories and the category id and name is being added randomly to the ...
4
votes
2
answers
2k
views
Still required to turn Remember me off when migrating from 2.5 to 3.x?
With 3.3 and 3.2.4 is it still required to turn the plugin Remember me off? What is the technical reason?
2
votes
1
answer
716
views
Correct ways to verify update query is successful under conditions
I was trying to find out correct ways to verify db update query is successful but some problems i am fetching. Even if update query($db->execute()) is not done/row does not exists.... but it ...
2
votes
1
answer
1k
views
How to make a single-page template?
I want to make a single-page template from scratch, but I don't really know where to start. I'm using Joomla 3.x, so my approach should be bootstrap compatible.
I guess that since the menu buttons ...
13
votes
1
answer
4k
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 ...
15
votes
7
answers
10k
views
Upgrade from 2.5 to 3.x overview
This is something I have been curious on for some time considering a few things.
How well is the "one click" upgrade going to improve prior to the EoL of Joomla! 2.5?
Right now we have a very low ...
11
votes
3
answers
26k
views
How to get joomla version by http?
I have seen screenshots of a solution, there the Joomla version is getting detected by only accessing the page via http.
E.g. the solution displayed all 3 digits of a version of Joomla. e.g. 2.5.28, ...
14
votes
9
answers
6k
views
How can a module be disabled based on device or viewport size in Joomla 3 to optimize performance for mobile devices?
I'm a proponent of Responsive Web Design in conjunction with Adaptive Web Design (i.e. - one design that adjusts display for all devices and provides content based on view port size) as opposed to ...
22
votes
6
answers
20k
views
How to detect if user is Super User?
To determine whether the visitor is a guest, we use something like this :
if ($user->guest) {
echo 'Hello, guest!';
}
Now, if i want to determine whether the visitor is a registered SuperUser (...
17
votes
4
answers
8k
views
Joomla Registration: Remove unneeded fields
First, I am aware of this question:
https://stackoverflow.com/questions/14799733/remove-name-field-from-joomla-registration-form
But the link in it's answer is dead, and the file path mentioned ...
8
votes
2
answers
6k
views
Site clean up tips
I was hoping for some tips on how I should routinely 'clean up' my Joomla sites, as it's that time of year again! I'm sure we all do it to some extent, so I'm just looking for advice on what others do....
11
votes
1
answer
4k
views
Form field "showon" with multiple fields
I have 3 fields defined in my XML file like so:
<field name="field1" type="radio" label="Field 1" class="btn-group" default="1">
<option value="1">JYES</option>
<option ...
5
votes
2
answers
2k
views
How to get Ajax response within a Module?
I am coding my first experimental administrator/module so that I can understand how Joomla performs ajax calls. I only need to refresh the content of my module with some server info and a couple of ...
3
votes
2
answers
999
views
How to share table between 2 or more databases?
I have a Joomla! site and now I want to make some subdomains. But, I want that the users must be the same in both. Like, if a user logs on to the main site and then goes to the subdomain at the same ...
11
votes
6
answers
10k
views
Jhtml::script order - how to postpone until jQuery has been loaded?
I use JHtml::script to add scripts to my pages in a custom-developed module. However, these scripts are injected into the head before J3 adds in jQuery - for example:
<!-- my module js -->
<...
11
votes
5
answers
5k
views
Joomla 3.6.0 to 3.6.1 results in a "invalid security token" error
I've just tried to update my site from Joomla 3.6.0 to 3.6.1 and I get the following error message:
The most recent request was denied because it contained an invalid security token. Please refresh ...