Theme creation help

Topics: Customizing Orchard, Troubleshooting, Writing themes
May 20, 2011 at 8:59 PM

Hello,

I'm starting to dig in to create a theme and getting stuck on something very basic. Sigh.

 

In my document.cshtml I want to use this:


<head>� ��
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />� ��
<meta name="robots" content="index,follow" />� �� ��
<link rel="icon" href="<%=Url.Content("~/favicon.ico")%>" type="image/x-icon" />� ��
<link href="<%=Page.ResolveClientUrl("~/Content/index.css")%>" type="text/css" rel="stylesheet" />� ��
<link rel="stylesheet" href="<%=Page.ResolveClientUrl("~/Content/slimbox2.css")%>" type="text/css"� � � � media="screen" />� ��
<!--[if IE 6]>  � �<link href="<%=Page.ResolveClientUrl("~/Content/ie6.css")%>" type="text/css" rel="stylesheet" />� � � ��
<script src="<%=Url.Content("~/Scripts/dd_belated_png.js")%>"></script>  ��
�<script>DD_belatedPNG.fix('#logo a, .h-box-1 img, .h-box-2 img, .brochure img, .slide-txt');</script> �� ��
<![endif]-->� � <script src="<%=Url.Content("~/Scripts/jquery-1.4.1.min.js")%>" type="text/javascript"></script>� ��
<script type="text/javascript" src="<%=Url.Content("~/Scripts/jqueryslidemenu.js")%>"></script>� ��
<script type="text/javascript" src="<%=Url.Content("~/Scripts/slideswitch.js")%>"></script>� ��
<script type="text/javascript" src="<%=Url.Content("~/Scripts/jquery-ui-1.7.2.custom.min.js")%>"></script>� ��
<script type="text/javascript" src="<%=Url.Content("~/Scripts/slimbox2.js")%>"></script>� ��
<script type="text/javascript" src="<%=Url.Content("~/Scripts/cufon-yui.js")%>"></script>� ��
<script src="<%=Url.Content("~/Scripts/Liberation_Sans_400.font.js")%>" type="text/javascript"></script>� ��
<script type="text/javascript">� � � � Cufon.replace('h1');� � � � Cufon.replace('h2');� � � � Cufon.replace('h3');� � � � Cufon.replace('h4');  �  � ��
</script>
</head>    
       Ive tried adding them like this:

 
    @{
    // Add the site CSS
    Style.Include("~/index.css");
    Style.Include("slimbox2");
    
    // Add scripts
    Script.Include("jquery-1.4.1.min.js");
    Script.Include("jqueryslidemenu.js");
    Script.Include("slideswitch.js");
    Script.Include("jquery-ui-1.7.2.custom.min.js");
    Script.Include("slimbox2.js");
    Script.Include("cufon-yui.js");
    Script.Include("Liberation_Sans_400.font.js");
    }

This html it generates causes a 404 error on all of the files above. I have the theme referenced in my project so changes I make it gets picked up.

What's the best way to do this?


            

May 23, 2011 at 10:22 PM

Anyone interested in tutoring me for an hour or two as I have some questions that would be easy for an experienced developer but would take me alot of time to figure out on my own. Direct message me.