CMS Development

JamieGalt
Member

Custom Modules with rich text not accepting edits

SOLVE

I have created multiple custom modules with rich text fields that are designed to accommodate varying numbers of contacts we need to include at the bottom of an e-mail. Everything looks good in the design manager side, but when I go to use the e-mail template, I can update the text in the editing screen but those changes are not reflected in the e-mail itself. What could be happening here?

0 Upvotes
1 Accepted solution
Jsum
Solution
Key Advisor

Custom Modules with rich text not accepting edits

SOLVE

Ok then I think the problem is pretty simple. 

 

You have your code here but it is static. 

 

You are saying you created a rich text module in the custom module? You actually will need a field per each editable area. so this:

<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px;"><strong>BROKER NAME</strong></span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">617 330 8000</span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">first.last@colliers.com</span></div>

has a name, a phone number, and an email.

 

In the custom module you can create three text fields (they dont really need to be rich), one for the name, one for the number, and one for the email. 

 

you then need to take the snippet for the fields you create and replace the static content witht them so:

replace static name with name field snippet

replace static phone with phone field snippet

replace static email with email field snippet

 

Also, you will need a "field group" for each set of info. So for your example you have 3 info sets, you need:

 

name field 1

phone field 1

email field 1

 

name field 2

phone field 2

email field 2

 

name field 3

phone field 3

email field 3

 

Each piece of editable content needs it's own field, and that content needs to be replaced in your code by the fields snippet. 

View solution in original post

0 Upvotes
8 Replies 8
Jsum
Key Advisor

Custom Modules with rich text not accepting edits

SOLVE

@JamieGalt,

 

Is your template coded or drag and drop?

0 Upvotes
JamieGalt
Member

Custom Modules with rich text not accepting edits

SOLVE

The template is drag and drop in the design manager. Thanks!

0 Upvotes
Jsum
Key Advisor

Custom Modules with rich text not accepting edits

SOLVE

@JamieGalt

 

Could you share your custom module code?

0 Upvotes
JamieGalt
Member

Custom Modules with rich text not accepting edits

SOLVE

<table style="width: 600px;" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;">
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px;"><strong>BROKER NAME</strong></span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">617 330 8000</span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">first.last@colliers.com</span></div>
</td>
<td style="text-align: center;">
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px;"><strong>BROKER NAME</strong></span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">617 330 8000</span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">first.last@colliers.com</span></div>
</td>
<td style="text-align: center;">
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px;"><strong>BROKER NAME</strong></span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">617 330 8000</span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">first.last@colliers.com</span></div>
</td>
<td style="text-align: center;">
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px;"><strong>BROKER NAME</strong></span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">617 330 8000</span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">first.last@colliers.com</span></div>
</td>
</tr>
</tbody>
</table>

0 Upvotes
Jsum
Key Advisor

Custom Modules with rich text not accepting edits

SOLVE

This doesn't look editable. Is this the code in your custom module? or is this what you are placing in the richtext module in the email eiditor?

0 Upvotes
JamieGalt
Member

Custom Modules with rich text not accepting edits

SOLVE

It is in the custom module, but created as a rich text field. When I go to edit it in an e-mail, it allows me to change the text in the editor but does not push through to the preview of the e-mail.

0 Upvotes
Jsum
Solution
Key Advisor

Custom Modules with rich text not accepting edits

SOLVE

Ok then I think the problem is pretty simple. 

 

You have your code here but it is static. 

 

You are saying you created a rich text module in the custom module? You actually will need a field per each editable area. so this:

<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px;"><strong>BROKER NAME</strong></span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">617 330 8000</span></div>
<div><span style="color: #646464; font-family: tahoma, arial, helvetica, sans-serif; font-size: 9px;">first.last@colliers.com</span></div>

has a name, a phone number, and an email.

 

In the custom module you can create three text fields (they dont really need to be rich), one for the name, one for the number, and one for the email. 

 

you then need to take the snippet for the fields you create and replace the static content witht them so:

replace static name with name field snippet

replace static phone with phone field snippet

replace static email with email field snippet

 

Also, you will need a "field group" for each set of info. So for your example you have 3 info sets, you need:

 

name field 1

phone field 1

email field 1

 

name field 2

phone field 2

email field 2

 

name field 3

phone field 3

email field 3

 

Each piece of editable content needs it's own field, and that content needs to be replaced in your code by the fields snippet. 

0 Upvotes
JamieGalt
Member

Custom Modules with rich text not accepting edits

SOLVE

Thank you! We got it all up and working now. Much appreciated!