Search
Other DB Replacer questions
Forum

Can you add something after a page title ?

Nico van Leeuwen's Avatar Nico van Leeuwen
Hi Peter,

Would it be possible to add something after the page titles?
The result would be the same as the option in General Settings "website name in page titles".
The end goal is different but that is a long story 😁
Peter van Westen's Avatar Peter van Westen ADMIN
The page title is stored in the 'attribs' column, inside the json string.
You can use Regular Expressions to do something like:
"article_page_title":"([^"]+)"
Replace with:
"article_page_title":"\1 - Something at the end"

This assumes you already have something in the Page Title field. If not, then it would leave it empty.
Please post a rating at the Joomla! Extensions Directory
Simon Kloostra's Avatar Simon Kloostra
Hi, sorry to be pushing up this ticket, but it turns out that this is exactly what I need to do for an SEO project. The only difference is that the current article_page_title is empty. In my case, I would like to fill it with the value of the article's Title, with a string added.
So my search would be pretty simple:
"article_page_title":""
But the replacement is a bit more difficult. Checking the documentation, it does not seem possible to use another column's value I guess?
Peter van Westen's Avatar Peter van Westen ADMIN
No, DB Replacer does not offer the possibility to replace with values from other columns.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription