6 votes

How to use com_api plugin for REST?

In the context of a REST Api, each call is stateless. So, there is no "user login". In a Joomla site, when a user is authenticated, the browser receives a cookie to authorize the navigation and ...
Anibal's user avatar
  • 7,435
5 votes
Accepted

How to call a model method from a system plugin?

This will work with ease in Joomla 3.x //load model JModelLegacy::addIncludePath(JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_foo' . DIRECTORY_SEPARATOR . 'models'); /...
Piero Marsilio's user avatar
5 votes

Component Development PHP Version Check

Lots of components have a check like that. Here's the top of admin tools core install script eg. protected $minimumPHPVersion = '5.3.3'; public function preflight($type, $parent) { // ...
jamesgarrett's user avatar
  • 3,299
5 votes
Accepted

How to execute an ajax script to update form fields in an .xml file rendered by Akeeba FOF?

You can use JSON format in the controller directly by adding .json suffix and changing format in your URL to json. In this case the controller would be placed in /administrator/components/com_example/...
Sharky's user avatar
  • 11.2k
4 votes

Available fields in Joomla XML manifest

There is also one other neat trick - when using Radio buttons, you can add Bootstrap class and they will look nicer. Look for class attribute in this code: <field name="some-choices" type="radio" ...
Vladimir Jovanović's user avatar
4 votes
Accepted

How to change styling of Joomla Collapsible Sidebar in Backend?

Well, as per my answer from the link you provided, you'll need to add the following to your default.php: <div id="j-sidebar-container" class="span2"> <?php echo $this->sidebar; ?> &...
Lodder's user avatar
  • 26.9k
4 votes

How to call a model method from a system plugin?

To call a model from anywhere inside Joomla you can use this method //Load the Joomla Model framework jimport('joomla.application.component.model'); //Load com_foo's foobar model. Remember the file ...
Amit Ray's user avatar
  • 237
4 votes

How to use a custom layout with JForm subform fields?

Edited to add subform field type-specific answer: Having looked at it properly, attaching your own layout to the subform field type is super-easy. Create a layouts folder in the same parent ...
Bathmat's user avatar
  • 492
4 votes

How to find the joomla page from url

You can find any url/Alias by searching it in the search box. First go to the Menu manager and enter resource-downloads in the search box. And if you didnt find it then you can go to the article ...
Joomler's user avatar
  • 1,811
4 votes
Accepted

SQL syntax error when attempting to filter list view - how to build WHERE clause?

Try changing your query to the following: $query->select('#__users_2679886', 'name') ->from($db->qN('#__users', '#__users_2679886')) ->where($db->qN('id') . ' = ' . $db->...
Lodder's user avatar
  • 26.9k
4 votes
Accepted

Updating component language file without reinstalling it

The language files are loaded again (from their source) on each page load. You don't need to reinstall the component each time. Are you writing to the right file?
Hackwar's user avatar
  • 156
4 votes

Calling Joomla!'s Default 404 Page

In your Joomla installation directory reach templates/themeXXX/error.php file. Edit the error.php file as shown below, locate this line of code: If you don't want to change address bar url then you ...
Sudhir Sapkal's user avatar
4 votes
Accepted

Errors de-crypting libsodium encrypted values from database

This works fine with a simple encrypt then decrypt, like... ...but when I write to a database and read back, I get the errors mentioned above. This is actually expected behavior, because the ...
Scott Arciszewski's user avatar
4 votes
Accepted

Select articles to display in custom component

JControllerLegacy::getInstance() caches the first controller instance so you're actually getting an instance of your component's controller rather than Content controller. You can skip the controller ...
Sharky's user avatar
  • 11.2k
4 votes

Coding Standard Question - defined( or \defined(

I asked this on the Joomla! internal development chat and was told the second one is the optimised version currently in namespaced files. Richard, a lead Joomla! developer wrote "Backslash makes ...
mfleeson's user avatar
  • 128
3 votes
Accepted

How to uninstall akeeba backup components from joomla 3.5?

Nicholas (Akeeba developer) already told us what to do in such a case: I get a blank page or Internal 500 error accessing Akeeba Backup or trying to backup "If you are receiving a blank page or a ...
Mikan's user avatar
  • 3,007
3 votes

com_users login redirect issue

You can set a Menu-Item to be hidden, using Tab "Link Type" > "Display in Menu" set to "No" (3.7). So no need for an hidden Menu anymore.
franz.wohlkoenig's user avatar
3 votes

What is the proper way to make an AJAX call in component?

You can access a controller directly by using the controller name in the task: index.php?option=com_similar&task=controller.abc&format=raw will call: controller.raw.php (return is raw) ...
Dennis Heiden's user avatar
3 votes
Accepted

Where can I find a good tutorial and/or example for creating front-end forms in custom components?

Everything you need to get started with JForm for views https://www.ostraining.com/blog/how-tos/development/getting-started-with-jform/
Walt Sorensen's user avatar
3 votes
Accepted

How to develop only a back-end Joomla! component?

Unfortunately the directory is always gets created. File: libraries/cms/installer/adapter.php line 679 $this->createExtensionRoot(); The above line will create the extension root directory ...
Nagarjun's user avatar
  • 2,991
3 votes
Accepted

Purpose of metadata.xml

So the purpose of metadata.xml is storing the data that need to be shared across layouts: each layout.xml inside of your view tmpl directory extends metadata.xml. So if you need to put some request ...
Alexandr's user avatar
  • 1,130
3 votes
Accepted

Module coming on all pages

I recommend you to do this: Create a menu called: Hidden Menu Do not assign this menu to any menu module Create a menu element for each of the links you want to display in home page That way, they ...
Piero Marsilio's user avatar
3 votes
Accepted

Install Joomla component without manifest file

On my opinion you should create the package to install that component, it's quite easy to do. Create a folder named as your component (com_name) with 2 folders and the manifest inside: admin : all ...
Kitase88's user avatar
  • 977
3 votes

joomla loadFormData

I ran into this as well and have learned the following: the loadFormData can indeed used to load previously saved data back into the form and Joomla does not seem to set the form data to the user ...
Isolde's user avatar
  • 131
3 votes
Accepted

Update extension using zip file

I am not sure what you mean when you say: "it seems like there's no way to update a component using a ZIP-file". Usually you create your extension's package. In your myextension.xml file you have: ...
FFrewin's user avatar
  • 19.7k
3 votes

Loading custom classes in a component automatically

If the utility classes are only used in your component then include them in a folder within your administrator component. Whether you register the classes with JLoader or just require_once them just ...
jamesgarrett's user avatar
  • 3,299
3 votes
Accepted

Redirect after login by component

You can create a plugin that triggers on onUserAfterLogin and redirects the user to where you want. or you can add a &return= query variable to your links to the login page as described here
Drew G's user avatar
  • 890
3 votes

Why does var_dump not output anything?

Sometimes there are subsequent actions that take away the focus without displaying the var_dump statement. There are two ways I use to view debug information in these conditions. First you can follow ...
Rob's user avatar
  • 173
3 votes
Accepted

Documentation tutorial: Why is my JFormFieldList showing a textbox?

The problem is that it is not able to get the field. I see filename you have defined as ulwiz_wmode.php and in class name you are using this JFormFieldUlWiz_WMode. Make sure the naming convention is ...
Liz.'s user avatar
  • 1,385
3 votes
Accepted

Component view problem. Model method not called

It sounds like you only have one model, rather than the expected one-model-per-view. As such, it is looking for the function in a model related to your singles view, which does not exist. Try ...
RichardB's user avatar
  • 3,082

Only top scored, non community-wiki answers of a minimum length are eligible