This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

kai20720
kai20720

This code:

{repeater name="miniarticle" prompt="Add a mini article"}
 <div style="text-align:left;color:#000;background-color:#fff;margin:10px 0 10px 0;padding:10px;font-size:14px;">
   <img src="{fileupload name="banner_image" label="Banner image" imageWidth="660" imageHeight="180"}http://placehold.it/660x180{/fileupload}">
                     <h3 style="font-size:21px;font-weight:normal;color:#ce4240;padding:0;margin:0">
                         {text name="content_header" label="Content section" placeholder="Type in a heading and enter some content for it below"}{/text}
                     </h3>
                     <div style="line-height:150%; font-size:14px">
                      {richeditor name="content_body" size="large"}{/richeditor}
                    </div>
                </div>
                {/repeater}   

is producing the error: "Model 'Responsiv\Campaign\Models\Message' has no defined relation to 'image'." and "......throw new ApplicationException(Lang::get('backend::lang.model.missing_relation', [....."

Everything works with the textfields, but as soon as an image is needed, its not possible anymore. How is this done correctly? I did not find documentation about this. Thanx a lot!

Last updated

kai20720
kai20720

It works with the "mediafinder field".

<img src="{mediafinder name="intro_image" label="introduction image" imageWidth="600" imageHeight="180"}{/mediafinder}" width=600"/>

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.