George Benson
Ok so I have a new Joomla! 4.2.3 Stable [ Uaminifu ] 27-September-2022 15:35 GMT installation, Database Version 10.2.44-MariaDB, PHP Version 8.0.23. Site is hosted by InMotion Hosting on a VPS server that I control with a total of 4 websites - all of which are mine.
I have installed ONLY the Regular Labs Extensions as follows:
Extension Type Version
Advanced Module Manager Component Action Log Plugin System Plugin 9.3.0 PRO
Articles Anywhere System Plugin Editor Button Plugin 12.5.0 PRO
Articles Field Field Plugin 3.9.0 PRO
Better Frontend Link Module 1.1.2
Cache Cleaner Module System Plugin 8.2.0 PRO
Conditional Content System Plugin Editor Button Plugin 4.1.0 PRO
Content Templater Component Action Log Plugin System Plugin Editor Button Plugin 11.0.0 PRO
Regular Labs Extension Manager Component Action Log Plugin 8.2.0
GeoIP System Plugin Library 5.1.1
IP Login System Plugin 5.1.2 PRO
Keyboard Shortcuts System Plugin 2.0.0 PRO
Modules Anywhere System Plugin Editor Button Plugin 7.16.0 PRO
Quick Index System Plugin 3.2.2 PRO
ReReplacer Component Action Log Plugin System Plugin 12.4.0 PRO
Snippets Component Action Log Plugin System Plugin Editor Button Plugin 8.3.3 PRO
Sourcerer System Plugin Editor Button Plugin 9.2.3 PRO
I have created a single Snippet following the
docs4.regularlabs.com/snippets/the-basics/creating-a-snippet
The snippet details are:
%year% - %company% - All rights reserved
I have created two variables:
Variable Key ="year" and Default Value = "2022" - Insert in Tag set to "YES" (ie:GREEN YES SHOWING)
Variable Key ="company" and Default Value = "Test Company, INC." - Insert in Tag set to "YES" (ie:GREEN YES SHOWING)
Options are all Default with Show in Editor Button List set to Only in admin.
I have tried creating a NEW Article as well as editing an existing Article and with both I use the Snippet Button under CMS Content. After clicking the Snippet Button I am presented with a modal window showing a single Snippet with the following:
ID="1", Alias="copyright", Title="copyright", Description="Test Copyright", Category="Copyright", Frontend="x", Status="✔"
I click on the Title which is "copyright" and the modal window disappears and the following is inserted into the article:
{snippet title="copyright" year="" company=""}
Am I correct that this is a BUG and in fact it should be auto filling the year and company with the variable information?