caffeinated / themes

:art: Laravel Themes package with support for the Caffeinated Modules package.

Home Page:https://caffeinatedpackages.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamically Extension of Parent Views

opened this issue · comments

Hi @kaidesu,

how can I extend a dynamic view ? For example:

In my CMS I have a module "Core". This module integrate for example the view "core.index" and extend the theme "bootstrap::master".

How can I make "bootstrap" dynamically based on the selected customer layout in backend ?

Greetings.

No suggestion ?

commented

This is undocumented, but you have access to a variable called $theme_layout in all your view files. This variable will automatically update depending on the current theme and layout of you define within your application.

So, you'll be able to use @extends($theme_layout).

Hope this is what you were looking for! And sorry for the delay in a response.