hi
Does anyone know how to write words related to a word on the back page in such a way that clicking on it takes you to that word’s page (without using add ons)?
for ex : on the back page of the word “view,” write “see,” and by clicking “see” you will be taken to the page for that word.
By “page” do you mean a link to an outside website? Or are you trying to link from one card/note to another?
Try adding this code to your template (it doesn’t work on my end for some reason):
<div id="related"></div>
<script>
var e = document.getElementById("related");
var result = "";
var words = `{{Related}}`.split(", ");
for (var i=0; i<words.length; i++) {
result += "<button onclick=\"api.ankiSearchCard('" + words[i] + "');\">" + words[i] + "</button> ";
}
e.innerHTML = result.trim();
</script>
You can add the related words to a field called Related
separated by commas like this:
see, observe, look