Automatically creating Perspective Navigation

Ok, here’s my take on how to tackle this. Rather than add a scripting function, instead, I’d like to inject information about the current project into session props. I’m thinking an object at session.props.project that would be shaped like this:

{
  name: string,
  title: string,
  description: string,
  lastModified: date,
  lastModifiedBy: string,
  views: array< { path: string} >,
  pageConfigs: array< { url: string, primaryView: string } >
}

It’s a bit odd to have “views” be an array of objects with only one attribute in them, but I figure that way it’ll be more flexible in the future if we want to add more information in about each view.

Thoughts?

2 Likes