I'm running into an issue when trying to use data bound forms with image uploads. Everything is working fine on the back end (mysite.com/couch), but on the front end clicking on 'Browse Server' yields no KCEditor pop-up and they styling of the input is way out of whack. I've tried with and without Bootstrap 3 classes applied with no change.
profile.php code
users/index.php code
What I'm hoping to achive (with image instead of file) is:
profile.php code
- Code: Select all
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="extended_user_avatar">Avatar:</label>
<cms:input name='extended_user_avatar' id='extended_user_avatar' type='bound' class='form-control' trust_mode='1' />
<!-- <input type="file" id="extended_user_avatar" class="form-contorl" /> -->
<span class="help-block">
<small>
<strong>Maximum dimensions:</strong> 90×90 px<br />
<strong>Maximum file size:</strong> 6.00 KiB.<br />
<strong>Select a style for your avatar to the right.</strong>
<small>
</span>
</div>
</div>
<div class="col-md-3 text-center">
<img src="<cms:show extended_user_avatar_thumbnail />" class="img-thumbnail" alt=""><br />
<input type="radio" name="avatar_display" id="avatar_square" value="square">
</div>
<div class="col-md-3 text-center">
<img src="<cms:show extended_user_avatar_thumbnail />" class="img-thumbnail img-circle" alt=""><br />
<input type="radio" name="avatar_display" id="avatar_circle" value="circle">
</div>
</div>
users/index.php code
- Code: Select all
<cms:editable
name="extended_user_avatar"
label="Avatar"
desc="Upload an image to use as your avatar"
width="90"
height="90"
crop="1"
type="image"
/>
<cms:editable
name="extended_user_avatar_thumbnail"
label="Avatar Thumbnail"
width="90"
height="90"
show_preview="1"
assoc_field="extended_user_avatar"
type="thumbnail"
/>
What I'm hoping to achive (with image instead of file) is: