Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
0
votes
2answers
543 views

How to update the latest row in MySQL table

The table #__virtuemart_order_histories stores the orders with their virtuemart_order_ids and every order has the records with their own virtuemart_order_history_ids. I need to update the latest ...
2
votes
2answers
130 views

How to disabe FullAjax plugin for all the pages except one

I've installed FullAjax plugin and I need to disable it for all the pages except the page with some parameter something like: if (strpos($_SERVER['REQUEST_URI'],'view=orders&layout=details') !== ...
2
votes
4answers
2k views

How to retrieve data from the Joomla DB via jQuery.ajax without controller

I need to retrieve some data from #__virtuemart_order_histories in templates/active_tmpl/html/com_virtuemart/orders/details_history.php via jQuery.ajax. I know that I can do it with a new &task= ...
2
votes
2answers
123 views

How to display names of parents instead of their ids

I'm creating my custom component. In backend I have the list of single records. They have parent records in the DB as parent_id and therefore are displayed in backend only as ids. How to display names ...
2
votes
3answers
3k views

How to pass variables via $.ajax to a controller

I found some portions of codes but I don't know how to complete it. I need to pass some variables via ajax to controller in order to store them in Joomla session. So I have the code: <input type="...
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); ...
5
votes
1answer
681 views

How to add a batch button in Joomla?

hello all actually I'm developing a component for school in which i want to add a batch button for asking about fail & leave fail & reappear pass & promote, pass & leave and for this i ...
1
vote
0answers
409 views

Create breadcrumbs when JPathway object is empty and knowing the parent JMenu

There may be a couple of ways to solve this, but it seems the JPathway/JMenu route is the most feasible. I have legacy php code that is pulling design information from a database. The custom code ...
7
votes
1answer
943 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 ...
4
votes
2answers
5k views

How to create a simple image uploader for custom component

I'm developing a custom component for creating, editing and saving data of single records including images. I know that in admin/models/forms/record.xml there must be field name="image" type="file" ...
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 ...
1
vote
1answer
120 views

How to get the names of parents in simple component

I'm developing my own component for Joomla but I'm beginner in PHP and don't know how to get the names of parents. I have the table #__records (for example): id name parent 1 ChildName ...
3
votes
1answer
2k views

Get/set userstate and session variables not working inside for loop

I have a long loading for loop inside a function in one of my model in my Joomla component. In order to gauge the progress, I wanted to make a progress bar using ajax and javascript as the request is ...
6
votes
1answer
1k views

How are the controllers for a specific view called?

I'm trying to understand how to component com_installer (the componenent for installing the extensions) in the administrator folder in joomla works under the hood. In particular, I'm trying to ...
6
votes
1answer
1k views

Disable front-end registrators from recving a confirmation email

I'm trying to disable users that register from the front-end from receiving confirmation / welcome emails. Please note: In com_users options you can only disable the password and username from ...
4
votes
1answer
1k views

Joomla 3.4 login api - how to “remember” session

This works great for 3.4 Joomla. How do I keep the user logged in? i.e. "remember"? JPluginHelper::importPlugin('user'); $options = array(); $options['action'] = 'core.login.site'; $response->...
2
votes
1answer
275 views

What if I override the bind function of Jtable.?

Actually I'm learning component development in which I'm creating a table class which extends JTable. I am also overriding the __construct which is fine up to, but when I override the bind function ...
2
votes
1answer
715 views

Get access level for a URL

How could I get access level for a given URL? I need to know if a URL is accessible for registered or only guests users.
3
votes
1answer
99 views

What is the meaning of the colors near methods in the API documentation?

when i look into api.joomla.org to view available functions i always see a Little GREEN Vertical Bar to all functions where they are explained, but some functions have orange bar what they mean by ...
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 = ...
0
votes
2answers
471 views

Interfacing Joomla to an external database to return search results [closed]

I would like to have a Joomla site send queries to an external database (via API) and then return the query results and display them in Joomla. I cannot find a book or tutorial that explains Joomla ...
3
votes
2answers
2k views

Does JUri::root() return https on sites that use ssl?

If my site was using ssl, would JUri::root() return a url containing https? If it didn't, what could I use to return the https equivalent of JUri::root() ?
3
votes
2answers
649 views

Is it possible to change the joomla user authentication algorithm

Hi I'm doing initial research on changing the way joomla authenticates a user. I want to do this only for the frontend user and not the admin user. WHY I want to do this? I'm importing a list of ...
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
1answer
2k views

How to load Joomla framework in external file including the template?

