Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets structure in themes #144

Open
l3xtrue opened this issue Jan 12, 2016 · 2 comments
Open

Assets structure in themes #144

l3xtrue opened this issue Jan 12, 2016 · 2 comments

Comments

@l3xtrue
Copy link

l3xtrue commented Jan 12, 2016

I've been looking both documentation and google and I have not found information on how to incorporate themes in assets within the bundles so that the command "assets: install" install them in the web directory only from active theme.

If you placed them in Acme / DemoBundle / Resources / public / themes / current_theme / install all files from all themes but if I was within the theme folder Acme / DemoBundle / Resources / themes / current_theme / public / not copy anyone.

What is the correct structure? Do I need to configure anything else?

Thank you

@julestruong
Copy link

i second that

@KoriSeng
Copy link

KoriSeng commented Dec 9, 2017

For the themes can consider the following implementation

https://gist.github.com/7thcubic/701c0ff6aaa85511e80da5aece5bb798

https://gist.github.com/7thcubic/1817a6c83dd92189d8af76298243a6f1

after which it can be used like so.

  <link href="{{ asset('css/bootstrap.css' | theme ) }}" rel="stylesheet">

basically it will add /themes/currenttheme to the 'css/bootstrap.css'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants