Copied to clipboard

Flag this post as spam?

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


  • Shaun 248 posts 475 karma points
    Jan 14, 2010 @ 14:41
    Shaun
    0

    Hardcoding public access properties of nodes

    Hi.

    When assigning public access on a node you are asked to give a login page and an error page. I've been asked by a client if these values can be hardcoded into his umbraco installation.

    I know how to set these values in controls that I build - using ProtectPage, but have never tried to mess with anything "core" before. Is there a config setting I can use to set them across an entire umbraco site?

    Many thanks.

     

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jan 14, 2010 @ 21:31
    Douglas Robar
    1

    I suppose you could do it with an event handler. But is it really so difficult to select the login and error pages when activating the public access? Remember that you only need to set it on the top-most protected item and all its sub-pages will also be protected. Depending on your content tree structure you could make your work easier or harder... maybe you could re-organize your content to simplify things?

    cheers,
    doug.

  • Shaun 248 posts 475 karma points
    Jan 15, 2010 @ 05:32
    Shaun
    0

    Hehe, I agree. If it were up to me I'd tell them to put up and shut up. Unfortunately the content tree structure requires all these pages to be at the same level, as in taxonimic terms they don't really group together properly. I think you're right though, in most situations I'd try to reshuffle them a bit.

    I'll look into the event handler idea though, thanks for your help!

  • Mouhot 9 posts 29 karma points
    Jul 28, 2010 @ 16:58
    Mouhot
    0

    hi Shaun

    Did you come up with a solution ? cause I've the same problem and I was wondering whether the event handler solution is easy?

    cheers

    pierre

     

  • Justin Spradlin 139 posts 347 karma points
    Sep 24, 2011 @ 00:18
    Justin Spradlin
    0
Please Sign in or register to post replies

Write your reply to:

Draft