8 votes
Accepted

Control order of loaded scripts

The JDocument's addScript method has no options for ordering (eg by priority or something like WP). There are numerous ways to solve your problem. First, to understand why what you're doing is ...
  • 3,134
3 votes
Accepted

Execute PHP code on every call

You can create a plugin. See https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla Joomla automatically calls enabled Plugins on each trigger event. Depending on the state the application has to ...
  • 246
3 votes

Hiding created date not working

It can be tricky to find the correct place to set these options. For regular articles, there are three places to set if the date is shown: Global settings Article settings Menu item settings If you'...
  • 13.3k
3 votes
Accepted

Joomla removes img tags from HTML of modules loaded in article content

It seems that Bootstap Tabs was stripping images. In the Item Settings tab of this module there is Show Content Images setting and it was set to No while it should be set to Yes.
3 votes
Accepted

How can I programmatically install a plugin?

Use Install model. if (!defined('_JEXEC')) { define('_JEXEC', 1); define('JPATH_BASE', realpath(__DIR__)); require_once JPATH_BASE . '/includes/defines.php'; require_once JPATH_BASE . ...
  • 8,706
3 votes
Accepted

Load view in views folder. $this->loadTemplate from new folder

There's view's addTemplatePath() to add additional lookup paths: $this->addTemplatePath(JPATH_BASE . '/components/com_example/templates/example_view'); With this, the custom path is prioritized, ...
  • 8,706
2 votes

Two menu items set as default; how to revert to just one?

Try going into your database, and going to the table _menu. Make sure that only one menu item has the home value set to "1", and the others set to "0". Pretty sure you shouldn't be able to have more ...
  • 3,072
2 votes
Accepted

K2 Item view —Call to undefined method K2HelperHTML::loadjQuery()

"items.php" no longer exists in K2 (as of 2.8.0). I think you have a problem in your libraries folder because of the Joomla update. It might be that you have some reminiscent files from a previous ...
  • 3,186
2 votes

How to use relative domain name for each jooma 3.8 websites running on the same server

It depends on your hosting environment but I am usually able to fix this type of issue on Apache hosting using Rewritebase in the .htaccess file. For example, if a website is in a subfolder like this:...
2 votes

Has there been a better solution for showing modules only on article list page(but not article page)?

You can do this using Regular Lab's Advanced Module Manager. Install it and activate it, and select the following for the the module settings: For Assigments use Joomla! Content, include ...
2 votes
Accepted

Additional "Images And Links" fields - corect way

I would suggest using Joomla custom fields instead. The media field should work: https://docs.joomla.org/J3.x:Adding_custom_fields/Media_Field
2 votes
Accepted

How to add a payment reference to RSForms!Pro?

Solved this, so posting this answer for anyone who comes across the same problem in the future. So, what happens is: After posting the form, a script is supposedly kicked off, similar to what ...
  • 173
2 votes
Accepted

JFactory::getApplication()->input->post->get() prunes empty sub arrays/objects

If you dumped the $_POST in your helper's ajax method you would see that those empty arrays don't hit the server. Joomla's input object is entirely dependent on retrieving the values from $_POST. ...
  • 3,134
2 votes

Home page access level preventing access to 'public' pages

[Prompted by @mickmackusa, I'll add an answer here although it's a while back and I haven't needed to look at this recently. Edit if you can improve!] I was constructing the URL using the site/...
  • 183
1 vote

Joomla Migrating Live Site To Localhost -Navigation Not Working

It's usually best to leave the $live_site parameter empty. In addition to removing/renaming your .htaccess file (which you already did), make sure your configuration.php file has the following ...
  • 13.3k
1 vote

Why is the head.php file suddenly not found?

The two errors have completely different (albeit related) causes. The fatal error is caused by the fact you had an old Gantry template with a call to a file that got moved in the great src directory ...
  • 3,134
1 vote
Accepted

issue with adding alias menu pointing to an external link

I would suggest doing it as a redirect in the htaccess: Redirect 301 /alias https://forms.office.com/Pages/ResponsePage.aspx?id=xxxxxxxxxxxxxxxxxxxxx You could also find the broken url (https://www....
1 vote
Accepted

Footer columns render different in each page

This is because your homepage uses mod_vikcontentslider, which loads an older version of Bootstrap (3.3.7) to what your template is using (4.0.0-beta). There may be an option to turn disable the ...
  • 26.5k
1 vote

Shortcut to insert non breaking space in TinyMCE?

You have to write a TinyMCE Plugin: https://www.tinymce.com/docs/advanced/creating-a-plugin/ And use the TinyMCE-Api to inject your shortcut: https://www.tinymce.com/docs/api/tinymce/tinymce....
1 vote

Virtuemart payment plugin override

When the Virtuemart plugin has a second folder with the same name in it, then it is using the overridable pattern. Copy this second folder to: /templates/[yourtemplate]/html/[plugin-group]/[plugin-...
  • 31
1 vote

Make an ajax request on submit on register page with custom fields

Yes it is possible to check a value with ajax. You could disable the default functionality of the form submit, for example (using jQuery): $('FORM_ELEMENT').submit(function(e){ //dont submit the ...
1 vote

Make an ajax request on submit on register page with custom fields

It is possible by developing a custom field. https://docs.joomla.org/J3.x:Adding_custom_fields In your custom field output, render JavaScript that reads and send Ajax request to check values. If ...
  • 2,971
1 vote

Form with nested set dropdown

At the bottom of this page it shows you how to do something similar. https://docs.joomla.org/Creating_a_custom_form_field_type It sounds like you may wish to do an override of the already existing ...
  • 1,839
1 vote

Form with nested set dropdown

If you implement your own categories functionality you can use anything that suits you. However you can take advantage of Joomla's built-in categories system for your component. Have a read here: ...
  • 19.5k
1 vote
Accepted

How to get article id on BT CONTENT SLIDER?

From the last try, I got the way to get all three articles on BT CONTENT SLIDER: $list = modBtContentSliderHelper::getList( $params, $module ); foreach($list as $article){ echo $article->id; } ...
  • 153
1 vote

Undefined index in legacyrouter 3.8.2

I have the same problem (I use Joomla 3.8.3) and I just found a solution. The problem is in the exact code that you wrote. You have to change it to: if ($menuItem !== null && ...
1 vote

Has there been a better solution for showing modules only on article list page(but not article page)?

This can be resolved at the template level (which is the cleanest way of doing this) as described here. Essentially, you will need to modify your template's index.php file to include a condition to ...
  • 3,186
1 vote

Has there been a better solution for showing modules only on article list page(but not article page)?

Joomla 3.8.2 does not add any solution to your issue. One solution you didn't mention would be to use CSS to hide the unwanted modules on article layout pages. Pros: It's easy to implement and, ...
  • 890
1 vote

K2 Item view —Call to undefined method K2HelperHTML::loadjQuery()

Based on the question mentions not found helper function in the admin and Joomla update to 3.8.1: Is site update from versions prior to 3.7.x? That introduced Custom Fields plugin that has been a ...
  • 1,120

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