Skip to content

Instantly share code, notes, and snippets.

@bkoopman
Last active August 29, 2015 14:11
Show Gist options
  • Save bkoopman/5e1f0bbf2b8f14d14878 to your computer and use it in GitHub Desktop.
Save bkoopman/5e1f0bbf2b8f14d14878 to your computer and use it in GitHub Desktop.
DWT XPM Example for making HTML attributes editable
${FieldStartMarker("image")}
${FieldValueStartMarker()}
<div style="background:url(@@Component.Fields.image@@);">
<!-- whatever, but keep in mind you cannot edit the stuff inside this anymore -->
</div>
${FieldValueEndMarker()}
${FieldEndMarker()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment