Questions tagged [joomla]

Joomla! is a free and open source Content Management System (CMS) for publishing content on the World Wide Web and intranets and a model–view–controller (MVC) Web application framework that can also be used independently. Joomla questions can also be asked on https://joomla.stackexchange.com/

Joomla specific questions can be asked at Joomla Stack Exchange

Joomla! is a free and open source Content Management System () for publishing content on the World Wide Web and intranets and a model-view-controller () CLI and Web application framework that can also be used independently.

External Links

Joomla Tutorials

15106 questions
9
votes
7 answers

Joomla - Controller task that returns JSON data

I have the task run in my controller. I want it to return JSON data. As it stands, I am getting my JSON data wrapped inside the template HTML. How do I tell Joomla to just return JSON data from the controller? This is the function I have: public…
Jeffrey Ray
  • 1,244
  • 2
  • 9
  • 20
9
votes
3 answers

Joomla! JDatabase::getErrorNum() is deprecated, use exception handling instead

I have the following code: $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('*'); $query->from('#__users'); $db->setQuery($query); // Check for a database error. if ($db->getErrorNum()) { …
Valentin Despa
  • 40,712
  • 18
  • 80
  • 106
9
votes
2 answers

How to make an Ajax request in Joomla Component

This a screen shot of what I get when I call my ajax request: How do I run only the task, without printing the whole page? This is my ajax call: $.ajax ({ type: "POST", url: "index.php?option=com_similar&task=abc", data: { id: id, …
Jonuux
  • 533
  • 1
  • 7
  • 20
9
votes
7 answers

JavaScript location.reload() is losing post data

I am trying to reload the page using java script the page reloads but the post data in the page is not loading the post data are deleted while the page reloads can any one help me with it function currencychange(xxx) { setTimeout('delay()',…
deepak
  • 329
  • 1
  • 6
  • 15
9
votes
1 answer

When should I use setUserState in Joomla?

DETAILS I can use user state variables to store and retrieve data in Joomla sessions. EXAMPLE set variable $app =& JFactory::getApplication(); $app->setUserState( 'myvar', $myvarvalue ); but I can also store and retrieve variables in session using…
TryHarder
  • 2,704
  • 8
  • 47
  • 65
9
votes
2 answers

How to detect unpublished content in Joomla db?

I'll probably must create import script from Joomla. How I can detect that selected content is not published? I see three columns in jos_content table: publish_up publish_down published I need to be sure what these columns means, to know which…
keram
  • 2,321
  • 4
  • 24
  • 29
9
votes
1 answer

Joomla 2.5, Accessing template parameters in component's template

What is the correct way to access template parameters in components template in Joomla 2.5? There are something implementations for earlier versions of Joomla but not for 2.5. http://forum.joomla.org/viewtopic.php?p=2166990#p2166903
Roger Wayne
  • 419
  • 3
  • 20
9
votes
4 answers

How to Get User Group Names in Joomla 2.5

I'm writing a Joomla 2.5 component that I had been developing in Joomla 1.7. I have been using code like this: $user = JFactory::getUser(); $groups = $user->get('groups'); The $groups array would contain a list of ids with the group name as the…
nsimon
  • 91
  • 1
  • 1
  • 5
8
votes
5 answers

Cant understand why table is with double border.

I have a page: http://f1u.org/competitions There are 3 tables. I can't understand why they all are with double border. Please help me to understand.
Ok-Alex
  • 558
  • 2
  • 13
  • 29
8
votes
6 answers

logout programmatically with joomla

I need to customize a method in a component. I need to make different action (deleting a user and other info) and then logout the user programmatically (not with a button link), how can I achieve this? I've tried to do this at the end of the…
user1075778
  • 81
  • 1
  • 2
8
votes
1 answer

Blank index.html in CMS softwares instead of .htaccess

I noticed Joomla, Wordpress and other CMSs have blank index.html files in ALL their sub folders to prevent people from peeking into the folder structure. My question is why can't they forbid folder viewing using the .htaccess file instead of putting…
user1074803
  • 267
  • 1
  • 4
  • 14
8
votes
8 answers

Difference between Joomla 1.5 Joomla 1.6 and joomla 1.7?

What is the difference in versions of Joomla CMS i.e. Joomla 1.5, Joomla 1.6 and joomla 1.7 ?
Rohan Patil
  • 2,328
  • 1
  • 16
  • 23
8
votes
4 answers

Error while install Joomla

Have install and Configure Joomla 1.5 CMS in my local xampp. After I have installing, When i am visiting to Joomla Site. it displaying the some error messages. Strict Standards: Non-static method JLoader::import() should not be called statically in…
Manikandan Thangaraj
  • 1,594
  • 8
  • 24
  • 44
8
votes
4 answers

How to get article text by article ID in Joomla?

I want to get article text by passing article ID from the joomla template.
Aryan G
  • 1,281
  • 10
  • 30
  • 51
8
votes
3 answers

Joomla - Insert .js and .css files into a single Joomla article?

Is it possible for a single page on a Joomla website to include it's own custom .js and .css files? I basically would like to add two custom javascript and css files for a particular page. I don't want these files included into any other Joomla…
Shakeeb Ahmed
  • 1,778
  • 1
  • 21
  • 37