I decided to build my website with umbraco.But I must create a plugin (I don't know what does it call :D) to process some information of user and post a result (the result looks like a normal topic).I cannot find any tutorial or document about this. I have a little knowledge about C# :D. Someone help me ? :(
It sounds like you want to create a form for users to enter data, not sure what you want to do with the results though, perhaps create a document in Umbraco? Either way you have several options:
- Create a .NET Usercontrol - you can create a normal .NET usercontrol and use it in Umbraco by wrapping it in a Macro. Just create the usercontrol, copy it to /usercontrols/ and the DLL to /bin/, then create a Macro in the Developer section and pick that usercontrol. Then you can insert that macro into a template. You can also use the Document API in your usercontrol if you want to create a document with the results. Here's a video on working with usercontrols in Umbraco - and some info on the Document API.
- Create a Razor script - if you have some C# knowledge you could also create a Razor script. You could check out the Cultiv Razor Contact Form as a guide. I think there is also a video that may help - Contact and Email a Friend Forms.
- Use Umbraco Contour [project page] - this is a paid product that allows you to easily create forms for the front-end without doing any coding. It also has some powerful 'workflow' capabilities, so out of the box you can have your form send emails, create umbraco documents, etc. With some C# you can also create custom workflows to perform any other tasks you need.
[New user] How to create own plugin for Umbraco
I decided to build my website with umbraco.But I must create a plugin (I don't know what does it call :D) to process some information of user and post a result (the result looks like a normal topic).I cannot find any tutorial or document about this. I have a little knowledge about C# :D. Someone help me ? :(
Thanks for helping!
Hi,
It sounds like you want to create a form for users to enter data, not sure what you want to do with the results though, perhaps create a document in Umbraco? Either way you have several options:
- Create a .NET Usercontrol - you can create a normal .NET usercontrol and use it in Umbraco by wrapping it in a Macro. Just create the usercontrol, copy it to /usercontrols/ and the DLL to /bin/, then create a Macro in the Developer section and pick that usercontrol. Then you can insert that macro into a template.
You can also use the Document API in your usercontrol if you want to create a document with the results. Here's a video on working with usercontrols in Umbraco - and some info on the Document API.
- Create a Razor script - if you have some C# knowledge you could also create a Razor script. You could check out the Cultiv Razor Contact Form as a guide. I think there is also a video that may help - Contact and Email a Friend Forms.
- Use Umbraco Contour [project page] - this is a paid product that allows you to easily create forms for the front-end without doing any coding. It also has some powerful 'workflow' capabilities, so out of the box you can have your form send emails, create umbraco documents, etc. With some C# you can also create custom workflows to perform any other tasks you need.
Hope this helps :)
-Tom
is working on a reply...