Copied to clipboard

Flag this post as spam?

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


  • Anthony Edge 26 posts 90 karma points
    Nov 01, 2018 @ 00:35
    Anthony Edge
    0

    Stack not rendering in back office - Struggling with lack of documentation

    Hey folks, We've taken over management and enhancement of an Umbraco site (7.8.1) which is utilising Stacked Content. It's very different from how we normally configure the back office for our clients but we can see the appeal!

    Although there's installation instructions for the Packages, there seems to be precious little information about the steps involved in getting Stacks configured, Previews displaying inline, and finally, content rendering on pages on the front end.

    We've pieced together most of the puzzle pieces and we've managed to alter and expand some Blocks and even add some new ones. Our problem today is, we've got one new block that displays as Blank in the editor (preview) so we cannot adjust it. We can inspect the code and add a min-height for any Block, and this allows us to click on the empty space and edit properties. But that's not really a good experience for our client.

    The Block in question only has one property (TextString). It's full partial logic means that when it renders in a front-end page, it also grabs child nodes of particular types and builds up an array, allowing that expanded content to benefit from the publish scheduling and copy/paste features of Umbraco nodes.

    But why is the back-end Block preview empty? I can't figure it out.

    Any help would be greatly appreciated. Thanks.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Nov 12, 2018 @ 12:31
    Lee Kelleher
    0

    Hi Anthony, sorry for the delayed reply - I'd been away on vacation ...and sorry for the lack of documentation!

    Firstly, have you got any further in resolving this since you posted last week?

    As you've probably found, the previewer looks for corresponding Razor partials in the "~/Views/Partials/Stacks/" folder. Then it'll display the rendered HTML.

    I'm not sure why you'd be getting back an empty preview. I'd suspect that something isn't quite right in the Razor partial for that specific doctype block.

    Cheers,
    - Lee

Please Sign in or register to post replies

Write your reply to:

Draft