API call for getting page title?

API call for getting page title?

This question is not answered

Is there a call for getting a page title ie <title>This page</title>

Thx

All Replies
  • It looks like only to Set the title of a page.  What is it you are trying to accomplish?
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: pfitzpatrick [mailto:bounce-pfitzpatrick@communities.telligent.com]
    Sent: Wednesday, May 09, 2012 10:06 AM
    To: discussion_evolution@communities.telligent.com
    Subject: [Telligent Evolution Platform Discussion] API call for getting page title?
     

    Is there a call for getting a page title ie <title>This page</title>

    Thx

  • Hi Patrick,

    wanting to output javascript variable, which would be assigned the title of the page plus some custom text.

    ie. <script type='text/javascript>var vTitle = "Home - Custom Text"</script>

    This is to be used for tracking purposes. Did have some custom api calls that i was hoping to utilize, but otherwise, i guess i'll be using js's document.title.

    P

  • Can you use document.title in the Javascript?  That's probably a better route as otherwise there's a risk your title could be changed in a widget further down the page.