All Questions

Filter by
Sorted by
Tagged with
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 ...
12
votes
3answers
708 views

What is the proper methodology for updating templates?

Currently to update templates on our production site, we are taking the site offline, changing the template, uninstalling the template, reinstalling it, changing the template settings back, and then ...
12
votes
2answers
1k views

How to test a Joomla 2.5 component

I've asked this question on StackOverflow, and it was suggested that I ask it here. I'm familiar with unit/system/integration testing, and would like to be able to test my Joomla component. Is there ...
12
votes
1answer
139 views

Docs use assign by reference (=&) but is this necessary with PHP 5?

I've noticed in the Joomla documentation, such as for JFactory/getSession, that the examples use assign-by-reference (=&), rather than a simple assignment (=). $session =& JFactory::...
12
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
2answers
677 views

Difference between standard cache options

Joomla! have a 3 different way for caching: "Conservative caching" (in global configuration) "Progressive caching" (in global configuration) plugin "System - Cache" I have the following questions: ...
11
votes
5answers
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 ...
11
votes
6answers
438 views

Disable website to all but logged in users

I know there are many ways to do this, however when I think deeply, a global disable of the site might be difficult. What I want is when a user goes to the website, they are redirected to the login ...
11
votes
4answers
3k views

Change Login to Logout

I have a website using Joomla 3.5 and I currently have a 'Login' main menu item. Once a User logs in, there are some sub-menu items that appear under the 'Login' menu item. What I want to do is to ...
11
votes
3answers
19k 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, ...
11
votes
6answers
9k 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
1answer
10k views

Can I use PostgreSQL with Joomla 3.3

Can I use PostgreSQL with Joomla a 3.3 production site (not for testing) and if so is there anything I should be aware of? I would appreciate some feedback from someone who has actual installed and ...
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
5answers
1k views

What is appropriate for unused modules and plugins?

Some modules and plugins come with Joomla and others are installed with component packages and are not used. Should the modules and plugins simply be disabled or completely uninstalled?
11
votes
4answers
12k 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
3answers
3k views

Can multiple records be inserted all at once with the jDatabase?

Instead of using a loop, can Joomla database functions create a SQL statement like this? INSERT INTO #__tablename (col1,col2) VALUES ('1', 'one'), ('2', 'two'), ('3', 'three'), ... ('999', '...
11
votes
2answers
4k 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 ...
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
490 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
1answer
9k views

Displaying a Joomla module using PHP?

Can i display a Joomla module using PHP? What would be the script to achieve this? (If it's possible!)
11
votes
2answers
8k views

Catching exception/error in database transaction

I am using the following way in joomla 2.5 and 3 to execute database query - $database = JFactory::getDBO(); $database->setQuery $database->execute(); but how do I catch errors/exceptions if ...
11
votes
3answers
12k views

Session Handler, “Database” or “None”?

In Joomla's Global Configuration there is an option "Session Handler", its description says The mechanism by which Joomla! identifies a User once they are connected to the web site using non-...
11
votes
2answers
2k views

Return JSON using the Joomla Framework

I have started building a web application using the Joomla Framework. It consists of a simple web page which will be displayed in an iFrame along with an API that will be used to update the content ...
11
votes
1answer
2k views

How do I incorporate multiple Google Fonts into my Joomla! 3 site and JCE?

How do I incorporate multiple Google Fonts into my Joomla! site? I'd like to maximize compatibility in all browsers. Can multiple Google Fonts be incorporated through the admin panel? What do I ...
11
votes
2answers
120 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
4answers
89 views

When to move to a new major release?

With the new development strategy there will be no version called LTS upfront. With the information currently published 3.4 will take the place of the announced 3.5. Assuming there are plans for 4.0,4....
11
votes
2answers
1k views

Proper way to add attributes to HTML tag of Joomla page?

I am using AngularJS to add some more advanced functionality to several of my Joomla article pages. On these pages I need to add the ng-app attribute to the <HTML> tag on my page. Currently ...
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
2answers
3k views

Module as menu item

I need to insert the search module as a menu item (default menu module). I need this output : <ul> <li>menu item</li> <li>menu item</li> <li>SEARCH ...
11
votes
3answers
1k views

Custom canonical urls using sh404SEF

Currently my site is using the sh404SEF plugin (Joomla 3.2) to add canonical urls to every page. This is working, however on the index page its outputting: www.example.com/?view=home instead of ...
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
5answers
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 ...
10
votes
9answers
5k views

How to create page only with modules and no component?

In joomla, I need to link every page to a component view. How can I create a page with no component output on it? Example : On my home page I only want a module output. For this, I can link the home ...
10
votes
5answers
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.
10
votes
4answers
40k views

What is the URL for user login (aka How to hide the login form?)

I do not wish to allow visitors to register on my website; however, I find a need to have a single registered user for testing purposes. For example, I will publish an article with restricted access ...
10
votes
2answers
2k 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 ...
10
votes
3answers
850 views

Where can I find Joomla usage statistics?

I'm interested in accessing accurate Joomla statistics such as the number of sites currently using Joomla cms and/or the Joomla framework. Does anyone know where I can find this type of information?
10
votes
3answers
681 views

Forbid direct access to INI and XML files

Some site owners don't want people, especially their competitors, know what features they have on their sites. Because some sensitive information in language or configuration files can be accessed ...
10
votes
2answers
9k views

Fix the “Invalid Address” error, after upgrading to Joomla 3.5.1

After upgrading to Joomla 3.5.1, I get an Invalid Address error in some of my extensions that use PHPMailer (the Joomla Mailing system). How can I fix this?
10
votes
5answers
6k views

How can I programatically determine the Joomla version of a website on which I have no administration privileges?

I am creating an audit tool using PHP where I can submit the url of a Joomla website and run a number of checks on the target website including determining the installed Joomla version number. I don't ...
10
votes
4answers
422 views

How to keep overrides updated?

As many know, it is possible to override templates, views, modules, components. The main problem is when Joomla! is updated, and the items overriden (in the template folder) get outdated. How do I ...
10
votes
2answers
3k 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?
10
votes
2answers
4k views

Adding joomla's default toolbar in a component view page

I am developing a mvc component for both joomla 2.5 and 3.In many components i saw they added joomla's default command buttons like new, edit, publish, trash, options at top of their settings page in ...
10
votes
6answers
9k views

Show/hide module title not working

I'm trying to hide the title of a module. I have changed the admin setting but the title is still displayed in the front end. In the database, the showtitle field is set to 0.
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
4k views

Joomla 3.4.1 how to delete JCaption, called with jQuery?

I want to delete JCaption from head, jquery and jcaption file i deactivated with following methods: unset($doc->_scripts[JURI::root(true) . '/media/jui/js/jquery.min.js']); unset($doc->_scripts[...
10
votes
1answer
6k views

What are possible filters in Joomla form fields?

I see intermittent use of filter="safehtml" and filter="string" throught Joomla forms. Is there a complete list, and can custom filters be created?
10
votes
5answers
6k views

Generate menu structure from categories

I have a Joomla site with a fairly complex system of categories and sub-categories. My main menu uses the same structure, in such a way that each menu item lists articles within the corresponding ...
10
votes
2answers
294 views

Can content items be automatically unlocked after a certain amount of time?

Most of our users don't understand that they should Save or Cancel when they edit their content, thus we constantly have scores of articles and categories that are locked. I realize that this can be ...
10
votes
3answers
1k views

Prevent error message from showing SQL

In my table I have created an index on 'col1' to prevent duplicate entries which works well but the resulting error message displayed to a user when they attempt to add a duplicate entry seems to to ...

15 30 50 per page