Comments (3)
Can it be confirmed if this can be done universally throughout all the pages in the twill admin?
At the moment I would have to edit each of my models views and add the extra css/js in the push statements. And what about other pages of the admin like the home/welcome page?
from twill.
Definitely, checkout the Blade stack we added to the head partial here:
twill/views/partials/head.blade.php
Line 19 in 19e6f8f
Using the following in your views, you can drop inline CSS or a link to a file:
@push('extra_css')
<style>
// some inline CSS
</style
@endpush
We also have a stack for blocking JS in the head and JS at the end of the document:
twill/views/partials/head.blade.php
Line 20 in 19e6f8f
twill/views/layouts/main.blade.php
Line 103 in 19e6f8f
Feel free to create your own layout file to use in all form.blade.php
files of all your modules if you're looking to apply your extra CSS/JS globally.
from twill.
Perfect, thank you.
from twill.
Related Issues (20)
- Login form action is rendered to blade and sent in http in an https context HOT 5
- Accessing model data in repeater HOT 2
- TypeError: argument of type 'function' is not iterable HOT 1
- User listing errors when deleting a role
- Multiple JSON repeaters (of the same type) in one form
- FormBuilder Repeaters capable of handling Media through Pivot?
- FormBuilder Inline Repeater doesn't allow for single deletions HOT 1
- [permissions-management] Call to a member function permissions() on string HOT 1
- Cli module creation produces files which do not follow the enable position parameter HOT 3
- Integrity constraint violation: 1048 Column 'active' cannot be null HOT 3
- View not found when run php artisan twill:blocks HOT 3
- Multiple NestedData columns all show final entry's relations. HOT 1
- Repeater number squishes up sometimes when using @twillRepeaterTitleField
- Installation failed HOT 2
- Formbuilder does not allow step() method
- CLI commands to remove modules/blocks/... HOT 1
- $item->ancestorsSlug returns items in reverse order? Issue with HasNesting trait
- Running twill:build when using a custom icon leads to an ErrorException caused by copy function because of missing target directory
- Need Filter In List Page HOT 1
- Different datetime format parsings => format conflicts when using configuration "publish_date_display_format"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twill.