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

Control layout mode via URL parameter and/or default config #346

Open
thejjw opened this issue Sep 2, 2021 · 2 comments
Open

Control layout mode via URL parameter and/or default config #346

thejjw opened this issue Sep 2, 2021 · 2 comments
Labels
enhancement New feature or request Points: 5 5 agile story points timescale/short-term Becomes timescale/imminent in weeks or months

Comments

@thejjw
Copy link

thejjw commented Sep 2, 2021

Hello,

As a system administrator/user who hosts our own ATT&CK Navigator instance, I’d like to present users an option to generate navigator url to be shared that can set layout options (show id, show name, mini, side, flat layout).

e.g. If a user wants to host iframe with navigator src url that only shows id and not name, they can use src url like:
http://localnavigator/#layerURL=http%3A%2F%2Flocalnavigator%2Flayer.json&showName=false&showID=true
or to use layout like mini:
http://localnavigator/#layerURL=http%3A%2F%2Flocalnavigator%2Flayer.json&layout=mini

I see such variables are already present as properties of viewModel.layout…but I cannot easily find a way to have them embed such properties as url or modify some config switch from host side. Is it somehow possible in current v4.3 navigator?
If not, could you consider adding such features?

Thanks.

@isaisabel
Copy link
Contributor

Hi @thejjw,

This is a really interesting idea and I can definitely see how it would be helpful. It's not possible in the current application unfortunately, but I think we could add it in an upcoming release if we position it as an "override."

  • New layers opened in the application would get that config by default (see also Default technique state #123)
  • Existing layers opened in the application by any means would have their config replaced with any overridden config settings (e.g layout=mini)
  • An additional setting, "allow changes to overridden fields" (default true) would allow the user to disable customization of fields which are overridden. So that way you could set it to the mini layout and disallow users from editing that value (at least not without changing the override settings in the query string).

@isaisabel isaisabel added enhancement New feature or request Points: 5 5 agile story points timescale/short-term Becomes timescale/imminent in weeks or months labels Sep 2, 2021
@thejjw
Copy link
Author

thejjw commented Sep 2, 2021

@isaisabel That would fit my need perfectly. Thanks for consideration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Points: 5 5 agile story points timescale/short-term Becomes timescale/imminent in weeks or months
Projects
None yet
Development

No branches or pull requests

2 participants