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.

General Questions /

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

SiteTree.php and Labels / Labeling fields


Reply


3 Posts   925 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, 133 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.