Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Suril 4 posts 84 karma points
    Jan 13, 2017 @ 09:41
    Suril
    0

    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?

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Jan 13, 2017 @ 10:28
    Dennis Adolfi
    0

    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.

  • Suril 4 posts 84 karma points
    Jan 13, 2017 @ 10:39
    Suril
    0

    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?

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Jan 13, 2017 @ 10:48
    Dennis Adolfi
    100

    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

  • Suril 4 posts 84 karma points
    Jan 13, 2017 @ 11:59
    Suril
    0

    Thanks Again :)

Please Sign in or register to post replies

Write your reply to:

Draft