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.
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 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.
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 :-)
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.
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.
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
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.
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
is working on a reply...