Suntower
Posts: 225
|
Posted: 06/02/2011, 6:00 PM |
|
Is there a way to conditionally insert code into the <HEAD> tag? I tried Page_BeforeShow but it puts the code in after the <BODY> tag.
TIA,
---JC
_________________
---On a campaign for more examples and better docs! |
|
|
datadoit
|
Posted: 06/02/2011, 6:59 PM |
|
Use a template variable:
http://docs.codecharge.com/studio40/html/Components/Var...mplate.html?toc
|
|
|
Suntower
Posts: 225
|
Posted: 06/03/2011, 2:58 PM |
|
I don't get it. Can you be a little more specific? How does one write a single <meta> or -whatever- into this variable?
Thanks,
---JC
Quote datadoit:
_________________
---On a campaign for more examples and better docs! |
|
|
datadoit
|
Posted: 06/03/2011, 4:41 PM |
|
In your HTML, place your tag such as:
{MyMetaTag}
then in the Page's BeforeShow, define the value for that tag:
HTMLTemplate.SetVar "@MyMetaTag","<meta name='description'
content='hello world' />"
|
|
|
Suntower
Posts: 225
|
Posted: 06/04/2011, 12:19 AM |
|
THANKS!
Quote datadoit:
In your HTML, place your tag such as:
{MyMetaTag}
then in the Page's BeforeShow, define the value for that tag:
HTMLTemplate.SetVar "@MyMetaTag","<meta name='description'
content='hello world' />"
_________________
---On a campaign for more examples and better docs! |
|
|
|