Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
In Umbraco 8 is there any way to create a property on a document type that has a single value shared by all instantiated documents? My use case is that I am trying to sync Umbraco content with another system (document type == table). My hope was to let non-developers define the table to sync to when setting up the document type (i.e. no code).
I looked at the Umbraco.Label property editor but don't see a way to set a value outside of code. I've also tried creating my own property editor, but that won't let me set a value during document type creation. I can use a prevalue to set a default and then make the actual editor read only, but that means that each document type gets its own instance of the data type. I expect there to be a lot of document types over time, so that's not a great option.
Could you name the document type the same as the table and use the alias?
Thanks for the response. That is my fallback (and current plan for syncing fields). I was hoping for something more robust. Eventually I want to go as far as using a select list to avoid typos, etc. My other thought is to set up a separate document type structure to associate document types and tables. That would also have the benefit of including field mappings as well. But it would be an additional step
You could create a custom property editor.
That could then have a pre-value lookup that allows the person adding the property to the doc type to pick from a pre-defined list of values (i.e. your table options).
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted