Search
Other Articles Anywhere questions
Forum

From J3 to J4 - Syntax "article title" do not work

Torsten Klein's Avatar Torsten Klein
Hi Peter,
I updated a website from J3 to J4, in which I inserted several thousand articles with the syntax {article title="XXX"}{text}{/article} with "Articles Anywhere". Unfortunately, "article title" no longer works, not even if I want to insert a new one with the button, it only works via "article id". What could that be? Many thanks for the help.
Peter van Westen's Avatar Peter van Westen ADMIN
It should work just fine with the title attribute.
So not sure what you are running into.

Also make sure the Data Tag Characters setting in the Articles Anywhere system plugin is set to what you are actually using.
I see you are using '{text}' instead of '[text]'. So make sure it is set to use the curly braces of your syntax.
Please post a rating at the Joomla! Extensions Directory
Torsten Klein's Avatar Torsten Klein
Thanks for the answer, I checked everything, the syntax is correct, I bought the pro version to rule out any errors. It works with "ID" but not with "TITLE". Further information under "confidential"...
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Torsten Klein's Avatar Torsten Klein
Thank you, it works with this release (it was the comma...?) Thank you
Peter van Westen's Avatar Peter van Westen ADMIN
Yup, it was the comma 🙂
Please post a rating at the Joomla! Extensions Directory
Torsten Klein's Avatar Torsten Klein
Sorry, next problem with my update, I want to use DB Replacer (pro if it works) to change the old syntax to the new one, but when i use the syntax you wrote in the documentation ( "Search:" (\{article(?:-[a-z0-9-_]+)?) ([^\}"]+)\} "Replace" \1 title="\2"} ) I get "no search results".
Peter van Westen's Avatar Peter van Westen ADMIN
To be able to use Regular Expressions in the search, you will need the Pro version of DB Replacer.
Please post a rating at the Joomla! Extensions Directory
Torsten Klein's Avatar Torsten Klein
I bought the Pro version and I get the error message "The database query is invalid. Try changing the search."
Peter van Westen's Avatar Peter van Westen ADMIN
Seems to work fine on my setup. Try enabling the UTF-8 setting...
Please post a rating at the Joomla! Extensions Directory
Torsten Klein's Avatar Torsten Klein
I tried, same result...
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
I am not sure why your database is complaining about certain syntaxes in the Regular Expressions... it shouldn't.
However, you do have quite an old version of MySQL running. So I advise you to upgrade to a recent version.

Anyway, try this:
\{article ([a-zA-Z0-9\-_]+)\}
Replace with:
{article alias="\1"}
Please post a rating at the Joomla! Extensions Directory
Torsten Klein's Avatar Torsten Klein
Thank you for the quick reply again, but it only finds 3 data records, but they should be around 2000... is it perhaps the comma in the title again? And shouldn't it be "title" instead of "alias" when replacing? The database is MySQL 5.7.42-45, the only one that Hosteurope offers me...
Peter van Westen's Avatar Peter van Westen ADMIN
Well, you were using the search for the alias syntax in your screenshot.
So change it to the title one.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
\{article ([^\}"]+)\}
Replace with:
{article title="\1"}
Please post a rating at the Joomla! Extensions Directory
Torsten Klein's Avatar Torsten Klein
Yes! Thank you, this was quite difficult
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription