Copied to clipboard

Flag this post as spam?

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


  • Robert Bolding 1 post 21 karma points
    Aug 04, 2011 @ 14:10
    Robert Bolding
    0

    Creating reusable content with Razor

    Hello, I'm now to Umbraco and want to create reusable content like in a sidebar. I have read the document "Creating reusable content" and that works super!

    Now I want to translate the XSLT script to a Razor script. Have anyone done this already? Otherwise I'm gone give it a try.

  • thomas seyssens 20 posts 70 karma points
    May 02, 2014 @ 16:26
    thomas seyssens
    0

    Hi, did you find something? 

    If yes, can you explain me? :)

  • Charles Afford 1163 posts 1709 karma points
    May 04, 2014 @ 19:43
  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    May 05, 2014 @ 12:13
    Jeroen Breuer
    0

    Hello,

    Like suggested you can use partial views for this, but sometimes Html.Action is better to use because you can first do some logic in the controller before returning the view.

    Jeroen

  • 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