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 →

If Statement in Markdown

Started by Muut Archive 11 years ago · 2 replies · 2404 views
11 years ago

Is it possible to add an if else statement in Markdown?

I've been using the comments plugin. In user/config/site.yaml I added
menu:

YAML
url: '/register' 
text: Register

To add a menu item on my homepage. I created a test account and successfully logged in. But after logging in, the "register" menu item still shows up, along with the "welcome" and "logout" menu items that are added after logging in. Is there a way to make an if statement to only show the register menu item if the visitor is not logged in? Alternatively, is there another way to add the register page another than in site.yaml? Thanks.

11 years ago

Got it working. You've been a big help, thank you!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 676 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago