Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# demwunz 11/11/2005 11:23 AM
Hi,
please forgive me, before I start!
basically , I have just installed Cuyahoga on a clients server. Now I want to customise my photoshop designs and make into templates. As I am new to the whole dot net thing anyway, is there a manual around? or a brief introduction on how to make templates for the site? Please assume that I have only a few weeks worth experience in this whole arena. In particular, for example, the wonderful flower site in Holland, is excellent design, is there a case study or tutorial on it???
Thankyou for your time and patience.
# martijnb 11/12/2005 6:32 AM
Creating custom templates is pretty easy. This is how I do it:

- Create a static html version with the new design.
- Create a directory structure for the custom template. It should look like:
/Web/Templates/YourCustomTemplate
  |-Images
  |-Css
- Copy any images and stylesheets of the static html version to the Images and Css directories.
- Copy an existing template UserControl (for example, /Web/Templates/AnotherRed/Cuyahoga.ascx) to the YourCustomTemplate directory.
- Replace everything between the form tags with your own html.
- Put content placeholders in those areas where you want dynamic content to appear:
<div id="content">
	<asp:placeholder id="maincontent" runat="server"></asp:placeholder>
</div>
- Go to the site administration and register your new template (after uploading, when necessary)
- Ready!

Some remarks:

It's possible to use the default navigation user control in the template:
<div id="nav">
	<uc1:navigation id="Nav" runat="server"></uc1:navigation>
</div>

The easiest way to put fixed images in the template is via CSS. If you want 'ordinairy' images in the template, replace the image src with:
<img src='<%= ResolveUrl("~/Templates/YourCustomTemplate/Images/theimage.gif") %>'>

I hope this will be of any use.
# demwunz 11/17/2005 4:44 AM
Martijn,

Thanks for this, it's definately useful. More questions will follow.... (6)