viggy
viggy

Reputation: 690

How to modify the title for a custom page of a module in prestashop

I have written a new module with its own page listing few products. I now want to modify the title of the page as it is currently showing only the shop name. What I found out was that for this, I need to include a separate header.tpl and pass the title as argument. If so, how do I tell prestashop not to include the default header.tpl file. Also since I just want to modify the title, is there any other way to do the same.

Upvotes: 0

Views: 1668

Answers (1)

Guybrush Threepwood
Guybrush Threepwood

Reputation: 1303

From the back-office, go to Preferences > SEO & URLs.

You should have a page registered that corresponds to the FrontController in your module or the FrontController that calls your module's hook (whichever fits your use case). If you don't, go ahead and create one.

Once the page appears in the URL list, you can edit the page title among other things.

Upvotes: 1

Related Questions