Perspective: Disable Header and Menu for Specific Pages in Ignition

Hello Ignition Community,

I'm looking for some assistance with customizing my Ignition project. Specifically, I want to disable the header and menu for certain pages to display them in full screen.

Here’s what I’ve tried so far:

  • I attempted using the event onStartup with a fullscreen script, but unfortunately, it didn't work as expected.

Could anyone provide guidance or suggest a method to achieve this? I appreciate any help or suggestions you can provide.

Thank you!
Screenshot 2024-05-31 100751

See if adding system.perspective.toggleDock | Ignition User Manual in the onStartup script will do it. (I don't know.)

Add exactly the same view in your individual page as a dock in the same spot as the global one, but set it to be on demand. You'll see two docks with the same name in the page but the local one will override the global and it'll hide

5 Likes

It works. Thank you :pray: :pray:

Could you elaborate on this?

Which view do you refer to?

And what do you mean by "on demand"?

Edit: I figured it out! Easier than I thought. But, I have a follow up question: Why does Perspective still display the Menu after I have renamed it AND moved it into another folder? That was my first attempt at hiding it.

I assume you mean you renamed the View that the dock uses and you moved the View into another folder in the project tree?
If the page is still displaying it after renaming and moving, either you've got the wrong View or your client hasn't updated yet

How would you do it on a breakpoint container? As an example, my home page is a breakpoint container, I would like the dock for the larger (desktop view) and have it hidden on the smaller view.

Thank you

Yes me too, I have the same question... Currently it's not possible to do this nicely, but you can kind of hack it to work by calling the close dock function in a change script on the dock itself, bound to the primary view shown as well as the width of the viewport. You will see the dock bounce in and out when changing pages so it's a very crap, but it does "work".

The only other way, without possibly using JavaScript, is by creating a new url for mobile

1 Like

That's a bit annoying.

For the creating a different URL for mobile method, how can i direct the mobile devices to a different url (other than home) when the perspective app is launched

You should be able to bind to the viewport width in your pc header and if it's a mobile width, then navigate to the mobile version :confused: every solution is dopey... I'm a bit baffled why more people haven't brought it up tbh. I've only just recently done my first responsive project, so hence why I only posted about it all a month or so ago. I also went to support about not being able to alter the height of a dock for mobile permanently, and they basically said yeah, that's how it is, and provided a less than ideal workaround. It just seems bizarre

1 Like

I see, I am working with perspective/IA for the first time. Thanks for your input Nick!

Don't get me wrong, I've used my fair share of scada platforms over 15 years and Ignition beats them all hands down. But even great software has its quirks