2 years ago

Same view for multiple layouts

Posted 2 years ago by kgp43


I'm working on a configurator for a product, it let the user configure some product settings, that is saved into a db table.

I got a public and members area and would like to give access to the configurator view in both areas (public and member).

How can I do that? My view extends just one layout.

In the example below, the view extends the members layout:


But I also have a layout to the public area.

I guess the extends will look like this:


How do you normally handle views, when they are used in different layouts? Do you copy the view and just have two? But then you need to edit two files... i dont like that.

Please sign in or create an account to participate in this conversation.