Search page meta Title

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hello,

How to get the search terms to the meta Title?
The default title is "Search" in Html.AddTitleParts(T("PageTitle.Search").Text)
I want to make it as "Search ABC" in the title, "ABC" is the search terms.

Nop.V4.2

Thank you
Z
4 years ago
Update resource string value of PageTitle.Search as Search {0}. Modify AddPageTitleParts as Html.AddTitleParts(string.Format(T("PageTitle.Search").Text, Model.q));
4 years ago
mhsjaber wrote:
Update resource string value of PageTitle.Search as Search {0}. Modify AddPageTitleParts as Html.AddTitleParts(string.Format(T("PageTitle.Search").Text, Model.q));


It works.
Thank you very much.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.