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

Lightbox: syntax changes or broken in grav 1.0.4?

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

Hi, I was just upgrading from 0.9.45 to 1.0.4 and suddenly my lightboxes stopped working.

markdown:

TXT
![foo](baz.png?lightbox&cropResize=300,300){.float-right}
  • resulting html with 0.9.45:
    HTML
    <p><a rel="lightbox" href="/user/pages/foo/bar/baz.png"><img style="" alt="foo" class="float-right" src="/images/1/2/3/4/5/12345..baz.png" /></a>
    
    • resulting html with 1.0.4:
      TXT
      <p><img alt="foo" class="float-right" src="/images/a/1/2/3/4/5/12345..baz.png" />
      

Any clues?

11 years ago

ok, that's funny, but it's working fine when adding dimensions to the lightbox:

TXT
![foo](bar.png?classes=float-right&lightbox=0,0&cropResize=300,300)
![foo](bar.png?lightbox=0,0&cropResize=300,300){.float-right}

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1351 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4063 9 years ago
Archive · by Muut Archive, 9 years ago
1 2949 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago