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
6
votes
1answer
2k views

JInput->get() , how does it work?

I'm a beginner in Joomla and a little confused with this method. for example consider this : $app->input->get('foo',0,'int'); where is the source of foo ? JInput->get() get's inputs from ...
6
votes
2answers
5k views

What's the purpose of $this->get('Item') in Joomla view.html.php example file?

I refer to the code below, presented in Developing a MVC Component - Front End Function Example: class HelloWorldViewUpdHelloWorld extends JView { // Overwriting JView display method function ...
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 ...
3
votes
1answer
263 views

Contus HD Video Share - User onCreate Hook?

I'm using the Contus HD Video Share component on my site. The component adds a table that tracks whether or not a user can upload videos. Unfortunately this table is not kept in sync with the users ...
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 ...
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 ...
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 ...
1
vote
2answers
81 views

Show products based on my custom attributes to second addon domain site

I'm using virtuemart 2.0 and joomla 2.5 with a commercial template mowebso_ecommerce - Default. I want to show some products on my first website eg. firstsite.com and some products on second site eg. ...
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 ...
9
votes
1answer
424 views

Trash Joomla Article in frontend

I'm developing a small plugin for Joomla 3.x that adds a "Trash article" button when you're in Joomlas Frontend. See screenshot below. http://imgur.com/NYLGRdY Now I have this AJAX call that ...
6
votes
5answers
1k views

Where to use JInput in MVC

I'm curious as to where to get data from JInput in the MVC design pattern. For example, in a situation where I need a JInput value to use in a query in a model class method, should I get the JInput ...
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 ...
7
votes
1answer
336 views

Understanding mvc way of component coding for both joomla 2.5 and 3 version

I made a component in joomla 2.5 in mvc way which was not working in joomla 3, later found out it's because in joomla 3 previous mvc classes not working so is controller, view, model classes must be ...
3
votes
1answer
128 views

Which class method should I use for deprecated JDocumentRenderer->render();

I need to display a module in administrator side by getting the module using it's module position (see the code below). I am having error & doubt is using the code: $renderer = $document->...
3
votes
1answer
576 views

Correct way to verify if the logged in user is super user

As my question implies what i want, i used google to search through the web to get correct answer though simple about how to verify if current logged in user is super user or not in both joomla 2.5 ...
9
votes
6answers
7k views

Adding javascript file in the footer & custom styles

For fast page load I need to insert JS at the end of the page from components and modules. The following way of declaring scripts does not work to insert it at the bottom because there is no ...
2
votes
3answers
278 views

Correct manner of using View- and Model-Abstracts in Joomla 3+

There are a lot of API changes in Joomla between 2.x and 3.x versions. In development of Joomla 3-components I still use the legacy class abstracts: jimport('joomla.application.component.view'); ...