6

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 causing the problem you need to know the Joomla lifecycle. Bootstrap Framework & Application Route Component Modules Template Render and Respond So when you ...


3

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 be in for your code to be executed, you can choose the appropriate trigger event. See https://docs.joomla.org/Plugin/Events There are also existing plugins ...


3

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

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 . '/includes/framework.php'; } JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_installer/models', 'InstallerModel'); $input = JFactory::...


2

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 than one default page, which suggests a database hiccup. (Always make a backup before tweaking the database manually)


2

"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 Joomla version. Please check this post - in short rename your old libraries folder and copy a fresh one from a Joomla zip file. If that doesn't work, then try ...


2

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: /public_html/subfolder, then include the following lines in the /public_html/subfolder/.htaccess file: RewriteEngine on Rewritebase /public_html/subfolder


2

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 pagetype, selection category Blog. This will give you the module only on the category blog page, but not on the seperate article-view pages. Success!


2

The answer was given on the forum: https://forum.joomla.org/ by user effrit. You need to create a layout override for the field. Go to Extensions => Templates => Templates. Select [YOUR-TEMPLATE] - Details and Files. Click on Create override and select Layouts => com_fields => fields. That will copy the com_field render.php into override directory of a ...


2

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

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 happens with this plugin: https://www.rsjoomla.com/blog/view/415-rsformpro-ideal-plugin-launched.html This is a script that is nowhere to be found in site ...


2

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're using a menu item to show a single article, #3 is the safest way to control how the article is displayed. Go to your menu item, click the "Options" tab and ...


2

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. JQuery ajax doesn't pass empty arrays, see this for example further reading: https://stackoverflow.com/questions/9397669/jquery-ajax-jsonp-how-to-actually-send-an-...


2

[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/category/article pattern. This works when logged in but when accessing anonymously it produced the behaviour described in the question. However, if you create a ...


2

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, meaning it would override template overrides in standard folders. To reverse that, reverse the array order of $_path['template']: $this->_path['template'] = ...


1

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 migration of 3.7(? I think.) So that fatal error in the error.php has been sitting there ready to happen since you upgraded you Joomla to 3.7+. The 404 error ...


1

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.mywebsite.com/alias) in the Redirect Manager and set it there instead.


1

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 loading of Bootstrap in the module settings, so firstly look for that. Either way, the markup for you footer isn't correct. You currently have the following: &...


1

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 settings: public $live_site = ''; public $sef_rewrite = '0'; The second line will disable URL rewriting. You can also change this setting under "Configuration" from ...


1

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.shortcuts/ How to add your plugin to TinyMCE: Creating custom plugin for tinymce


1

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-name] So the right path would be: /templates/[yourtemplate]/html/vmpayment/standard/post_payment.php Official Documentation: How to overwrite plugins


1

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; } To get the id only from current article, it is so easy: echo $row->id;


1

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 && isset($menuItem->query['view']) && $menuItem->query['view'] == $query['view'] && isset($menuItem->query['id'], $...


1

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 form e.preventDefault(); //if valid url_to_ajax_function should return true or false for example {"found": true} $.get("url_to_ajax_function?variable=...


1

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 you want to add a custom field to a core component, such as Joomla! Articles, you need to create a plugin and add template override to your core component view. ...


1

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 categories form field. https://docs.joomla.org/Category_form_field_type Here's a full list https://docs.joomla.org/Standard_form_field_types


1

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: Developing an MVC Component/Adding categories


1

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 check if the current view is not an article view, and then add the module tag if that's the case. Here's an example condition (note: the condition in the blog ...


1

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, depending on how your template sets its class variables, highly configurable. Cons: The hidden modules are still having to be build/rendered by joomla and added to ...


1

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 real pain in the site since it loads FE helpers without your intention to. So my first and only guess (or solve trace) would be: looking for the existence of ...


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