How do I make page title display in the browser title bar?

Options

Here's an example:

For the page above, the browser title bar it just says "NARAL Pro-Choice America:" and I'd like the page title to appear up there as well. Is there something I can do in the wrapper or something like that to make this happen?

Thanks!

Tagged:

Comments

  • If this is a pagebuilder page, you can edit this as a page attribute. Click "manage" next to the page name in the pagebuilder Library, then "Edit version attributes" next to the version of the page that's currently published (there may only be the one). Page Title is the second field on the initial page.

  • Bill Bennett:

    If this is a pagebuilder page, you can edit this as a page attribute. Click "manage" next to the page name in the pagebuilder Library, then "Edit version attributes" next to the version of the page that's currently published (there may only be the one). Page Title is the second field on the initial page.

    Looks like this is an Advocacy page, so I don't think there is a page attribute in Advocacy where you can change the page title. Is there somewhere in the PageWrapper code, maybe, that you can specify some sort of special tag to drop in the title of the current action alert that the PageWrapper is assigned to?

  • Sally Heaven:

    Looks like this is an Advocacy page, so I don't think there is a page attribute in Advocacy where you can change the page title. Is there somewhere in the PageWrapper code, maybe, that you can specify some sort of special tag to drop in the title of the current action alert that the PageWrapper is assigned to?

    Hey Sally,

    I was trying to do this in fact right now. I'm using a conditional S tag to look for items in the advocacy application and then to add a meta name="title" tag to the HEAD. At the very least I can change it to something like Take Action, but I would love to have the actual name of the Advocacy Alert.

    But how does one get the title of the alert? I cannot find an STag that would do it.

    S24 which gets the title for page builder pages, does not return the name of an advocacy alert.

    Thanks

  • Adrian Cotter:

    Hey Sally,

    I was trying to do this in fact right now. I'm using a conditional S tag to look for items in the advocacy application and then to add a meta name="title" tag to the HEAD. At the very least I can change it to something like Take Action, but I would love to have the actual name of the Advocacy Alert.

    But how does one get the title of the alert? I cannot find an STag that would do it.

    S24 which gets the title for page builder pages, does not return the name of an advocacy alert.

    Thanks

    Hey Adrian,

    I've implemented a bit of a hack on a few Convio sites to get title tags to show the names of pages across various applications, primarily so that analytics tools like Omniture which rely on document.title can distinguish between pages. Your post made me realize I should document it.

    In the meantime ... to answer your immediate question, S24 only applies to PageBuilder and StoryBuilder. The S123 tag can be used to get the name of an action alert, but only on the Take Action page. On the other pages (TellAFriend, TellAFriend confirmation), you must parse the Google Analytics funnel path which includes the name of the alert. You can do that with some code like this in the page wrapper.



    ]xx::/completexx::Thank You | ::]xx::/TafThanksxx::Thanks for Sharing | ::]]]]]x::]::]]] dup dup "Advocacy/" indexof 9 + swap length substring dup 0 swap "/" indexof substring]]]]

    The first part is used to render "Thank You | " or "Thanks for Sharing | " before the name of the alert on the TellAFriend (or thank you page for alerts not using TellAFriend) and TellAFriend thank you pages respectively. You could of course take that off if you wanted.

    A few caveats:

    1) The code will only work if placed in the page wrapper, or a reusable pulled into the page wrapper. You can't, for example, drop this code into the body of the action alert pages.

    2) The code will not work on Vote Center, Call Alerts, or Letter to the Editor, only Action Alerts. (It could be revised for Letter to the Editor if you wanted.)

    3) The code as-is will only work on front-end Action Alert pages, it will not work on Advocacy Preview (though it could be revised to do so).

  • Noah Cooper:

    Hey Adrian,

    I've implemented a bit of a hack on a few Convio sites to get title tags to show the names of pages across various applications, primarily so that analytics tools like Omniture which rely on document.title can distinguish between pages. Your post made me realize I should document it.

    In the meantime ... to answer your immediate question, S24 only applies to PageBuilder and StoryBuilder. The S123 tag can be used to get the name of an action alert, but only on the Take Action page. On the other pages (TellAFriend, TellAFriend confirmation), you must parse the Google Analytics funnel path which includes the name of the alert. You can do that with some code like this in the page wrapper.



    ]xx::/completexx::Thank You | ::]xx::/TafThanksxx::Thanks for Sharing | ::]]]]]x::]::]]] dup dup "Advocacy/" indexof 9 + swap length substring dup 0 swap "/" indexof substring]]]]

    The first part is used to render "Thank You | " or "Thanks for Sharing | " before the name of the alert on the TellAFriend (or thank you page for alerts not using TellAFriend) and TellAFriend thank you pages respectively. You could of course take that off if you wanted.

    A few caveats:

    1) The code will only work if placed in the page wrapper, or a reusable pulled into the page wrapper. You can't, for example, drop this code into the body of the action alert pages.

    2) The code will not work on Vote Center, Call Alerts, or Letter to the Editor, only Action Alerts. (It could be revised for Letter to the Editor if you wanted.)

    3) The code as-is will only work on front-end Action Alert pages, it will not work on Advocacy Preview (though it could be revised to do so).

    Hey Noah,

    Thanks!

    If you could document it that would be great. It still think it would be better if Advocacy Alerts had the correct page titles though for SEO if nothing else. Currently it also especially sucks for Facebook sharing. If that's not a feature request already, can I put in a plug?

    But the s123 tag was exactly what I needed (and allows me to get the Facebook sharing working -- maybe I'll write up a document on that).

    But I notice that the S123 tag is undocumented as well. Any reason? seems like it could be useful.

    Thanks,

    Adrian

  • Adrian Cotter:

    Hey Noah,

    Thanks!

    If you could document it that would be great. It still think it would be better if Advocacy Alerts had the correct page titles though for SEO if nothing else. Currently it also especially sucks for Facebook sharing. If that's not a feature request already, can I put in a plug?

    But the s123 tag was exactly what I needed (and allows me to get the Facebook sharing working -- maybe I'll write up a document on that).

    But I notice that the S123 tag is undocumented as well. Any reason? seems like it could be useful.

    Thanks,

    Adrian

    Thanks for the replies, Noah and Adrian! This just came up again for us recently (after I forgot about it for a while...) exactly in the context Adrian mentioned- for Facebook sharing. I'll implement it soon. I agree documentation would be really useful.

  • Kirsten Suhr:

    Thanks for the replies, Noah and Adrian! This just came up again for us recently (after I forgot about it for a while...) exactly in the context Adrian mentioned- for Facebook sharing. I'll implement it soon. I agree documentation would be really useful.

    I just posted more info about what I did on a document.

Categories