Skip to content
Grav 2.0 is officially stable. Read the announcement →

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Scrollbar missing (Chrome) · 10 years ago

    Today i had a strange issue with suddenly missing scrollbars in the admin environment. What did i do just before this happening.?!?!? I realized the Asset collection options, was one thing where i ch

  • Display multiple images in default.md · 10 years ago

    Just found the solution in the Recipes! need to user {{image.cropResize(300,200).html}} which is all twig I think?

  • Display multiple images in default.md · 10 years ago

    Just started to investigate GRAV. Created my own theme using pure. What I want to do is resize the three images I have loaded in the page. Can't seem to figure it out? {% for image in page.media.imag

  • How to add a Javascript script for every Item pages · 10 years ago

    You need to make sure the src-attribute correctly points to an existing path and file, for example: <script type=“text/javascript” src=“{{ theme_dir }}/scripts/hashover/hashover.js”></script&

  • How to add a Javascript script for every Item pages · 10 years ago

    It does not seem to work when I simply add <script type=“text/javascript” src=“/hashover/hashover.js”></script> To item.html.twig Do I need to add { block JavaScript} before and after ?

  • How to add a Javascript script for every Item pages · 10 years ago

    They should be in the theme folder, as the root folder is fairly much a reserved folder for the system. Clearing cache could delete the script if located in root (if memory serves me right).

  • How to add a Javascript script for every Item pages · 10 years ago

    Thanks. One final question : my script files have to be in the theme folder or I can put them in my grav root folder ?

  • How to add a Javascript script for every Item pages · 10 years ago

    That is the simplest way to go, as you do presumably not need or want the script to be loaded on all pages. Adding it to item.html.twig, for example, loads it only on pages using this template. If loa

  • How to add a Javascript script for every Item pages · 10 years ago

    Thanks for your answers. So I can simply add <script type="text/javascript" src="/hashover/hashover.js"></script> In the item.html.twig file in theme/template ?

  • How to add a Javascript script for every Item pages · 10 years ago

    You're right, my bad. Assets is the way to go!