Copied to clipboard

Flag this post as spam?

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


  • yang 21 posts 33 karma points
    Mar 20, 2010 @ 15:21
    yang
    0

    Independent content boxes like asp.net webparts

    Hi,

    I am very new to Umbraco platform and maybe now asking a question that was asked before. What I need is to create content panels independent from the page the panel is used on. A photo panel that shows a random photo from a gallery, an article summary panel that pulls a random article from published articles and shows the title and summary or a comment list panel that lists the latest comments etc...

    What is the best approach to create such features, macros with xslt or usercontrols? Is there a guide or tutorial about this anywhere?

    Thanks in advance.

  • David F. Hill 122 posts 242 karma points
    Mar 21, 2010 @ 22:40
    David F. Hill
    0

    Yang,

    One approach is to create an ASP.Net user control that renders your custom content.

    After you have the user control working - create an Umbraco macro for it.

    Then add the macro your Umbraco template. Many people put the macro within <div></div> tags and control the styling with CSS.

    Check out this video called, "Using .Net User Controls" http://umbraco.org/documentation/videos/for-developers/foundation/using-net-user-controls

    Hope this helps,

    David

    (please mark this as the solution if you found it helpful - thanks)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies