Jump to:

5514 Posts in 1733 Topics by 1219 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Way to add a label to a field in a custom tab?

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

Page: 1
Go to End
Author Topic: 333 Views
  • rbTech
    Avatar
    Community Member
    4 Posts

    Way to add a label to a field in a custom tab? Link to this post

    Hi folks
    I've extended my page.ss to include a MenuImage field, and I'd like the tab to show a bit of descriptive text below the ImageField (e.g. "Please use a 100x100 image for best results").

    I've googled and searched through the SilverStripe book but to no avail. Is there a way to add a label like that in SS?

    Thanks very much,
    Rubin

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Way to add a label to a field in a custom tab? Link to this post

    You can use the setRightTitle() function on a form field to set a secondary label. Or if that doesn't give you the control you need, insert a new LiteralField form object and include the HTML you need.

    333 Views
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.