Form with dynamic layout

So, I’m trying to adapt my old apps into the new MD3 Beta and the Routing Dependency.

I currently use the routing module from anvil-extras in all my apps. Also, I have a “core project” where all my base components and a few common pages stay.

So, let’s say that I have a Blog project and a Store project, both with different designs and layouts. Also have my Core project, which has a login and a user settings page that are common to both other projects.

Using the current setup, to use my login and user settings page I would annotate both with a specific common route and in each app import them in the form that has the template that I want to use the page with. This works great!

Now, with layouts, you need to specify in the designer which layout are you using for that page so that you build it in the slot you want.

Is there ANY way that I can replicate what I did with the old way of the hash routing, where I specify the page, but also which layout/slot I want that page to be inserted when routing?

Have you read the migration docs for routing?

there’s a section about migrating from hash routing:

https://routing-docs.anvil.works/migrating/#from-anvil_extrasrouting-hashrouting

1 Like

I was reading as I was doing it but somehow missed the entire section that mattered the most to me! Thanks for pointing out and sorry for asking something that was already covered in the docs!