Sub folders inside umbraco admin area - best practice advice needed
Hi There,
I want to add some extra functionality in the back end of my umbraco instance. I'm wanting to know the best approach as I will be need to access the database with custom tables.
1. Can / should I use the entity framework for this ?
2. Can I have it in a sub folder inside umbraco admin section and override the url rewrite module and other modules?
Any advice or ways of approaching this would be greatly appreciated.
You can use entity framework if you wish - I have used it recently. Whether you should or not is another matter. I did just to see if something would work, and it did. I have had a few issues with the combination of EF 4.1, SQL CE 4 and Umbraco 4.7 though, but this seemed to be down to the restrictions of SQL CE. SQL Express or better, you won't have an issue.
Instead, you can just use the Umbraco SQL Helper class to do your data access.
umbraco.BusinessLogic.Application.SqlHelper
You can create your own sections or you can add an additional tree item to a section that already exists (Settings for example). Which would you like to do?
Here is an article I've found, it's from 2009 but everything looks right for everything I did.
When creating pages for your custom section/tree remember to have your pages inherit from umbraco.BasePages.UmbracoEnsuredPage. Also you can use the the masterpage ~/umbraco/masterpages/umbracoPage.Master so that your custom pages can inherit the Umbraco styles.
I hope that helps a little at least. If you need anymore help just shout.
Sub folders inside umbraco admin area - best practice advice needed
Hi There,
I want to add some extra functionality in the back end of my umbraco instance. I'm wanting to know the best approach as I will be need to access the database with custom tables.
1. Can / should I use the entity framework for this ?
2. Can I have it in a sub folder inside umbraco admin section and override the url rewrite module and other modules?
Any advice or ways of approaching this would be greatly appreciated.
Thanks in advance.
Sean
Hi Sean,
You can use entity framework if you wish - I have used it recently. Whether you should or not is another matter. I did just to see if something would work, and it did. I have had a few issues with the combination of EF 4.1, SQL CE 4 and Umbraco 4.7 though, but this seemed to be down to the restrictions of SQL CE. SQL Express or better, you won't have an issue.
Instead, you can just use the Umbraco SQL Helper class to do your data access.
You can create your own sections or you can add an additional tree item to a section that already exists (Settings for example). Which would you like to do?
Here is an article I've found, it's from 2009 but everything looks right for everything I did.
http://www.geckonewmedia.com/blog/2009/8/3/how-to-create-a-custom-section-in-umbraco-4
When creating pages for your custom section/tree remember to have your pages inherit from umbraco.BasePages.UmbracoEnsuredPage. Also you can use the the masterpage ~/umbraco/masterpages/umbracoPage.Master so that your custom pages can inherit the Umbraco styles.
I hope that helps a little at least. If you need anymore help just shout.
Cheers,
James
Hi James,
That helps a lot. That link you sent for creating custom sections is fantastic!
Thanks again
is working on a reply...