show header on some skuid page overrides but not others?

  • 1
  • Question
  • Updated 3 years ago
I'm using page overrides and page assignments on my opportunities, so different record types get different skuid pages (and some not at all). 

I'd like to kill the salesforce header, but only for some skuid pages, is that possible? I know that setting is on the VisualForce Page that I'm using for my override, can I put the showheader="false" in an IF statement based on record type? Has anyone tried that?
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,270 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
I haven't worked with it much, but the latest version of Skuid has page settings for turning off the Salesforce header and or turning on a custom Skuid header. I would assume this could replace your VF code to suppress the Salesforce header. This would allow you to delete the header suppression in the VF page and utilize the Skuid page setting for Salesforce header on/off for each Skuid page, not sure if it will work, but I built a test page to play with it and it worked for me.
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,270 Points 5k badge 2x thumb
If you're using overrides, i.e., anytime you open an Opportunity it takes you to a skuid page, it will always serve up the VF page, and whatever is on there will take precedent over what's on the skuid page. I have show Salesforce header turned off and it works when I preview from the Page Builder, but when I navigate to an Opportunity from within Salesforce, it shows the header because I don't have showheader="false" on my VF page. 
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Ah....I see. I didn't get that far. Is the reverse true? If you have false on the VF, but the Skuid page set to Salesforce header on, does the Skuid page force the Salesforce header back in? That may get the job done.
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Disregard. That won't address your issue.
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,270 Points 5k badge 2x thumb
yeah nope. VF page always takes precedent. Thanks for trying though!

I think there's a way to do a check for the record type from the VF page, but I think I will have to use an Apex Class extension and call an Action that way.

This is for a small subset of our instance, so I may just hard code all possible links to the Opp detail page from our Opp Tab page so that they go to a specific page and not trigger the Opp View override. 

Though if anyone has figured this out would be happy for a better long term solution. :)
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Not sure if you found an answer, but I stumbled across this tutorial that shows two ways to display a Skuid page in VF. It talks mostly about . At the end it says that if you use that method, the header settings of your Skuid page will be ignored. Perhaps you could try the other method (redirect) and the header settings would be implemented????
http://help.skuidify.com/m/page-assig...