Skip to content

Commit 021676b

Browse files
committed
PRESIDECMS-3020 add i18n and label for email_layout_config_item
1 parent 7616b57 commit 021676b

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
component {
2+
private array function _selectFields( event, rc, prc ) {
3+
return [
4+
"email_template.name as template_name"
5+
, "email_blueprint.name as blueprint_name"
6+
, "item"
7+
];
8+
}
9+
10+
private string function _renderLabel( event, rc, prc ) {
11+
var template_name = arguments.template_name ?: "";
12+
var blueprint_name = arguments.blueprint_name ?: "";
13+
var item = arguments.item ?: "";
14+
15+
var label = [ item ];
16+
if( Len( template_name ) ){
17+
ArrayPrepend( label, "Template: #template_name#" );
18+
} else if( Len( blueprint_name ) ){
19+
ArrayPrepend( label, "Blueprint: #blueprint_name#" );
20+
}
21+
22+
return ArrayToList( label, " - " );
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
title=Email layout config items
2+
title.singular=Email layout config item
3+
4+
field.layout.title=Layout
5+
field.email_template.title=Email template
6+
field.email_blueprint.title=Email blueprint
7+
field.custom_layout.title=Custom layout
8+
field.item.title=Item
9+
field.value.title=Value

system/preside-objects/email/email_layout_config_item.cfc

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
/**
22
* Represents a saved configuration item for an email layout (see [[emailtemplatingv1]])
33
*
4-
* @nolabel true
5-
* @versioned false
6-
* @feature emailCenter
4+
* @nolabel true
5+
* @versioned false
6+
* @feature emailCenter
7+
* @labelRenderer email_layout_config_item
78
*
89
*/
910
component extends="preside.system.base.SystemPresideObject" displayname="Email layout configuration item" {

0 commit comments

Comments
 (0)