Quote Originally Posted by Egg Bramhill View Post
Here's a JavaScript example. Not sure if it's overkill though.
@ Acorn: How to I assign an ID to a text field within Xara?
Egg, my approach is "simpler".

Create and format a long Text Column with boilerplate text (i.e., any words at all).
Highlight with the Text Tool and add Names of htmlblocktext and an ID (your question) of 'copyright'.

In a Placeholder or Page body add the code:
Code:
<script>
  var result = document.getElementById("copyright").innerHTML = "\u00A9 " + Date().substr(11, 4);
</script>
An earlier example is in https://www.talkgraphics.com/showthr...198#post617198.

The advantage is all the formatting is set up within Xara, with no extra coding.
The disadvantage is it will fail in Supersites (HTML recognised only first ID instance0 so you have to write more code to instead present the value of the variable result...

Acorn