Created
October 27, 2017 09:38
-
-
Save ps-team/b6069d106a62b6de03011f7ac8e429c5 to your computer and use it in GitHub Desktop.
Get a property or metadata from a page, in a safe way (so if the metadata doesn't exist it doesn't fall over). In this example we're replacing the title of a page based on metadata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if variable("MD_AlternativeTitle") isnot nothing then | |
Me.TitleBar = variable("MD_AlternativeTitle") | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment