Copied to clipboard

Flag this post as spam?

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


  • Roger 14 posts 34 karma points
    Jul 09, 2014 @ 22:00
    Roger
    0

    Partial Views macro not loading with Public Access settings enabled

    I created my site using umbraco 7.214 mvc. I created a base page and a home page and 5 sub topic and sever pages under each topic. I created a MainNavigationcshtml.cshtml scripting file and partial view to load the slider slides from the medial folder, add the macros and all is working fine.

    Then I set up my login page and set the public access settings to allow allow member group to have access to the site. the login works fine, but the home page both the Umbraco.RenderMacro stopped working. I am assuming that the this may be conflict with .net sercurity. I looked at the webconfig in botth the root and the views, and macroscript folder and did not see anything a miss. If I remove public access settings all works fine,

                            <div id="homeScreen" class="row">
                                <div id="sliderWrap" class="row">
                                <div class="royalSlider rsDefault">
                                     @Umbraco.RenderMacro("BannerSlides")
                                </div>
                                    </div><!--end sldier wrap-->
                                <div class="navWrapper" class="row">
                                     <div class="navBGWrap">
                                            <div id="button1BG" class="buttonbg current">
                                                <img src="images/current-arrow.png" alt="current" class="currentArrow" />
                                                <div class="box"></div>
                                            </div>
                                            <div id="button2BG" class="buttonbg"><div class="box"></div></div>
                                            <div id="button3BG" class="buttonbg"><div class="box"></div></div>
                                            <div id="button4BG" class="buttonbg"><div class="box"></div></div>
                                            <div id="button5BG" class="buttonbg last"><div class="box"></div></div>
                                        </div><!--navBGWrap-->
                                    <div class="mainNavWrap">
                                             @Umbraco.RenderMacro("MainNavigationcshtml")
                                        </div><!--mainNavWrap-->
                                   </div><!--end nav wrapper-->
                            </div><!--end home screen-->

  • Robert Foster 459 posts 1820 karma points MVP 2x admin c-trib
    Jul 21, 2014 @ 15:57
    Robert Foster
    0

    Hi Roger,

    There should normally be no conflict with the macros and public settings, although I'd need to know more about your tree and what you're protecting.  Are you able to paste in a screenshot of your content tree, and the error (if any) you're encountering?

    - Rob.

Please Sign in or register to post replies

Write your reply to:

Draft