Hello, im new to umbraco and i'm having some trouble with my logo, i would like the admin to be able to change the logo easily like on the Fanoe starter template/design, so i went to the masterpage on the fanoe site and copiede the logo code -
im using bootstrap myself on my own site btw.
so after pasting the above code into my own master page at the desisered logo location i went to my
"Forside" Document type and created a Fileupload with the name - Site Logo and alias siteLogo under the tab "logo og ting"
after that i went to my content page - Forside (home in english) and uploaded a image using the Site Logo Upload.
then i went back into my Masterpage template to edit:
"home.SiteLogo" to "forside.SiteLogo" and a href @home.Url to @Forside.Url
after doing so - when i run the code it gives me the error
"Compiler Error Message: CS0103: Navnet 'Forside' findes ikke i den aktuelle sammenhæng"
i also tried changeing back to "home" both places but then it just gives me the same error message but with the name "home" not existing.
Anyone got some advice as to why this is happening?
Thank you Nik, i did try with both capital and normal letters.
"Where are you declaring and initialising your firsode variable?"
no where i think? that might be it, im missing something? All i have done so far, is as writte in my above post, so i dont think im declaring it anywhere.
Using fanoe Logo Code for my own site.
Hello, im new to umbraco and i'm having some trouble with my logo, i would like the admin to be able to change the logo easily like on the Fanoe starter template/design, so i went to the masterpage on the fanoe site and copiede the logo code -
im using bootstrap myself on my own site btw. so after pasting the above code into my own master page at the desisered logo location i went to my "Forside" Document type and created a Fileupload with the name - Site Logo and alias siteLogo under the tab "logo og ting"
after that i went to my content page - Forside (home in english) and uploaded a image using the Site Logo Upload.
then i went back into my Masterpage template to edit:
"home.SiteLogo" to "forside.SiteLogo" and a href @home.Url to @Forside.Url
after doing so - when i run the code it gives me the error
"Compiler Error Message: CS0103: Navnet 'Forside' findes ikke i den aktuelle sammenhæng"
i also tried changeing back to "home" both places but then it just gives me the same error message but with the name "home" not existing.
Anyone got some advice as to why this is happening?
So my first observation is that you've typed @Forside.Url where as it was @home.Url, note the casing of @Forside.
I would try using @forside to startwith.
That aside, where are you declaring and initialising your forside variable?
Thank you Nik, i did try with both capital and normal letters.
"Where are you declaring and initialising your firsode variable?" no where i think? that might be it, im missing something? All i have done so far, is as writte in my above post, so i dont think im declaring it anywhere.
How and where would you do it please?
So i forgot to intitialise the home/forside variable, thx alot for the hint Nik.
all i needed to do was add
in the top of my masterpage template.
No problem :-) Pleased the hint helped.
is working on a reply...