Copied to clipboard

Flag this post as spam?

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


  • Bilal Haidar 144 posts 410 karma points
    Sep 30, 2018 @ 21:26
    Bilal Haidar
    0

    How can I package a surface controller with macros and partial views?

    Hello

    I have uilt a search macro with Anna Jens surface controller and some Views.

    How can I package that into a new pa kage so that I can allow adding a macro to any umbraco website and it will work and be able to communicate with the surface controller (in the package) and the views (also on the package).

    Thanks Bilal

  • David Peck 690 posts 1896 karma points c-trib
    Oct 01, 2018 @ 09:13
    David Peck
    1

    Yes. When building your package, you can select your macros/partials/etc.

    For SurfaceControllers, you should build them with the [PluginController("SuperAwesomeAnalytics")] attribute, which will change your routing.

    Then in your package you can add files, so add your release built binaries in the bin folder.

Please Sign in or register to post replies

Write your reply to:

Draft