Forum Discussion

jordanepotter's avatar
12 years ago

Custom Page Permissions

We created a new page type using the steps from this link: http://lithosphere.lithium.com/t5/developers-knowledge-base/Creating-a-Custom-Page-in-Lithium-Studio/ta-p/6254

 

We want at least some of these pages to redirect a user to login if they are not logged in yet, but we cannot seem to find these pages in the Admin tool. Is there a way to set permissions on these pages, or another way to redirect these pages on login?

2 Replies

  • HaidongG's avatar
    HaidongG
    Lithium Alumni (Retired)
    12 years ago

    Hi jordanepotter, 

     

    I am not sure whether you can do it via the GUI, but definitely you can do it via some custom code.

     

    if you have any engagement with Lithium Services, you can definately ask them to add some server side redirect when a anonymous user accesses the page.

     

    if you are fine with client side redirect with JavaScript, you may just need to create a custom component in the page like 

    <#if user.anonymous>
       //your javascript code to redirect..
    <#else>
    // your real page content </#if>

     

  • Hi jordanepotter,

     

    Permissions need to be set against a specific board/node rather than a page type - have you created a page in the community that uses the custom page type?