Copied to clipboard

Flag this post as spam?

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


  • Bjarke Petersen 15 posts 113 karma points
    Nov 07, 2014 @ 15:11
    Bjarke Petersen
    0

    Umbraco 7.1.8 MVC - partial view macro does not render in RTE after publish

    Hi, I have a Partial View Macro. It renders fine in the RTE untill I publish the document - then it is no longer rendered... enter image description here enter image description here It is still present in the RTE: enter image description here enter image description here enter image description here

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 07, 2014 @ 16:07
    Jan Skovgaard
    0

    Hi Bjarke

    I assume that you have told the macro to display in the rte on the macro properties in the developer section, right?

    Might be worth checking the http://issues.umbraco.org/issues tracker to see if someone has reported a similar bug or perhaps file an issue if none exists already.

    But just out of curiosity - Do you see any errors in the console log or under network if you have it open while you save and publish?

    /Jan

  • keilo 568 posts 1023 karma points
    Nov 08, 2014 @ 10:52
    keilo
    0

    Hi Bjarke

    I encountered this exact problem, when I upgrade from 7.1.4-> 7.1.6 and to 7.1.8 using MSSQL2008 on W2008.

    Now when a page is loaded where a Macro is inserted (whether Render in RTE is checked or not), the orange dashed border is not visible and simple shows the name of the macro. When I save and publish the page without touching anything then the orange dashed border becomes visible.

    This becomes a major inconvenience as editors cant click on the macro to edit it, they have to first click save and publish where the border becomes visible, then they can only click and edit the macro parameters.

    No one else encountering this??

    Have you made any amendment to tinmyce.config, curious why this is occuring, maybe there is a pattern? 

  • Bjarke Petersen 15 posts 113 karma points
    Nov 10, 2014 @ 09:28
    Bjarke Petersen
    0

    Hi Jan and Keilo,

    Thanks for your replies.

    @Jan: Yes, I have checked both the "Use in rich text editor" and "Render in rich text editor" in the macro properties. When I navigate to the backend /umbraco/# - I get this exception (first time):

    Exception was thrown at line 18, column 70 in http://localhost:53826/umbraco/lib/angular/1.1.5/angular.min.js
    0x800a139e - JavaScript runtime error: No module: ngLocale
    

    @Keilo: No, I havn't touched the tinymce.config

    I think it might originate from me trying to use DevExpress MVC components... In the layoutView (frontend) I need to attach some required JavaScript files:

    @Html.DevExpress().GetScripts(
                            new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.NavigationAndLayout },
                            new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.HtmlEditor },
                            new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.GridView },
                            new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.PivotGrid },
                            new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.Editors },
                            new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.Chart },
                            new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.Report },
                            new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.Scheduler },
                            new DevExpress.Web.Mvc.UI.Script { ExtensionSuite = ExtensionSuite.TreeList }
        )
    

    The strange this though is that it renders fine in the RTE until I puiblish it. It renders fine on the frontend...

    edit: If I uncheck "Render in rich text edit" it still disappears after publish (the orange frame is not rendered in the RTE)???

    BR Bjarke

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 10, 2014 @ 21:40
    Jan Skovgaard
    0

    Hi Bjarke

    Is it possible for you to try and disable the DevExpress framework to see if it then works like it should? Just to figure out if it's the framework that's causing it or not.

    /Jan

  • Bjarke Petersen 15 posts 113 karma points
    Nov 11, 2014 @ 10:56
    Bjarke Petersen
    0

    Hi Jan,

    Yes, it works as it should if I use a macro without DevExpress:

    Before publish:

     

    After publish:

     

    I would really like to use the DevExpress components, but I have no idea as to how I can...

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 11, 2014 @ 16:51
    Jan Skovgaard
    0

    Hi Bjarke

    I don't know much about DevExpress. But I suppose it handles minification of javascript and css files? If so...have you considered using the baked in ClientDependency framework in Umbraco instead?

    If so you can read more about it here https://github.com/Shandem/ClientDependency/wiki

    /Jan

  • Bjarke Petersen 15 posts 113 karma points
    Nov 12, 2014 @ 10:14
    Bjarke Petersen
    0

    Hi Jan, Thanks.

    The funny thing is that if I look at the code in the RTE immediately after inserting the macro it looks something like this (and renders in the RTE):

    <div class="umb-macro-holder Csi Entry mceNonEditable umb-macro-mce_0"><!-- <?UMBRACO_MACRO macroAlias="Csi Entry" csifolder="1088" /> --><ins>
    <p>the currentpage.name: 1088</p>
    <br /></ins></div>
    <p> </p>
    

    After publishing it looks like this (and doesn't render <!--):

    <!--?UMBRACO_MACRO macroAlias="Csi Entry" csifolder="1088" /-->
    <p> </p>
    

    It still renders fine on the frontend regardless

Please Sign in or register to post replies

Write your reply to:

Draft