Quote from: Everettg_99 at May 10, 2013, 05:08 AMAnyone know how I can customize the "New Document" text that appears when I'm creating a new blog entry or new (insert CRC here)?
http://www.screencast.com/t/5ahzh3AR72C
Did you create a full custom resource type or do you try to modify an existing one?
If you only want to modify an existing one, you could simply change the corresponding lexicon entry (I think that's what Susan suggested).
If you created your own custom resource type you could override the getPageHeader method in the
create.js (ExtJS) file:
,getPageHeader: function(config) {
config = config || {record:{}};
return {
html: '<h2>'+_('yourcrc.container_new')+'</h2>'
,id: 'modx-resource-header'
,cls: 'modx-page-header'
,border: false
,forceLayout: true
,anchor: '100%'
};
}
and for the update page in
update.js:
,getPageHeader: function(config) {
config = config || {record:{}};
return {
html: '<h2>'+_('yourcrc.container_update')+'</h2>'
,id: 'modx-resource-header'
,cls: 'modx-page-header'
,border: false
,forceLayout: true
,anchor: '100%'
};
}