Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Gallery File Caption... adding HTML code

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1616 Views
  • cindycin
    Community Member
    20 Posts

    Gallery File Caption... adding HTML code Link to this post


    I set up the Gallery module and it is great. I just have a question regarding the image/file caption that is displayed in the popup. I would like to create paragraph breaks, bold and italic, and possibly links to the captions I add. When I add in HTML code and view the page an error message appears saying that '<' is not a valid character. Is there a way for me to allow the captions to accept such characters and HTML coding?


  • bennybtl
    Community Member
    12 Posts

    Re: Gallery File Caption... adding HTML code Link to this post

    The caption exists within the <a> tag such as

    <a id="ViewLink-68" class="lightwindow" rel="name[Media]" href="http://www.sample.com/ss/assets/image.jpg" title="Title" caption="This is the Caption">

    Putting any html in between the " " would 'break' the markup. There may be an alternate way to pass captions to Lightbox, but I don't know of it.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.