We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2855
    • 2 Posts
    Hi,

    I’m a developper of an open source web analytics software (spongestats.org).

    I have developped a new feature for version 3.1 to get the page title from the current page based on an API.
    Actually, only Wordpress is integrated but I would like to integrate some other CMS/Blog platforms, so I

    would like to know if there is an API feature included in MODX that I can use to get the current page title.

    For example, in Wordpress, I use the API feature wp_title(’’,false);

    Do you know if something similar is available in the ModX API and if I can use it in an external marker ?

    Regards,
    Bastien.
      • 22303 MODX Staff
      • 10,725 Posts
      $modx->documentObject['pagetitle']
      OR in content tags:
      [*pagetitle*]
        • 2855
        • 2 Posts
        Great, thank you, I will add this platform by using this function "$modx->documentObject[’pagetitle’]".

        Thank you for your reactivity.