Convert from standard page to panel form?

I started a new project, creating a standard page without thinking about it. Now that it’s finished and working beautifully, our webmaster wants to drop it in to our web site using our own header graphics/icon. It was then and only then that I realized I couldn’t use the form editing tools to “delete” the top bar and sideboard navigation… arrrrgggghh!!!

Please tell me there’s a way to get rid of the baked in navigation bars, effectively changing the form to a blank panel? I really don’t want have to create a new blank panel and recreate all the visual form items!

Please help!

Thanks,
Heidi

P.S. Please don’t link to the articles about best practices for building navigation off the main form. I know all that. Now.

1 Like

The template is just standard HTML. If you select the form and look in the properties, there is an html property and an edit button :

image

That standard-page.html contains all the markup for the header and sidebar. There is also a “theme.css” file you can edit if required.

As to how to remove it all effectively and safely, I’ve never done it and can’t help there. Sorry.

1 Like

Thanks @david.wylie ! I’ll poke around at the html if no other solutions come up!

I think the html is your best bet. Give it a try

1 Like

When I started building apps with anvil, I also built an app without knowing the difference between the standard page and blank panel. So I’m just replying to this old thread in case anyone else runs into the same issue and would like an easy fix. To change a standard page back to a blank panel, simply click on edit next to the standard-page.html property.
image

Create a new html file and call it whatever you wish. I called mine standard_to_plain.html. Keep the new html file empty.

Then lastly, back to your form properties, set your html template to your new blank template.
image

Everything that I had in my original app was still there except for the side-bar and top-bar.

Not sure if this might cause issues down the line, but for the time being it worked for me.

1 Like