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

  • Please test Grav RC3 · 9 years ago

    Today I pushed Grav 1.2.0-rc.3 and Admin 1.3.0-rc.3. Hopefully these will be the last RC versions before the final release of Grav 1.2.0 and Admin 1.3.0 respectively. To ensure this release is as so

  • Detect if admin is logged in? · 9 years ago

    Docs here on User Object

  • Detect if admin is logged in? · 9 years ago

    According to the source of GRAV the generated basename of the session is always the same, and the only extension that an administrator login gets is '-admin'. So this works: $adminCookie = session_nam

  • Detect if admin is logged in? · 10 years ago

    There were a couple restrictions in the above for me. I had to be logged in (on the website) - The admin panel seemed to be separate, so I enabled a login for the page. I had to clear the cache,

  • Detect if admin is logged in? · 10 years ago

    @davidalanbruce thanks for ideas but none of these works. I also tried to follow login page from admin plugin you can find plugins/admin/themes/grav/templates/login.html.twigand reuse {% if notAuthori

  • Detect if admin is logged in? · 10 years ago

    Or something like this? {% if grav.user.access.admin %} {{ "Hello Admin" }} {% endif %} {% if grav.user.access.admin.super == true %} {{ "Hello Admin" }} {% endif %} ---

  • Detect if admin is logged in? · 10 years ago

    {% if grav.user.title == "Administrator" %} {{ "I ain't sayin she a gold-digger" }} {% endif %} Does this work? (assuming you set your title to Administrator when you made your admin account, which yo

  • Detect if admin is logged in? · 10 years ago

    How can I detect is the admin logged in and put it as if to my twig file like: {% if admin.login %} // do something here {% endif %}

  • Are the raspberry pi tutorials for Grav outdated? · 9 years ago

    Its a little outdated, Raspbian is now running Jessie by default. Other than that, it should be all good.

  • Are the raspberry pi tutorials for Grav outdated? · 9 years ago

    If you got Grav to show up, then it was working - the 404 might have been caused by a webserver configuration issue, the most common ones listed in https://learn.getgrav.org/troubleshooting/page-not-f