Hi
I need to put some code between the
tags on my sites, how can I do that?
I also need to get into the Default.aspx page, where can I do that?
/Andréas
Hi
I need to put some code between the
tags on my sites, how can I do that?
I also need to get into the Default.aspx page, where can I do that?
/Andréas
andreas.matilainen@skapa.se wrote:Hi
I need to put some code between the tags on my sites, how can I do that?
I also need to get into the Default.aspx page, where can I do that?
/Andréas
Hi Andréas
In Files/Templates/Master/ you find the master templates. In here you can edit the things between the head tags. Another way of doing it is through the API like this:
Pageview.TemplateMaster.SetTemplateValue("SomeHeadTag", "Some value")
To get into Default.aspx you need to make a custom modules project. Then you have control over Default.aspx. But in Dynamicweb Default.aspx is more or less empty - everything is handled in the pageview object.
What do you need to accomplish with Default.aspx?
NP wrote:andreas.matilainen@skapa.se wrote:Hi
I need to put some code between the tags on my sites, how can I do that?
I also need to get into the Default.aspx page, where can I do that?
/Andréas
Hi Andréas
In Files/Templates/Master/ you find the master templates. In here you can edit the things between the head tags. Another way of doing it is through the API like this:
Pageview.TemplateMaster.SetTemplateValue("SomeHeadTag", "Some value")
To get into Default.aspx you need to make a custom modules project. Then you have control over Default.aspx. But in Dynamicweb Default.aspx is more or less empty - everything is handled in the pageview object.
What do you need to accomplish with Default.aspx?
Hey Nicolai!
I need to put in a script for Google analytics but I solved it by puttting it in the pagesetup page.
Thanks for your help
/Andréas
Hi Andréas
In Files/Templates/Master/ you find the master templates. In here you can edit the things between the head tags. Another way of doing it is through the API like this:
Pageview.TemplateMaster.SetTemplateValue("SomeHeadTag", "Some value")
Hi Nicolai!
I want to add a script between the head tag, but nothings happen if I change in the file called "(Default)HTML401TransQuirks.html" in "Files/Templates/Master/".
Am I changing the right file?
/Andréas
Hi Andreas
You are close. Or maybe there.
When viewing the frontend, you can view source in the browser. In the bottom you will find a line like this:
Last piece of information is the master template used.
On this page you can find information on how to change the master template
http://manual.net.dynamicweb.dk/Default.aspx?ID=1527
Go to Modules-> Language/Area module or Frontpage module (Same)
You must be logged in to post in the forum