Skip to content

Conversation

Jwager-SBRx
Copy link

Populate pageTitle and pageDesc fields for inclusion in header meta tags

@Jwager-SBRx
Copy link
Author

cf2a0eb overrides/supplements changes in 1c52bbb

@jonesde
Copy link
Member

jonesde commented Sep 3, 2021

There are a number of changes here for whitespace only, please remove those changes.

In the content.xml screen it looks like you are using the first (or zero-th rather) entry from the sri.screenUrlInfo.extraPathNameList list for the pageTitle and pageDesc. Wouldn't it be better to use the last entry in that list, which is the current wiki page's name (possibly preceded by a path within the wiki space)? Also, it looks like you are setting pageTitle and pageDesc to the same value but in different ways... might as well do something like set the pageTitle and then set pageDesc from pageTitle.

In both files there is an if/then/else block and both are formatted oddly. To make it more like C or Java code I usually format them this way:

<if><then>
    ...
</then><else>
    ...
</else></if>

@Jwager-SBRx
Copy link
Author

Jwager-SBRx commented Sep 7, 2021 via email

@Jwager-SBRx
Copy link
Author

Jwager-SBRx commented Sep 8, 2021

I have changed the white space reformatting - though it looks like IntelliJ is still fighting me on some.
I have reformatted the if/then/else tags.
I have changed the Array lookup selection.
I tried to create a new pull request, but cannot tell if it was created or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants