We have one requirement to create custom module in the existing site which is built using Umbraco.
The module should allow admin to set the Heading text, image, position of text (Top, Bottom, Right, Left etc.), background color of text & page etc. and based on this configuration, front end side module should be rendered dynamically.
Can anybody guide me how i can achieve this? From where i can find step by step guideline for creating new module?
Its a step by step documentation for creating nodes and render them in the frontend with Umbraco. Have a look at all the steps and if you have any questions, let me know and I'll do my best to explain.
You could use macros, but you could also use a PartialView. Its a bit depending on how the existing site is built to render modules.
After you are done, package you macro up as a package for Umbraco, and send to the client. After the client then installed the package he/she can then include this macro either in a RTE editor or directly into a view, and specify the parameters as they include it.
Step by Step guideline to create new module
We have one requirement to create custom module in the existing site which is built using Umbraco.
The module should allow admin to set the Heading text, image, position of text (Top, Bottom, Right, Left etc.), background color of text & page etc. and based on this configuration, front end side module should be rendered dynamically.
Can anybody guide me how i can achieve this? From where i can find step by step guideline for creating new module?
Do i need to create macro plugin for this?
Hi Suril.
Have a look at this link: https://our.umbraco.org/documentation/tutorials/creating-basic-site/creating-your-first-template-and-content-node.
Its a step by step documentation for creating nodes and render them in the frontend with Umbraco. Have a look at all the steps and if you have any questions, let me know and I'll do my best to explain.
You could use macros, but you could also use a PartialView. Its a bit depending on how the existing site is built to render modules.
Best of luck.
Thanks Dennis for your guidance.
We will have to provide plugin/package for this requirement (the source code of existing site will not be available to us).
Will it be possible to develop and create package for Partial View/macros and plug it directly in existing site?
Hi again.
Ah, I understand.
Yes then a Macro would work. You could create a macro with the heading, image, position, background as macro parameters, and then place your code in a Macro Partial. Docs about creating macros: https://our.umbraco.org/documentation/reference/templating/macros/
After you are done, package you macro up as a package for Umbraco, and send to the client. After the client then installed the package he/she can then include this macro either in a RTE editor or directly into a view, and specify the parameters as they include it.
here is docs on how to package up your code as a package: http://code-desk.com/web-development/how-to-create-local-package-in-umbraco-7.html
Thanks Again :)
is working on a reply...