Jump to:

22979 Posts in 11808 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » SiteTree.php and Labels / Labeling fields

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 850 Views
  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    SiteTree.php and Labels / Labeling fields Link to this post

    Hi,

    I need to give more of a description to the field names. Like "Page name", I want to add an description to the field, more than just a name.

    Where do I go to update this? I have gone into the SiteTree.php file under core/model and tried there, but nothing changed - around line 1340

    Is there a better way to do this - I do not care if I adjust the core files and this system is becoming highly customized already.

    Thank you,
    Steve Nyhof

  • ampedup
    Avatar
    Community Member
    133 Posts

    Re: SiteTree.php and Labels / Labeling fields Link to this post

    In SS 2.3.7 you want the Sapphire lang file:
    sapphire/lang/en_US.php

    $lang['en_US']['SiteTree']['PAGETITLE'] = 'Page name';

  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    Re: SiteTree.php and Labels / Labeling fields Link to this post

    Thank you very much! That is exactly what I was looking for.

    850 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.