Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

hwk123 Newcomer

@hwk123 · Joined 8 years ago · 3 posts · 1 topics · 0 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • Resize image from frontmatter / page header · 8 years ago

    Update: fixed. I added <p>the image {{ dump(page.media[myfile.imagename].url() ) }}</p> and the URL it spit out was the correct one for most images, but "null" for some others. After som

  • Resize image from frontmatter / page header · 8 years ago

    Thank you @dimitrilongo ! Images are not yet showing up, but the "some text" in the below example does show up. I put the images in user/pages/01.pagename/images - so the code below should be correct?

  • Resize image from frontmatter / page header · 8 years ago

    myfiles.md myfiles: - header: text: image: this is the image url imagealt: myfiles.html.twig {% for myfile in page.header.myfiles %} {% if myfile.header %} <h4>{{ myfile.heade