hughbris Veteran
Regular
Grav Forum Moderators
@hughbris · Joined 9 years ago · 579 posts · 13 topics · 127 reputation
Badges
Recent posts
-
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
-
Modualar pages and translation plugins
· 8 years ago
Pretty much you need to copy these files, yes. I'm inexperienced with multi-language, but I had success with one site following the official docs and using the language switcher plugin. Modular pages
-
Blog Index Page is Empty
· 8 years ago
Not familiar with that theme. Your blog listing page (any page) will choose its template based on the template header, and more conventionally by its filename. So default.md will be rendered by the Tw