Skip to content

Use Learn content viewer when available#526

Draft
manuq wants to merge 2 commits into
masterfrom
T34740-content-viewer
Draft

Use Learn content viewer when available#526
manuq wants to merge 2 commits into
masterfrom
T34740-content-viewer

Conversation

@manuq
Copy link
Copy Markdown
Collaborator

@manuq manuq commented May 9, 2023

@manuq manuq force-pushed the T34740-content-viewer branch from 584729d to 6d84a1f Compare May 11, 2023 11:28
If the Learn plugin is present, build a URL with the content ID and
navigate to it. Also pass the current location as URL parameter. If the
Learn plugin can handle that parameter, it should use it to navigate
back.

If the Learn plugin is not present (no URL matching) display the content
in a lightbox modal as before.

https://phabricator.endlessm.com/T34740
@manuq manuq force-pushed the T34740-content-viewer branch from 6d84a1f to b13806f Compare May 11, 2023 12:20
@manuq manuq marked this pull request as ready for review May 11, 2023 12:20
@manuq manuq changed the title wip Use Learn content viewer when available May 11, 2023
Don't open the detail page in the custom channel presentation. Instead
navigate to content. Which will show it in the Learn detail page if that
plugin is available.

https://phabricator.endlessm.com/T34740
@manuq manuq requested review from GeorgesStavracas and jprvita May 12, 2023 15:48
@manuq manuq marked this pull request as draft May 12, 2023 15:48
@manuq
Copy link
Copy Markdown
Collaborator Author

manuq commented May 12, 2023

Asking for early feedback! Marking it again as draft because I don't think we want this until we sort out the Kolibri side. See ticket for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant