Content Types support something called content display name scripts. It's not commonly used, but it is used here and there (for instance in the Superhero Theme, lib-urlredirect, and other apps done by Enonic). It's also been in the documentation for some time.
Try this Content Type in XP 6.13 and you will get $ is not a function errors in the console. Perhaps also there in 6.12.
<?xml version="1.0" encoding="UTF-8"?>
<content-type>
<display-name>URL</display-name>
<content-display-name-script>$('url')</content-display-name-script>
<super-type>base:structured</super-type>
<form>
<input type="TextLine" name="url">
<label>URL</label>
<occurrences minimum="1" maximum="1"/>
<help-text>Include the protocol name ("https://") for the URL.</help-text>
</input>
</form>
</content-type>
Expected behavior is that when typing anything into the field url a DisplayName would be generated out of it. The docs also have an example of how concatenating fields works.
Content Types support something called content display name scripts. It's not commonly used, but it is used here and there (for instance in the Superhero Theme, lib-urlredirect, and other apps done by Enonic). It's also been in the documentation for some time.
Try this Content Type in XP 6.13 and you will get
$ is not a function
errors in the console. Perhaps also there in 6.12.Expected behavior is that when typing anything into the field
url
a DisplayName would be generated out of it. The docs also have an example of how concatenating fields works.