Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Ben Bricker Member
@bbricker87 · Joined 9 years ago · 39 posts · 4 topics · 13 reputation
Badges
Recent posts
-
Problem with displaying content on modular page
· 9 years ago
The folder names match the page title. The .md files just need to correspond to a twig and yaml file with the same name. modular.md would correspond to modular.html.twig and modular.yaml, hero.md woul
-
Collect dates from blog posts
· 9 years ago
Something like this should work if you're using jQuery. It should get you on the right track at least. var dates = []; $('.blog-date').each(function(dateElement) { dates.push(Date.parse(dateEl
-
Collect dates from blog posts
· 9 years ago
I'm guessing you're using javascript for this right? In twig, you could loop through all of the blog posts and just output their date. Something like this. {% set collection = page.collection({ 'items
-
Wrapping Image around text
· 9 years ago
You need to do this with CSS. Use float: right to push the image to the right of the text, and float: left to push it to the left of the text. The text will wrap around the image so long as the image
-
Show only Children in Nav
· 9 years ago
Do you just want to know if one of the pages in the list is the page you're currently on? If so, this might work. I haven't tested it with a collection, but worth a shot. {% for item in items %} {
-
Meta tags rendering html codes
· 9 years ago
What does your twig file look like?
-
Adding a fixed banner over showcase image?
· 9 years ago
This should help get you started in the right direction. HTML <section id="hero"> <div class="row"> ... </div> <div class='hero__overlay">Overlay content<
-
Show only Children in Nav
· 9 years ago
My bad on that. I left out part of the code. Change your set to this and it should be correct. {% set items = page.collection({ items: {'@page.children': '/privilegien'},'order': {'by': 'folder', 'dir
-
Show only Children in Nav
· 9 years ago
If I'm understanding correctly, you want to output the children of a specific page, right? If so this should work. {% set items = { items: {'@page.children': '/path/to/parent'},'order': {'by': 'folder
-
Tap to open nav dropdown
· 9 years ago
Because touch devices don't handle hover, since there isn't a pointer, they won't ever react to that state. One thing you could do is check if the target has children, and then prevent the default ac