We can load Joomla framework in external file via http://docs.joomla.org/Framework_Compatibility // Define JRequest::clean to protect our variables! define('_JREQUEST_NO_CLEAN', 1); // basic to ...
1
vote
2answers
897 views

How positioning the calendar popup?

I am programming a component that contains a modal window. In the modal window, there is a calendar field. <?php echo JHTML::_('calendar', null, 'birthdate', 'birthdate'); ?> The position ...
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(...
4
votes
1answer
61 views

How joomla plugin registers itself to a subject

Its been about a year, that i started using joomla. i.e building some plugins, module and components. Now i want to extend my level of knowledge in inside working mechanism of joomla system. I know ...
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 ...
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?
6
votes
4answers
2k views

Check if module is enabled

I'm currently trying to check if a specific module is enabled by using Joomla's JModuleHelper::isEnabled(), however the problem being is that it is always returning false, despite whether it is ...
2
votes
1answer
2k views

JLayout: Overriding joomla.edit.params layout only for com_content

I am looking for a way to override the joomla.edit.params layout only for the com_content, which is rendered with the: JLayoutHelper::render('joomla.edit.params', $this) on the: administrator/...
1
vote
1answer
119 views

Help me understand Banners Component Toolbar Action (Joomla 3.3)

I'm learning Joomla development and I have so far been able to understand how to create subcontrollers, models, views, and layouts. Now I'm trying to understand how I can pass control from the ...
3
votes
2answers
2k views

Updating user profile

What is the code to update a user profile? This gets the user profile: $user = JFactory::getUser(); $userid = $user->id; $profile = JUserHelper::getProfile($user->id); echo print_r(...
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 ...
3
votes
3answers
4k views

Controlling Component Redirect (Using JControllerForm)

I'm creating a simple contact component in Joomla 3.3 (which is called Contact Pay). I created a 'message' and a 'messages' view in the back-end, with associated models and controllers. 'message' is ...
-2
votes
1answer
254 views

Good Information about JEventDispatcher Class

Can anybody help me suggesting good sites/information describing about JEventDispatcher class in joomla. Register and Trigger of an Event??
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 ...
7
votes
1answer
1k views

JUri::base() issue, losing subdomain

There is a chance this is a bug, but I am pretty sure I must be overlooking something. Basically JUri::base() is removing the subdomain path, this is in siteground with its Joomla staging enviroments,...
2
votes
2answers
97 views

Any Chance of JApplicationWebClient constants changing in the future?

I'm building a component that store info about the client and it stores only the numbers of the JApplicationWebClient constants instead the browser name, system name, etc, . But if the constants ...
6
votes
3answers
11k views

How to get the intro image of a joomla article

I am trying to customize the the category list of my website. So I have a menu option that shows the list of all article is a certain category. In this list I would like to show the into image of the ...
6
votes
1answer
994 views

Using checkToken() to secure form posts

I am building a web app using the Jooma Framework and the Framework App as a template. I have getFormToken() working as described in this post and am now submitting the token with my form but I cannot ...
1
vote
1answer
2k views

Joomla Invalid token / Session timeout issue

I have a site that is implemented in Joomla 3.1.5 on which the following are installed http://www.joomlart.com/joomla/templates/ja-muzic --> This is the theme http://www.jomsocial.com/ --> Used ...
2
votes
1answer
2k views

joomla error arising when transfer site to the other hosting

I am trying to transfer Joomla site from one hosting to the other. The error is: Fatal error: Call to a member function get() on a non-object in /home/.../templates/beez_20/error.php on line 10 ...
6
votes
1answer
388 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 ...
1
vote
1answer
455 views

Initializing JHttpTransportCurl class

i am trying to call & get another url data.So is trying to create new instance of http class as follows - jimport('joomla.http.http'); jimport('joomla.http.transport.curl'); $options = array(); $...
2
votes
1answer
2k views

Does anyone know where JFactory::getApplication()->getParams() is declared?

I'm working on my MVSC implementation. I'm planning on adding a function called getParams() to my base view, so that I don't have to keep merging item, menu, and component params before rendering the ...
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 ...
0
votes
2answers
4k views

How to override/customize pagination links?

In my component, I am using Joomla default pagination calling $this->pagination->getPagesLinks() in the view template file. Say, my component url is like this at a certain point: http://...
2
votes
2answers
161 views

API for UnionAll in JDatabaseQuery

Can anyone point me to the documentation on how to use UnionAll in JDatabaseQuery? Thanks, Mike