-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make docLinks only visible for logged users #834
Comments
@plhnk can you send me an example so I can do it? please :) |
Hahaha hm... this is a little tough. Currently we only have PrivatePage — but I feel like it wouldn't be too difficult to make something like PrivateComponent using similar logic? I've had similar thoughts recently about opening up the blueprints site, but restricting only the content, not the navigation. Thinking aloud — PrivateComponent would show data if user is logged in, otherwise would display a 🔒...hovering (or clicking) would display a tooltip that says something like "for Liferay employees only, log in to view this content". Thoughts? Other ideas? |
I was just planning on a show/hide content based on user status. In our case, that barrier is set by Google Drive. It will request you to log with a user account. But any of us who created a document will be receiving emails requesting to check internal documentation. I find your solution good as it will show the path to employees :) |
Can we consider this done @plhnk ? |
@victorvalle — sorry I never logged my thoughts, I want to add a tooltip to the component that will make it easier for people to understand what the lock means and what action to take next — this requires:
So — thats why I haven't closed it yet, a bit of yak-shaving to be done yet! |
A few days ago we created docLinks to internal documentation in Drive. I'm receiving a ton of requests from outsiders to these links.
Would it be possible to show them just for logged users as they point to internal documentation?
The text was updated successfully, but these errors were encountered: