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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Hung Tran Newcomer

@tranduyhung · Joined 9 years ago · 7 posts · 1 topics · 4 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • assets.removeJS was removed, how to remove JS file from Grav\Common\Assets? · 6 years ago

    In the past Grav\Common\Assets had functions "removeJS" and "removeCSS" to remove JS and CSS files from Grav's assets. I used "removeJS" function to remove other plugins' JS files and added my own JS

  • Git Sync not pulling Template and Plugins folders · 6 years ago

    Have you solved the problem? If you haven't, do you have a gitignore file which ignores the folders of theme and plugin?

  • What's the purpose of modular pages at all? · 8 years ago

    Most of the sites I built use modular pages. Paul already gave the main purposes of modular. The end-user, who manages the site via Admin plugin, can not edit the partials or any line of code in the t

  • How to query pages with no taxonomy · 9 years ago

    I don't think this is possible If you don't provide category in URL, like this /blog/category: You will get all the blog posts. I think the only solution is building a custom plugin.

  • Store and read data in grav · 9 years ago

    Of course it writes to a file in user/data folder. You can use pure PHP instead as long as it works for you. As I know there is no standards format, it is up to you for what format is used. For exampl

  • Alternate Nav Image depending on page · 9 years ago

    Why you don't add a variable for logo image in your page's header? If there is no logo selected, no logo is shown, otherwise the selected logo is shown. {% if page.header.logo != '' %}

  • Store and read data in grav · 9 years ago

    I don't use Grav\Common\Data but this is a sample code I use in my plugins to store things in data folder: $data = 'This is my data'; $filename = 'my-file.txt'; $di