Site Info: Provide an informative context-sensitive page title

Description

[New] - 3/13/2018

[Issue]

The four modules related to the Site info have the very same page title, i.e., "QA03 : Level Access Test Site : Site Info".[User Impact]Assistive technologies utilize the page title to indicate the current page location to users without the user having to navigate within the page.

[Code]

HTML:

[Expected behavior]

Developers must provide a title that indicates the topic or purpose of the page, different from page to page, like in the other pages.

[Compliant code]

HTML:

Activity

Mark Golbeck September 16, 2024 at 8:31 PM

do you have a test plan for this?

Mark Golbeck September 12, 2024 at 7:27 PM

is this still an issue?

Matthew Jones July 25, 2018 at 9:47 AM

This looks like a problem for all tools? The title mentioned here is set in portal -> SiteHandler.java -> doSite.

And comes from when the page is looked up and title is set
if (site != null ) page = portal.getSiteHelper().lookupSitePage(pageId, site);

The title of each tool/page is just defined in tools.properties. To go any more specific than this seems like it would require a lot of work to me if done in the backend.

It's possible that javascript might be able to change it? It looks like this value will is inconsistent and placed by the tool.

For announcements it's in a div with the class page-header
document.getElementsByClassName("page-header")[0].children[0].innerHTML

For Site Info it's in a div with the class portletBody
document.getElementsByClassName("portletBody")[0].children[0].innerHTML

This could possibly be appended if it exists to the end of the title, but seems really hacky. I can't think of any other way to push this up to the portal?

Sam Ottenhoff June 18, 2018 at 7:09 PM

Matt, you have any idea how to get this done for velocity templates in site-manage?

They all seem to be HTML snippets only ......

Details

Priority

Affects versions

Components

Assignee

Reporter

Created April 19, 2018 at 7:35 AM
Updated September 16, 2024 at 9:00 PM