简体   繁体   English

使用CKEditor修改多个内容

[英]Modx multiple contents with CKEditor

I am building a website with the Modx CMS. 我正在使用Modx CMS构建网站。 Now i want to have multiple content area's on one page. 现在我要在一页上有多个内容区域。

My solution: create an extra TV, set the TV with form customisation to the content, so the tv is under the content. 我的解决方案:创建一台额外的电视,将具有自定义格式的电视设置为内容,因此电视位于内容下方。

I created a template looking like this: 我创建了一个看起来像这样的模板:

[[$top]]
<h1>[[*pagetitle]]</h1>
[[*content]]
[[!myCustomSnippet]]
[[*Other Content]]
[[$bottom]]

After creating the TV, i've set it's region to modx-resource-content . 创建电视后,我将其区域设置为modx-resource-content


The result: 结果:

结果

As you can see, the text is messing with the CKEditor. 如您所见,文本与CKEditor混在一起。

Somebody any ideas how to fix this? 有人对如何解决这个问题有任何想法吗? (Using version 2.3.1-pl ) (使用2.3.1-pl版本)

If you are looking to get TVs appear under the content textarea, it is better to use MODX system setting to that. 如果您希望电视显示在内容文本区域下,则最好使用MODX系统设置。 Please goto Settings, and search for tvs_below_content and set it to Yes . 请转到“设置”,然后搜索tvs_below_content并将其设置为“ Yes

By doing this, the TVs will appear under the content textarea on single page instead of having their own separate tab. 这样,电视将显示在单页的内容文本区域下方,而不是具有自己的单独标签。

Hopefully this helps. 希望这会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM