Questions tagged [joomla-api]

This tag is for questions related to the Joomla-API, both Joomla CMS and Joomla Framework.

Filter by
Sorted by
Tagged with
12
votes
4answers
21k 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 ...
8
votes
2answers
1k 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 ...
6
votes
1answer
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 ...
13
votes
3answers
9k 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?
4
votes
2answers
1k views

RESTful API to manage article

We have an application which collaboratively collects data from authors. We want to upload curated content to different joomla powered sites. The current application is built on Ruby on Rails. Does ...
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 ...
6
votes
1answer
13k 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 ...
3
votes
2answers
788 views

How to Use IN Clause in Joomla Query

I am trying to select records where a column is in a suggested list if values using the IN clause. I have tried the query below but the system is not working. $db = JFactory::getDbo(); $...
6
votes
3answers
663 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.
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
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 ...
7
votes
1answer
940 views

How to create a folder during installation custom component

I know how to create a subfolder inside the media folder by using <media folder="media" destination="com_mycom"> in the manifest file. But how to create subfolder inside of the images folder ...
5
votes
2answers
4k views

How to do SQL exception / error handling compatible with 2.5 and 3.x?

I was trying to develop Joomla 2.5 and 3 component. As many things deprecated between these two versions and the way to throw and catch database and other errors, I could not find ways yet to make ...
6
votes
1answer
386 views

Implement CSRF anti-spoofing using the Joomla Framework

I have used the methods described on this page in Joomla many times before: http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms Now I want to implement the same mechanism using the Joomla ...
4
votes
2answers
2k views

Jform POST issues

I have a form that needs to post to another form (which is an outside form). I have the 1st form set up with the action to the url and method post. However, it is using JForm. It is working fine on ...
9
votes
2answers
3k views

Joomla/PHP how to add <meta property> instead of a <meta name> tags to the the header?

Dear Joomla community, I'm working on a little system plugin to inject Facebook Open Graph properties into an article. Therefore I've been using $document->setMetaData(). But now I discovered that ...
6
votes
2answers
2k views

Joomla! JFactory::getDate wrong

According to the documentation JFactory/getDate $tzOffset default value is 0. However, the following example: $date_default_offset = JFactory::getDate('now'); echo $date_default_offset->toRFC822(...
5
votes
2answers
2k views

Two left join in one query to Joomla database

I have two tables: #__records and #__parents. In the first table some records may have parent records that are stored in the same table but relations between childs and parents are stored in the ...
4
votes
2answers
85 views

How is the Joomla Issue Tracker documentation generated?

Can anyone here share some light on how these Joomla docs were made http://issues.joomla.org/documentation/ I know that the docs are pulled from github MD files but if someone could explain the ...
2
votes
2answers
896 views

Get current language in external script (Joomla 3.3)

In Joomla 2.5 it is possible to get the current language of a visitor in an external script like this: $mainframe = JFactory::getApplication('site'); $mainframe->initialise(); $jdocument = ...
2
votes
2answers
363 views

How about storing single records and their categories in one table

I'm developing my own component for Joomla. I know that in many components single records and their categories are stored in different tables of the database. But how about storing them in ONE table ...
2
votes
2answers
469 views

How to retrieve an array from Joomla session table

I added the data to Joomla session as: $cart['items'][] = array('id' => 1, 'name' => 'Laptop'); $cart['items'][] = array('id' => 2, 'name' => 'Tablet'); $session->set('cart', $cart); ...