Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

SiteTree.php and Labels / Labeling fields


Go to End


3 Posts   1330 Views

Avatar
steve_nyhof

Community Member, 224 Posts

15 May 2010 at 9:40am

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

Avatar
3dgoo

Community Member, 135 Posts

15 May 2010 at 1:39pm

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

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

Avatar
steve_nyhof

Community Member, 224 Posts

15 May 2010 at 2:54pm

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