Created
September 21, 2016 19:51
-
-
Save elpete/08fa9bda3f545254457be7cb47edf34b to your computer and use it in GitHub Desktop.
Overriding the HTML title in ColdBox (without using cfhtmlhead)
This file contains 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
<cfoutput> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>#event.getPrivateValue( "title", "Welcome to My Site!" )#</title> | |
</head> | |
<body> | |
<div class="container"> | |
#renderView()# | |
</div> | |
</body> | |
</cfoutput> |
This file contains 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
component { | |
function index( event, rc, prc ) { | |
prc.title = "This is the updated title"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment