Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anthony 22 posts 42 karma points
    Feb 05, 2011 @ 09:22
    Anthony
    0

    Uploading my website in Umbraco

    Hi All,

    I am pretty new to CMS generally. I have created a website and I have the HTML and CSS for the same. I need to upload it to Umbraco. I have Umbraco installed and running. But I really don't know how to set up my site in the same. I couldn't understand much from the tutorials etc.

    My requirement is simple,

    1. I have a common header and footer for all pages.

    2. A home page which has content that will be changed dynamically.

    3. Inner pages with a common lh and normal text, heading etc.

    4. A Page for login and registration form.

    Can somebody please tell me how I can get these things done in Umbraco, step by step? 

    Appreciate your help. 

     

    Thank you,
    Anthony.

  • Daniel Bardi 927 posts 2562 karma points
    Feb 05, 2011 @ 09:55
    Daniel Bardi
    0

     

    1. In settings, create a master doctype and generate a template for it.
    2. In the master template, put the header and footer html inside the provided placeholder
    3. Create a new contentplaceholder inside side the master template where all site content should appear.
    4. Create a homepage, textpage, and loginpage templates under the master template
    5. Create a homepage, textpage, and loginpage doctypes under the master doctype and assign the specific templates to each
    6. Add properties to (i.e. content, pagetitle, SEO stuff, etc) to the master doctype
    7. Edit homepage structure.. check textpage and loginpage
    8. Edit textpage structure.. allow textpage
    9. Add login form to login template
    10. In Content section, right-click content->Create.. select homepage (name 'Home' or something similar)
    11. Right-click 'Home', create new textpages and a login page.
    That should be enough to get you started.

     

     

  • Anthony 22 posts 42 karma points
    Feb 07, 2011 @ 10:05
    Anthony
    0

    Hi Daniel,

    Thank you for the quick reply.

    I created the templates accordingly, but I get a runtime error. I don't know why?

     

     

     

  • Daniel Bardi 927 posts 2562 karma points
    Feb 07, 2011 @ 10:21
    Daniel Bardi
    0

    I'd check your templates.. if you moved them around any, make sure the placeholders are referenced properly and exist in the master template.

    Copy/Paste one of your child templates so I can verify it's correct.

  • Anthony 22 posts 42 karma points
    Feb 07, 2011 @ 10:58
    Anthony
    0

    I have created the following template, doctype and content settings,

    Template:
    Master
    - homepage
    - textpage
    - loginpage

    Document Types:
    Master
    - homepage
    - textpage
    - loginpage

    Content:
    Home
    - textpage
    - loginpage

    Can you please explain me how the above are related with each other and where should I have my HTML pasted and where should the asp content place holder should be present? I am not clear yet.

     

     

  • Daniel Bardi 927 posts 2562 karma points
    Feb 07, 2011 @ 11:11
    Daniel Bardi
    0

    All that looks correct.

    If you're familar with masterpages, then you can figure out the templates.

    Primary html should be in the master template (<html><head><body>, etc)  Also include header and footer in the body tags

    Insert a 'body' ContentPlaceHolder.

    In the subtemplates, place content fields (i.e. bodyText) inside the Content tags referencing the 'body' contentplaceholder in master template

    Then be sure you have the templates selected on the Properties tab of the content nodes

    Master Templates Sample:

    <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
      <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
        <html xmlns="http://www.w3.org/1999/xhtml" >
          <head>
          </head>
          <body>
    <asp:ContentPlaceHolder Id="body" runat="server"></asp:ContentPlaceHolder>
          </body>
        </html>
      </asp:Content>

     

     

    Sub Templates Sample:

    <%@ Master Language="C#" MasterPageFile="~/masterpages/Master.master" AutoEventWireup="true" %>
      <asp:content ContentPlaceHolderId="body" runat="server">
        <umbraco:Item field="bodyText" runat="server"></umbraco:Item>
      </asp:content>

  • Anthony 22 posts 42 karma points
    Feb 07, 2011 @ 14:03
    Anthony
    0

    Awesome... Thank you so much I have got it working now...

    How can make the content dynamic? i.e the navigation menu, certain part of a webpage etc.

  • Daniel Bardi 927 posts 2562 karma points
    Feb 08, 2011 @ 00:58
    Daniel Bardi
    0

    That's awesome... glad to hear it.

    Navigation is easy... just create a new xslt macro and use the navigation template.

    Then place the macro in the master template where you want it to display.

    The default navigation xslt will generate a standard ul and li tags fo your navigation.. you just need to style it with css.

    I recommend you check out the Umbraco wiki for much more information.

    http://our.umbraco.org/wiki
    http://our.umbraco.org/wiki/reference/xslt/how-umbraco-uses-xslt

  • Anthony 22 posts 42 karma points
    Feb 08, 2011 @ 05:24
    Anthony
    0

    What if I want to use the navigation I have already created using script and CSS in the website?...how to include it in the template and give other users the option to add and edit it later?...

  • Anthony 22 posts 42 karma points
    Feb 15, 2011 @ 06:08
    Anthony
    0

    Hi,

     

    I have encountered another problem. I have created most of my website now. I tried to create a new template for few of my pages, but when I clicked 'create' it showed a server error and when I cancelled the process and went back, all of my previously created templates disappeared. The document type is also not working, it too shows server error page. I dont know what is the problem, now I am unable to create any template, even if I do so I am not able to see them under the template folder.

    But my site is working fine, I am able to add content pages.

    How to overcome this problem? Is there any way I can get back the templates? 

    Appreciate your help.

     

    Thank you,
    Anthony.

  • Daniel Bardi 927 posts 2562 karma points
    Feb 15, 2011 @ 07:08
    Daniel Bardi
    0

    Check the masterpages folder in the root of the site to verify that the files exist... if they do, open in a text editor and copy/paste into new templates.

  • Anthony 22 posts 42 karma points
    Feb 15, 2011 @ 10:10
    Anthony
    0

    Yes, the files do exist in the folder, but when I create new templates, I am not able to see them from login...

  • Anthony 22 posts 42 karma points
    Feb 15, 2011 @ 10:13
    Anthony
    0

    Yes, the files do exist in the root folder, but I could not see the new templates created when I view them from the login (i.e from the URL)...

Please Sign in or register to post replies

Write your reply to:

Draft