Hello, I am new user to Umraco and I am trying to cretae my first plugin. I was looking for some guide, how this should be done, but I couldn't find anything specific. There are some examples, related to older versions.
What I want to create is the following.
I have my own DB with a table with products. I want to load them and list them in a Razor partial view. I would like to add some speicifici images(small icons) to each product and apply some custom styling to them.
This user control can be used as a custom menu for example.
The way I do it: I created a web user control in visual studio, made my program (with database connection and everything I need, you can normally easily use the controls from asp.net) and then imported to Umbraco this way:
the .ascx file (your usercontrol itself) you put in the folder 'usercontrols' in Umbraco
the .dll file you put in the bin folder of Umbraco
If that's done, you can easily create a macro in the backend of Umbraco, and that macro can be added to every page you want
Didn't find a better way, but it works well. If you use a program that supports nuget (ex. Visual Studio) you can easily import Umbraco to it, much easier to develop.
Hope this helps, I searched a lot before I found this (especially for the dll file)
-edit-
This is for version 4.11.3 but I think it will be something similar for V6
You can use a standard database technique to get the data from your database. It's just Razor or an MVC controller if you want to go that route. If you want tyo go the import way as Robin suggested You might want to check-out CMSImport http://our.umbraco.org/projects/developer-tools/cmsimport/
Umbraco v6, my first plugin
Hello, I am new user to Umraco and I am trying to cretae my first plugin. I was looking for some guide, how this should be done, but I couldn't find anything specific. There are some examples, related to older versions.
What I want to create is the following.
I have my own DB with a table with products. I want to load them and list them in a Razor partial view. I would like to add some speicifici images(small icons) to each product and apply some custom styling to them.
This user control can be used as a custom menu for example.
Any idea how to do this?
The way I do it: I created a web user control in visual studio, made my program (with database connection and everything I need, you can normally easily use the controls from asp.net) and then imported to Umbraco this way:
Didn't find a better way, but it works well. If you use a program that supports nuget (ex. Visual Studio) you can easily import Umbraco to it, much easier to develop.
Hope this helps, I searched a lot before I found this (especially for the dll file)
-edit-
This is for version 4.11.3 but I think it will be something similar for V6
Hi,
You can use a standard database technique to get the data from your database. It's just Razor or an MVC controller if you want to go that route. If you want tyo go the import way as Robin suggested You might want to check-out CMSImport http://our.umbraco.org/projects/developer-tools/cmsimport/
Hope this helps,
Richard
is working on a reply...