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

  • Twig if statement to select page template? · 10 years ago

    Ok, looks like I may need to add the body_class block in there because it's not showing the new class in the html. I tried putting that if statement inside of the current but it didn't print. I prom

  • Twig if statement to select page template? · 10 years ago

    Ahhh. SO. freaking. close. I must have tried a dozen different strings. haha Thanks for the help!

  • Twig if statement to select page template? · 10 years ago

    Very close! You can do something like: <body class="{% if page.template == modular %} modular-page{% endif %}"> You can add the body_classes block too, but it's not required for this example.

  • Twig if statement to select page template? · 10 years ago

    Is there a way to select a page template from an "if" statement? I would image there is, but I cannot find it. haha. Something like: I'm trying to add a body class to my modular page without having t

  • Onepage and Blog in the same website · 10 years ago

    Update: There was a <Directory /var/www> entry in the default /etc/apache2/apached.conf with an AllowOverride None entry. Changed it to AllowOverride All. Now the Blog section works as far as pr

  • Onepage and Blog in the same website · 10 years ago

    OK. Checked all the solutions in the page not found troubleshooting section. Missing .htaccess file: File is present in the root of the site (Apache DocumentRoot parameter) and has 775 access rights

  • Onepage and Blog in the same website · 10 years ago

    Not yet, Will do. Thanks.

  • Onepage and Blog in the same website · 10 years ago

    Did you check this page for possible solutions? learn.getgrav.org/troubleshooting/page-not-found

  • Onepage and Blog in the same website · 10 years ago

    I am having trouble getting this to work on a freshly installed Debian 8.3 (32-bit) server with Apache, hosted in DigitalOcean. I just installed Apache, PHP and unzip (plus the Debian packages upgrade

  • Onepage and Blog in the same website · 11 years ago

    Make sure you update the antimatter theme via GPM.