Plugins 在10月CMS中,如何使图像在静态页面中可编辑?
我想使用十月CMS“静态页面”插件建立一个通用营销模板。目的是让我的客户创建自己的营销页面。假设我的布局包含类似以下内容的HTML:Plugins 在10月CMS中,如何使图像在静态页面中可编辑?,plugins,static-pages,octobercms,Plugins,Static Pages,Octobercms,我想使用十月CMS“静态页面”插件建立一个通用营销模板。目的是让我的客户创建自己的营销页面。假设我的布局包含类似以下内容的HTML: <img src="/path/to/image.jpg"> <hr> <p>Some uneditable copy</p> {% placeholder copy default title="Main Page Copy" type="html" %} <h1>Some Awesome Hea
<img src="/path/to/image.jpg">
<hr>
<p>Some uneditable copy</p>
{% placeholder copy default title="Main Page Copy" type="html" %}
<h1>Some Awesome Headline</h1>
<p>Sea no omnium deserunt, eum tale movet sensibus te.</p>
{% endplaceholder %}
一些不可编辑的副本
{%placeholder copy default title=“主页复制”type=“html”%}
一些很棒的标题
大海没有任何意义,你的故事没有意义
{%endplaceholder%}
我如何允许我的客户更改图像?目前似乎不支持:,但您可以使用您在这里有完整的解释 将此代码添加到布局中
{variable name="banner" label="Banner" tab="Header" type="mediafinder" mode="image"}{/variable}
并将其添加到html标记中
<img src="{{ banner|media }}" alt="" />
您将在后端中看到额外的字段