Copied to clipboard

Flag this post as spam?

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


  • suzyb 474 posts 932 karma points
    Apr 22, 2011 @ 14:37
    suzyb
    0

    structuring site

    I'm looking for some advice on whether I am understanding how to structure things in umbraco.  So far the sites I have done have only needed one or two different layouts to display text content.  The site I am currently working on will have a member section with register, edit account and forgot password pages.

    Am I correct in thinking I will have a different template for each of these pages, each with the necessary macro to register, edit and retrieve the password.

  • Seth Niemuth 275 posts 397 karma points
    Apr 22, 2011 @ 15:54
    Seth Niemuth
    0

    Yes, I would have a different template for each of these pages and more than likely a different doc type for each one as well.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 22, 2011 @ 23:54
    Jan Skovgaard
    0

    Hi Suzyb

    Well with Umbraco you have many options on how to do this.

    You don't neccesarily need to use different document types to achieve this.

    You can create different templates, which can be allowed to use on the same document type, which you can define on the first tab in the document type under "allowed templates". By doing this you can use the different ASP.NET controls needed to handle the login, register etc directly in the template instead of using a user control, since the membership provider in Umbraco is based on the ASP.NET membership provider.

    If you however choose to handle this in 3 different user control, you don't need to create more than one template for your document type. Then one is enough and you can create macros based on the user controls and then place them on the appropiate nodes in the "Content" section by inserting the macroes into the rich text editor.

    I hope this makes sense.

    /Jan

  • suzyb 474 posts 932 karma points
    Apr 23, 2011 @ 20:23
    suzyb
    0

    I wasn't sure whether I'd be able to create macros with the login controls and put them in the content for the page.  I might do that as we have some member customisation.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 23, 2011 @ 22:46
    Jan Skovgaard
    0

    Hi Suzy

    You can do that if you use a rich text editor to handle the content - you just need to check the "Use macro in editor" checkbox when you create the macro :-)

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft