Skip to content

Commit b00b54f

Browse files
committed
Added notice for short content field
1 parent 6035b2f commit b00b54f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

view/adminhtml/ui_component/blog_post_form.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,26 @@
176176
</item>
177177
</argument>
178178
</field>
179+
</fieldset>
180+
<fieldset name="short_content">
181+
<argument name="data" xsi:type="array">
182+
<item name="config" xsi:type="array">
183+
<item name="collapsible" xsi:type="boolean">true</item>
184+
<item name="label" xsi:type="string" translate="true">Short Content</item>
185+
<item name="sortOrder" xsi:type="number">15</item>
186+
</item>
187+
</argument>
188+
<container name="short_content_notice">
189+
<argument name="data" xsi:type="array">
190+
<item name="config" xsi:type="array">
191+
<item name="label" xsi:type="boolean">false</item>
192+
<item name="content" xsi:type="string" translate="true"><![CDATA[
193+
<strong>Notice:</strong> <em>Please use this section only if you need to enter short content completely different from main content.<br/>Please <a href="https://magefan.com/blog/add-read-more-tag-to-blog-post-content/" target="_blank" title="Add &quot;read more&quot; tag to Magento 2 blog post content">read more</a> about how to configure "read more" tag.</em>
194+
]]></item>
195+
<item name="template" xsi:type="string">ui/form/components/complex</item>
196+
</item>
197+
</argument>
198+
</container>
179199
<field name="short_content">
180200
<argument name="data" xsi:type="array">
181201
<item name="config" xsi:type="array">

0 commit comments

Comments
 (0)