Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
mikael Member
@procrates · Joined 9 years ago · 64 posts · 9 topics · 16 reputation
Badges
Recent posts
-
Set class when link and content is active in a tab menu
· 9 years ago
Hey! I am trying to set classes when a tab is active with {% set current_project = (project.active or project.activeChild) ? 'show active' : '' %} but it does not really work. As I read in the docume
-
Writing HTML in a .md file - trouble giving href the correct link
· 9 years ago
No problem Norma 🙂 Markdown is in fact included in the markdown section in the introduction. I think if everything would be referenced in every situation then this documentation would be a lot longer.
-
Writing HTML in a .md file - trouble giving href the correct link
· 9 years ago
Hi! Would be great if you could provide the code you can not get right. Did you enable Markdown extra in System config? This will allow for more HTML options in markdown files. Lot of the times the a
-
Show a menu if a condition is true
· 9 years ago
Thank you!!! Thank you!!! Thank you!!! Hahah so cool! .😃
-
Show a menu if a condition is true
· 9 years ago
Thank you it works 🙂 The problem is that it is also showing on the home. One the homepage i only need the one page menu. This would be optimal: {% if page.children.count() > 0 and base_url == false
-
Show a menu if a condition is true
· 9 years ago
That i know as it is already the part of the code. The thing i want to do is only include that menu if in a sub-modular page. Let me clarify the part in the code.
-
Show a menu if a condition is true
· 9 years ago
Hey! I am making a site that includes several modular pages. The one page menu works great for each modular page, but I wish to show the main menu on all sub-modular pages, I know it can be done, but
-
Add frontmatter config into twig print function
· 9 years ago
Never mind.... It was simpler then i was expecting so I was searching for a complicated answer. I just removed '{{}}' only to have {{ page.media[item.image].url }} and it works! I love Grav CMS and
-
Add frontmatter config into twig print function
· 9 years ago
Hey! I am trying to make a dynamic way to add images to a list. This is what I am trying to do. {% for item in page.header.list %} <div class="card"> === Problem to fix ===
-
Trying to add ID selector to a div from .yaml
· 9 years ago
I found a workaround for this. It is not optimal, but it works for now 🙂 In the onepage_menu.yaml i added a new configuration headroom.id: type: input.text label: ID headroom description: Add