Copied to clipboard

Flag this post as spam?

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


  • Paul D'Ambra 10 posts 81 karma points
    Jun 30, 2017 @ 16:09
    Paul D'Ambra
    0

    Macros in a grid editor don't render on unpublished pages

    We're running Umbraco 7.5.3

    We have a grid layout into which the customer can put various macros.

    If the page has never been published then the Macros don't render in the editor. After publish the macros render fine.

    The macros

    • render via an MVC partial view.
    • are set to "Use in rich text editor and the grid"
    • and to "Render in rich text editor and the grid"

    Is this an known issue or...

  • Paul D'Ambra 10 posts 81 karma points
    Jun 30, 2017 @ 16:15
    Paul D'Ambra
    0

    Additionally...

    If I click to edit one of the macros then it's settings show correctly and if I preview the page then it renders as expected.

    So this is only affecting rendering in the editor

  • Paul D'Ambra 10 posts 81 karma points
    Jun 30, 2017 @ 16:32
    Paul D'Ambra
    0

    and the data we need to render it is actually in the page

    <div class="umb-control ng-scope" ng-repeat="control in area.controls" ng-click="clickControl($index, area.controls, area)" ng-class="{'-active': control.active}" on-outside-click="clickOutsideControl($index, area.controls, area)" bind-click-on="false" umb-set-dirty-on-change="{&quot;macroAlias&quot;:&quot;articleFeatureBox&quot;,&quot;macroParamsDictionary&quot;:{&quot;imageId&quot;:&quot;2925&quot;,&quot;imageCaption&quot;:&quot;sfa sdasddas&quot;,&quot;imageAlignment&quot;:&quot;left&quot;,&quot;text&quot;:&quot;&amp;lt;p&amp;gt;sd asda sdads asd adsa&amp;lt;/p&amp;gt;&quot;,&quot;textColour&quot;:&quot;&quot;,&quot;backgroundColour&quot;:&quot;&quot;,&quot;ctaLink&quot;:&quot;[\n  {\n    &amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,\n    &amp;quot;meta&amp;quot;: {\n      &amp;quot;title&amp;quot;: &amp;quot;&amp;quot;,\n      &amp;quot;newWindow&amp;quot;: false\n    },\n    &amp;quot;typeData&amp;quot;: {\n      &amp;quot;url&amp;quot;: &amp;quot;&amp;quot;,\n      &amp;quot;contentId&amp;quot;: null,\n      &amp;quot;mediaId&amp;quot;: null\n    },\n    &amp;quot;disabled&amp;quot;: false\n  }\n]&quot;,&quot;ctaTextColour&quot;:&quot;&quot;,&quot;ctaBackgroundColour&quot;:&quot;&quot;}}">
    <div class="umb-control-click-overlay" ng-show="!control.active &amp;&amp; !sortMode"></div>
    <div class="umb-control-collapsed umb-control-handle ng-binding ui-sortable-handle" ng-show="sortMode" style="display: none;">
        Feature Box
    </div>
    <div class="umb-control-inner" ng-hide="sortMode">
        <div class="umb-control-bar umb-control-handle ui-sortable-handle">
            <!-- ngIf: control.active -->
            <!-- ngIf: control.active -->
        </div>
        <!-- Redering the editor for specific control -->
        <!-- ngIf: control && control.$editorPath -->
        <div ng-if="control &amp;&amp; control.$editorPath" ng-include="control.$editorPath" class="umb-cell-macro">
            <div ng-controller="Umbraco.PropertyEditors.Grid.MacroController" class="ng-scope">
                <div class="umb-editor-placeholder" ng-click="setMacro()">
                    <!-- ngIf: !preview -->
                    <div ng-if="!preview" class="ng-scope">
                        <i class="icon icon-settings-alt"></i>
                        <div class="help-text ng-binding">articleFeatureBox</div>
                    </div>
                    <!-- ngIf: preview -->
                </div>
                <!-- ngIf: macroPickerOverlay.show -->
            </div>
        </div>
    </div>
    

  • Paul D'Ambra 10 posts 81 karma points
    Jul 03, 2017 @ 07:41
    Paul D'Ambra
    0

    Actually, if I sit and publish and unpublish the content then the macro in the editor renders or not depending on whether the content is published...

Please Sign in or register to post replies

Write your reply to:

Draft