This extension allows you to do more.
How to use
Using this extension is very easy. Just install it from Pagekit's marketplace.
After enabling the extension, you can click the "Assets" icon in your backend-menu.
You can now choose between the global configuration (settings), which allows you to enable or disable the caching mode or stay on the assets-page, where you can see your existing assets or add some.
You now might choose the source:
- Save Content To File
If you are choosing Save Content To File all the content you added to the editor is saved to a file. You can specify the
filename if you want to. By default the filename is the same as the asset's slug.
Using this method, you can choose
async execution. Using "URL"-type, you can include scripts provided by CDN and execute them
Please notice: Please do not add
<style> tags to the content-editor. These tags are being added automatically.
The Visibility-tab allows you to specify, on which nodes the asset should be added.
Let's assume you need some CSS to change the margin of an element that is only existing in your blog's view. You could add this CSS to the site globally or you could use this extension, create an asset and choose the Visibility-tab to add this CSS only to your blog.