Yes you can use them inside the AMD module but keep in mind once you add an event listener on the window object it will be called everytime there is an action:ajaxify.end. If you don't want it triggered after you leave that page you need to turn it off with $(window).off('eventName', myMethod)
Change metadata to Plugin generated page
Giggiux last edited by
I have my plugin perfectly working: it generates one new page where it displays topics with extra data I add to them.
My problem is that this page "inherits" the title from the previous page visited (or nothing if landed directly on that).
Where/how can I change that and the metadata (keywords and SEO stuff) for that page?
If you add the title field for the template base object.
Giggiux last edited by Giggiux
@PitaJ Thanks for the answer!
I don't really know what do you mean by "template base object", do you mean the template file, or the template renderer?
Or it's just by doing like
data.title = "blabla"before the render?
Also can I add other metadata to improve the SEO of the page?