\r\n```\r\n\r\n\r\n", "htmlContent" : "
This an old post, but i figured I'd comment anyway.
\nOne way to control this is by using polymer, this can be either disabled$= property or the hidden$= property. Example below from a metadata layout
\n<template>\n<nuxeo-input role=\"widget\" value=\"{{document.properties.myschemaName:myFieldName}}\" label=\"Label\" type=\"text\" disabled$=\"{{_disableField(document)}}\"></nuxeo-input>\n\n</template>\n\n<script>\nPolymer(\n{ is: 'nuxeo-yourdoctype-layout',\n\nbehaviors: [Nuxeo.LayoutBehavior],\n\nproperties: {\n\n document: {\n type: Object,\n },\n},\n\n_disableField: function(doc) {\n\nif(doc && doc.properties['shema_prefix:myField'] == \"thisValue\"){\n return true;\n }\n return false;\n},\n});\n</script>\n
"
}, {
"id" : "82ce89ae-fe5a-48ec-8a67-2a371b2de0ad",
"label" : "3",
"active" : false,
"author" : {
"uid" : "fc911b61-2d21-42b2-b5f6-611fa18581b2",
"name" : "fc911b61-2d21-42b2-b5f6-611fa18581b2",
"email" : "sarahevjen@gmail.com",
"firstName" : "Sarah",
"lastName" : "Evjen",
"title" : "Member",
"score" : 111,
"disabled" : false,
"virtual" : false,
"badgeCount" : null,
"notifications" : {
"email" : {
"name" : "email",
"address" : "sarahevjen@gmail.com",
"notifs" : [ "EditMyAnswer", "CommentMyAnswer", "EditMyQuestion", "NewQuestionComment", "AnswerMyQuestion", "WeeklyDigest", "VoteMyQuestion", "BadgeAwarded", "VoteMyAnswer", "TagMyQuestion", "CommentMyQuestion", "NewQuestion", "NewAnswerComment", "NewAnswer" ]
},
"phone" : null
},
"badges" : [ "editor", "teacher", "revival", "fairplay" ],
"loginCount" : 8,
"lastLogin" : 1601555527314,
"avatarUrl" : "https://lh3.googleusercontent.com/a-/AOh14GgPwQIHxsqiWJZoEOnRVgq00hP-yW_i5NlThKGB8Q?sz=%s"
},
"created" : "2020-04-21T20:09:59.76Z",
"createdAt" : "04/21/2020",
"title" : null,
"content" : "This an old post, but i figured I'd comment anyway. \r\n\r\nOne way to control this is by using polymer, this can be either disabled$= property or the hidden$= property. Example below from a metadata layout\r\n\r\n```\r\nThis an old post, but i figured I'd comment anyway.
\nOne way to control this is by using polymer, this can be either disabled$= property or the hidden$= property. Example below from a metadata layout
\n<nuxeo-input role=\"widget\" value=\"{{document.properties.myschemaName:myFieldName}}\" label=\"Label\" type=\"text\" disabled$=\"{{_disableField(document)}}\"></nuxeo-input>\n\n</template>\n\n<script>\nPolymer(\n{ is: 'nuxeo-yourdoctype-layout',\n\nbehaviors: [Nuxeo.LayoutBehavior],\n\nproperties: {\n\n document: {\n type: Object,\n },\n},\n\n_disableField: function(doc) {\n\nif(doc && doc.properties['shema_prefix:myField'] == \"thisValue\"){\n return true;\n }\n return false;\n},\n});\n</script>\n
"
}, {
"id" : "96c58c69-ccb9-49d8-8435-7c78bf7501db",
"label" : "2",
"active" : false,
"author" : {
"uid" : "fc911b61-2d21-42b2-b5f6-611fa18581b2",
"name" : "fc911b61-2d21-42b2-b5f6-611fa18581b2",
"email" : "sarahevjen@gmail.com",
"firstName" : "Sarah",
"lastName" : "Evjen",
"title" : "Member",
"score" : 111,
"disabled" : false,
"virtual" : false,
"badgeCount" : null,
"notifications" : {
"email" : {
"name" : "email",
"address" : "sarahevjen@gmail.com",
"notifs" : [ "EditMyAnswer", "CommentMyAnswer", "EditMyQuestion", "NewQuestionComment", "AnswerMyQuestion", "WeeklyDigest", "VoteMyQuestion", "BadgeAwarded", "VoteMyAnswer", "TagMyQuestion", "CommentMyQuestion", "NewQuestion", "NewAnswerComment", "NewAnswer" ]
},
"phone" : null
},
"badges" : [ "editor", "teacher", "revival", "fairplay" ],
"loginCount" : 8,
"lastLogin" : 1601555527314,
"avatarUrl" : "https://lh3.googleusercontent.com/a-/AOh14GgPwQIHxsqiWJZoEOnRVgq00hP-yW_i5NlThKGB8Q?sz=%s"
},
"created" : "2020-04-21T20:07:47.14Z",
"createdAt" : "04/21/2020",
"title" : null,
"content" : "This an old post, but i figured I'd comment anyway. \r\n\r\nOne way to control this is by using polymer, this can be either disabled$= property or the hidden$= property. \r\n\r\n```\r\nThis an old post, but i figured I'd comment anyway.
\nOne way to control this is by using polymer, this can be either disabled$= property or the hidden$= property.
\n<nuxeo-input role=\"widget\" value=\"{{document.properties.myschemaName:myFieldName}}\" label=\"Label\" type=\"text\" disabled$=\"{{_disableField(document)}}\"></nuxeo-input>\n\n</template>\n\n<script>\nPolymer(\n{ is: 'your-layout',\n\nproperties: {\n\n document: {\n type: Object,\n },\n},\n\n_disableField: function(doc) {\n\nif(doc && doc.properties['shema_prefix:myField'] == \"thisValue\"){\n return true;\n }\n return false;\n},\n});\n</script>\n
"
}, {
"id" : "e5fce5ca-122e-405b-9a18-96899d3a1a77",
"label" : "1",
"active" : false,
"author" : {
"uid" : "fc911b61-2d21-42b2-b5f6-611fa18581b2",
"name" : "fc911b61-2d21-42b2-b5f6-611fa18581b2",
"email" : "sarahevjen@gmail.com",
"firstName" : "Sarah",
"lastName" : "Evjen",
"title" : "Member",
"score" : 111,
"disabled" : false,
"virtual" : false,
"badgeCount" : null,
"notifications" : {
"email" : {
"name" : "email",
"address" : "sarahevjen@gmail.com",
"notifs" : [ "EditMyAnswer", "CommentMyAnswer", "EditMyQuestion", "NewQuestionComment", "AnswerMyQuestion", "WeeklyDigest", "VoteMyQuestion", "BadgeAwarded", "VoteMyAnswer", "TagMyQuestion", "CommentMyQuestion", "NewQuestion", "NewAnswerComment", "NewAnswer" ]
},
"phone" : null
},
"badges" : [ "editor", "teacher", "revival", "fairplay" ],
"loginCount" : 8,
"lastLogin" : 1601555527314,
"avatarUrl" : "https://lh3.googleusercontent.com/a-/AOh14GgPwQIHxsqiWJZoEOnRVgq00hP-yW_i5NlThKGB8Q?sz=%s"
},
"created" : "2020-04-21T20:05:21.63Z",
"createdAt" : "04/21/2020",
"title" : null,
"content" : "This an old post, but i figured I'd comment anyway. \r\n\r\nOne way to control this is by using polymer, this can be either disabled$= property or the hidden$= property. \r\n\r\n\r\n\r\n\r\nThis an old post, but i figured I'd comment anyway.
\nOne way to control this is by using polymer, this can be either disabled$= property or the hidden$= property.
\n \n \n \n" } ] }; Versioning.getActiveVersion = function() { var versions = this.versions; for (var i=0,len=versions.length;i