我想使用10月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 Headline</h1>
<p>Sea no omnium deserunt, eum tale movet sensibus te.</p>
{% endplaceholder %}
我怎样才能允许我的客户更改图片?
答案 0 :(得分:5)
你在这里有一个完整的explenation https://octobercms.com/blog/post/building-client-friendly-websites
将此代码添加到您的布局
{variable name="banner" label="Banner" tab="Header" type="mediafinder" mode="image"}{/variable}
将其添加到您的html标记中
<img src="{{ banner|media }}" alt="" />
您将在后端看到额外字段
答案 1 :(得分:0)
目前似乎不支持https://github.com/rainlab/pages-plugin/issues/13,但也许您可以使用media manager