Skip to main content

Can I customize the display of tables on the content editing screen?

In the Content Definition setting, you can replace the target item with any HTML by writing HTML in the Template Editor. You can use it to annotate items, change the background color, or add any class.

Settings

You can adjust the table by title and the items you added in the Field Settings of the content structure.   The settings for each are as follows.

Field settings

On the Content Definition edit screen, click the "Settings" button for the item to change.
Image from Gyazo

The "Field Settings" dialog box will open, and you can enter the template in the "Custom template"->"Template editor" field.   Image from Gyazo

Title

On the Content Definition edit screen, click the "Settings" button for the Title field restrictions.   Image from Gyazo

The "Field Settings" dialog box will open, and you can enter the template in the "Custom template"->"Template editor" field.   Image from Gyazo

Setting Example

For example, you can add an annotation to the title by entering the following description in [Title field restrictions]->[Settings]->[Custom Template]->[Template editor].

<tr id="topics_subject">
<th>Title<span class="required">Required</span></th>
<td>
{if !$docmeta.is_primary && $primaryRow.subject!=''}
<p class="major_language">
<span class="step">{$primaryRow.subject|escape}</span>
</p>
{/if}
<input type="text" id="subject" name="subject" value="{$formData.subject|escape}" size="80" />
<br>
<span class="hint">Current Title:{$formData.subject|escape}changes should be made carefully</span><br>
</td>
</tr>

Image from Gyazo

danger

Do not change the table structure, form components (name, id), etc.

More information


Support

If you have any other questions, please contact us or check out Our Slack Community.