Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

hughbris Veteran

Regular

Grav Forum Moderators

@hughbris · Joined 9 years ago · 581 posts · 14 topics · 127 reputation

Badges

ModSquad Team Member ✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Installation on localhost: stuck on an error 500 · 8 years ago

    The usual reason is file ownership and permissions and you don't say if you tried that. However, if you got it running with PHP's server, it's probably not that. So, it would be helpful to know what y

  • List the siblings of the current page · 8 years ago

    I think code formatting has made your code hard to understand. Could you try reformatting your Twig as it's not clear what it should say? You can format blocks of code by surrounding them with lines o

  • Any XSS code can be stored? · 8 years ago

    How can you compromise the site from doing that? I genuinely don't understand. I understand that an attacker (who must first obtain admin access) can generate some arbitrary Javascript, but so what an

  • Javascript not working · 8 years ago

    @rohankaos: but the javascript part is not working That's not enough information! What happens? There must be a thousand ways this could be "not working". Your Twig looks fine BTW, I doubt that's the

  • Update-safe overrides for forms fields twig templates? · 8 years ago

    If you created an inherited theme, I don't know this, but possibly it doesn't create a templates subfolder because there aren't any yet. So try creating that "templates" folder and any subfolders requ

  • Why do html_lang and Language\getDefault() have different values? · 8 years ago

    Not much time now (even to read all this!), but I can answer that theme_config is commonly defined at the top of base.thml.twig for many themes: {% set theme_config = attribute(config.themes, config.s

  • One-page theme problem · 8 years ago

    Disable cache in your development environment.

  • Grav Skeleton adding site URL to social a tags · 8 years ago

    Solved in Slack, I've found out.

  • Cheking if translation exists · 8 years ago

    There may be a simpler way I don't know, but ... What do you get from the t custom Twig filter (translate string to current language)? What do you get for a result if you output {{ 'MY_STRING'|t }}. I

  • Grav Skeleton adding site URL to social a tags · 8 years ago

    Hi Chris, glad you are enjoying it so far! Had a poke around the skeleton and theme. Looks like you found and edited the properties in the theme's site configuration file. Did you express the social U