Seo model question
Answers: 1
17/12/2025 12:25
Reads: 3
hi, I would like to ask about the SEO model. In the template, each page has `$mv->seo->mergeParams($content, "name");`. As I understand it, if the page exists in the database, the title is taken from there and displayed in the template. Is it possible to somehow set the title directly in PHP?
Answers: 1
Maxim
18/12/2025 11:15
Hello, mergeParams attempts to merge the data of a specific page with the default data for any page. If the page in the database has a title field and it is filled in, its value will be used for the title tag
if not, the default value from the seo table is used.
If you want to set a custom value without linking it to the database, try this:
$content -> title = "My title"; $mv -> seo -> mergeParams($content, "name");
Answer the question