Skip to content
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

Question: Detect if visitor is using external review feature and display unpublished project links #248

Open
MikaelPorttila opened this issue May 21, 2024 · 1 comment
Labels

Comments

@MikaelPorttila
Copy link

Hello, Im trying out your addon and noticed that our navigation bar does not reflect the current project link-hierarchy and I can only assume that IContentLoader.GetChildren() will never give back drafted pages within an epi content project.

My goal is to make the external reviewers life easier by finding a work-around which allows us to reflect the project changes on the page and allow reviewers to see and access the new pages directly from the navigation bar.

My questions are:

  1. Does the addon set an indicator flag on the request object which tells us that the page view was done by a reviewer?
  2. Is there another flag which tells which project is being reviewed?
  3. And also if there are any known epi-apis which allows me to fetch pages and include drafted pages for project?

Thanks in advance!

@barteksekula
Copy link
Member

@MikaelPorttila All your questions should work. We are intercepting all calls to IContentLoader. Get & GetChildren are being intercepted.
We have an internal object which holds information whether the generated token is project specific or not.
https://github.com/advanced-cms/advanced-reviews/blob/master/src/Advanced.CMS.ExternalReviews/ExternalReviewState.cs#L20
If something does not work then please post more details.

@barteksekula barteksekula added question Further information is requested triage and removed question Further information is requested labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants