Change metadata to Plugin generated page

  • Hi guys,

    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?


  • Global Moderator Plugin & Theme Dev

    If you add the title field for the template base object.

  • @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?

Suggested Topics

| | |

© 2014 – 2022 NodeBB, Inc. — Made in Canada.