My Goal
I would like certain external (non-logged in) users of an app to see different data based on the URL link that is sent to them by internal users. This could easily be accomplished by creating multiple pages (tabs), then filtering the collection on each one as desired and then creating a system to select the page/tab that they want the external user to see. But that can be tedious to create and doesn’t work in every situation I’m envisioning. I want to do something that is dynamic.
Explanation
Here’s the scenario. Internally, teams are divided up, let’s say they are called Team Alpha, Team Beta, Team Gamma. And each team has different items that they are managing. Internally, one can use the Users table to set roles and have one page for “team items” that display different items depending on the user’s team as set by the role column. (Alpha members see items tagged Alpha, Beta sees Beta tagged items, etc).
But I also want say, team Alpha, to be able to send a similar page to external users and the external users sees just those Alpha items without the external user having to be logged in or select anything…it just shows the Alpha items or the Beta items by default. Conceptually, if the url of the page was accessible as a filter, that would work.
For example if the url was http://myapp.example.com/dl/TEAM?Alpha
you could filter the collection where the end of the url value equals a value in the table. And you could use a template column so that the same url for the page with the slug TEAM appends a different value at the end depending on the role of the person sending the url (I.e. team alpha members, when they send the url are automatically sending a url with “alpha” in the address).
I don’t think this approach is currently possible, right? If that’s true, is there another way to create what I’m talking about? I.e. that an internal user generates a link to a page that shows different data based on the internal user’s role (or some other variable)?