6
votes
Accepted
Create a table observer
This was working ok on my instance Joomla 3.9.22 with PHP 7.3.5 (and mysql). Then to test this I selected PHP 7.0.33 instead and it gave me an error:
Fatal error: Declaration of MyObserver::...
- 1,656
4
votes
Accepted
Joomla 3.9.1 publish/unpublish no longer working (custom components)
Inside your table's constructor use setColumnAlias() to define the actual column name:
public function __construct($db)
{
parent::__construct('#__example', 'id', $db);
$this->...
- 9,466
4
votes
Accepted
loadAssocList() is not working properly when assigning a column name as the key parameter
Most critical to fixing your issue is to include the p.ComponentId column in your select() call so that it is available at the time the result set is being constructed.
If you have your error ...
- 4,543
3
votes
Accepted
My site's form or captcha stopped working after upgrading to Joomla 3.9.15
Answer for Joomla Users
An update of the Captcha - ReCaptcha plugin changed the existing functionality and many of the extension developers need to update the way their extensions handled Captcha ...
3
votes
Accepted
Advanced Module Manager Assignments
In URL assignments section:
Set the option to Include
In URL matches enter /news/?$
Enable Use Regular Expressions
*The /? part is used for the case your /news page is also loading via /news/ and ...
- 19.6k
3
votes
Accepted
Modification of the generated Joomla head (<jdoc:include type="head" />)
You get the `HtmlDocument' object:
$doc = JFactory::getDocument();
// echo "<br><pre>"; print_r($doc); echo "</pre>"; // to check what you have here
You can get only the head Data:
...
- 2,456
3
votes
Accepted
What are the code changes for the Security patch vulnerability in 3.9.9
Changes for security patches are normally hidden further down in the commit history or sometimes in the actual release commit to throw people off.
In this case, the security patch is in the release ...
- 26.7k
3
votes
Accepted
How to automatically update CDN after saving an article?
Here is my first plugin:
<?php
/**
* Plugin class for update the Cloudflare Cache after save a article
*/
class plgContentBk_onsave extends JPlugin
{
public function onContentAfterSave ($...
- 344
3
votes
How to automatically update CDN after saving an article?
As far as I can remember since I haven't tested this recently, you don't need to clear CloudFlare's cache in order to display update's of article's with CloudFlare. CloudFlare will only cache static ...
- 19.6k
3
votes
Accepted
How to make my Editor plugin (type: editors-xtd) survive after updates?
Normally, the plugin would open a list of items. In this case, the component doesn't have the model/view for the items. So you have to create them.
As a bare minimum, the model must contain ...
- 9,466
3
votes
Akeeba backup update broke the site
It's a good practice to always have up-to-date backups of your projects/sites. This way, you can always revert back to a previous working state.
If an extension has broken your site, then remove that ...
- 19.6k
3
votes
Accepted
Method to remove all accented characters from a string
use Joomla\CMS\Factory;
....
$lang = Factory::getLanguage();
$lang->transliterate($value);
* This method processes a string and replaces all accented UTF-8 characters by ...
- 379
2
votes
Accepted
Problem changing tooltip css in Joomla 3
The problem was: The Tooltip didn't have the styling I wanted.
The quest was: To know the tooltip css class to be able to alter it.
The solution: I googled the internet for the tooltip css class (the ...
2
votes
Accepted
Remove textfilter partially for <link> and <meta> not working
Here is my solution:
At first: remove meta and link from the source code is not part of the joomla filter. it is part of the core. So modify the core is not a solution about problem with later updates....
- 344
2
votes
Accepted
onAfterRender plugin only triggers on backend
The code you currently have works. You just need to clear page cache and view the page again. You'll see fonts.googleapis.com links are removed. This may or may not be fine depending on the rest of ...
- 9,466
2
votes
Accepted
Custom field in menu item
Rename actiecode.php to actiecodes.php.
Class name, filename and field type in XML form must all match.
- 9,466
2
votes
Joomla Discover is asking for FTP Login Details
Oops, I'd forgotten to disable FTP in Global Configuration. All sorted now.
- 161
2
votes
Accepted
Moving a Joomla site to a new hosting and now getting missing dependency errors
In the end I managed to solve the issue by simply re-creating the page locally (using MAMP), generating an Akeeba backup, and restoring the backup via Kickstart. I really have no idea why this ...
- 21
2
votes
Accepted
Joomla 3.9.19 get the constants from global configuration in component display function
So to get it from global configuration set in configuration.php from anywhere within Joomla component, plugins, modules and templates you would use:
$config = JFactory::getConfig();
$siteName = $...
- 440
2
votes
Joomla 3.9 replace zero dates with null on save/checkin (mysql zero date deprecated)
With thanks to @glenn-arkell who pointed me in the right direction, for j3.9 this works to stop Joomla writing '0000-00-00 00:00:00' into the checked_out_time field. For other fields (eg modified and ...
- 51
1
vote
New Joomla install but can't install extensions. Get 500 Internal Server error
Well, i recommend you that you change your server from Microsoft Web Server to a more approriate server for php, such as WampServer.
WampServer has some configurations you must pay attention to. If ...
- 369
1
vote
New Joomla install but can't install extensions. Get 500 Internal Server error
Verify your xml file
Try unnistalling and installing your extension
Drop the table manually
Also verify your PhpMyAdmin make sure it's Mysql and the engine is InnoDB.
- 369
1
vote
Accepted
Menu item "tagged list": How to disable link on image and title?
You can do this by creating an override for the com_tags layout file which outputs your list, as described in https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager.
When logged on as a Super ...
- 1,656
1
vote
Accepted
Why general match and exact match not functioning properly in smart search?
Did a little more looking when I had time and discovered a bug in com_finder that complicates this issue, but here's how it's (IMO) supposed to work as well as a workaround for the bug.
The word "not"...
- 802
1
vote
Issues with cookie bot on Joomla 3x and jQuery
I'm still a little bit blind regarding your issue but I try to give you some direction and maybe we could solve this. There are many ways to add cookiebot to the site, I have never used Google Tag ...
- 2,456
1
vote
Joomla 3.9 + Gantry 5.4.31 mismatch layout issue on localhost
In G5 template screen remove Joomla Articles Particle.
The main content area is named 'Page Content' and it displays the current menu item dynamic content, so 'article' or 'list of articles' (so ...
- 91
1
vote
Accepted
How to add a field to com_content in the backend?
The problem was that I put the edit.xml inside the override folder instead I needed to put it inside the plugin folder.
- 103
1
vote
1
vote
Accepted
What kind of extension should I use in order to build a back-end GUI to edit parts of the theme?
Depending on how elaborate you want your offering to be then you could start with just adding your customisable attributes as template options via the templates .xml file so that you don't have to ...
- 2,660
1
vote
How can you hide Joomla admin password while inputting the characters?
One of the solution will be to create a custom font (this tutorial explain a way to do this https://www.wikihow.com/Create-a-Font) with small circles for all characters and bind this font to your ...
- 81
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
joomla-3.9 × 72joomla-3.x × 8
custom-field × 6
module × 5
articles × 5
php × 4
extensions × 4
mysql × 4
custom-component × 4
redirect × 4
login × 3
acl × 3
weblinks × 3
component × 2
plugin × 2
templates × 2
css × 2
database × 2
menu-item × 2
sef × 2
com-content × 2
search × 2
jroute × 2
helix3 × 2
router × 2