Forum Stats

  • 3,874,219 Users
  • 2,266,685 Discussions
  • 7,911,771 Comments

Discussions

Customize Page and Public User

mwooldridge
mwooldridge Member Posts: 167 Bronze Badge
edited Dec 13, 2012 2:00PM in APEX Discussions
Is there a way to have a public home page that has customize regions but keep the customize for authenticated users only?

I have a home page that has customize regions that does not require authentication. The customize link displays when the user is nobody, I would like to hide/disable this capability for non-authenticated users.

Answers

  • fatehcis-JavaNet
    fatehcis-JavaNet Member Posts: 821
    edited Dec 13, 2012 12:57AM
    Hello,

    Why do not you rely on Region Display Selector, and ignore the Customize Link.... If you agree with me, then:
    Please edit your page template and delete :
    div id="customize">#CUSTOMIZE# div>
    Edit the region of Region Display Selector and add condition type:
    User Is Authenticated not public
    Best Regards,
    Fateh
    ------------
    If you believe that my answer is correct or helpful to you then please mark the answer as helpful or correct
  • mwooldridge
    mwooldridge Member Posts: 167 Bronze Badge
    note sure what you mean. it looks like you are suggesting a div tag around the customize link in template, but how is the region display selector going to use this?
  • fatehcis-JavaNet
    fatehcis-JavaNet Member Posts: 821
    edited Dec 13, 2012 12:58AM
    Hello,

    Ok, no problem. You do not need to remove that DIV from the page template.
    When you edit a region you can choose Customization. Make it : Not Customizable By End Users
    Under Attributes, choose YES for Region Display Selector.
    Then Create a new region of Region Display Selector type.
    Edit the region of Region Display Selector and add condition type:
    User Is Authenticated (not public)
    I hope that it is clear now..

    Best Luck,
    Fateh
  • mwooldridge
    mwooldridge Member Posts: 167 Bronze Badge
    yes, I thought if having duplicate regions, was hoping for a more elegant solution where the customize capability was not available to un-authenticated users.
  • Hello,
    I thought if having duplicate regions
    Why to have Duplicate Regions ?? No one said this ??


    Best Regards,
    Fateh
  • mwooldridge
    mwooldridge Member Posts: 167 Bronze Badge
    I want all the regions to be customizable if you are authenticated, but not if you are public.
  • fatehcis-JavaNet
    fatehcis-JavaNet Member Posts: 821
    edited Dec 13, 2012 12:03PM
    Hello,

    Please visit this page (That is public ) - here you cannot customize the regions
    http://theexecutivetowers.info/apex/f?p=121:1:
    You do not see the region that allows you to customize the rest of the regions.

    Now, click on the Not Public TAB and Login using:
    User: test
    pwd: test2

    Then move the first page by Clicking on the HOME Tab
    Now, You CAN SEE the region that allows you to customize the rest of the regions.

    Is not this what you need ???

    Regards,
    Fateh
  • mwooldridge
    mwooldridge Member Posts: 167 Bronze Badge
    I do not see the customize link in the bottom right of the screen. I am using the built in customize feature of APEX that lets the user decide if they want the region displayed or not.
  • Mark,

    Have you tried hiding the "Customize" link on page load with JQuery based on whether the user authenticates as "nobody"?


    --Keith Malay
  • fatehcis-JavaNet
    fatehcis-JavaNet Member Posts: 821
    edited Dec 13, 2012 2:00PM
    Hello,
    I do not see the customize link in the bottom right of the screen
    I mentioned that this is another approach that is newer and much more elegant. Anyway,
    You can create a dynamic action (Perhaps, on page zero):
    Action: Hide
    Event: page Load
    Selection Type   jQuery Selector
    Affected Elements    a:contains("Customize")
    Under Condition Regoin
    Choose Condition Type: User Is The Public User (User has not authenticated)

    You can see the demo on the same link in my previous post

    Best Regards,
    Fateh
This discussion has been closed.