我已将自定义字段添加到Sitefinity中的新闻项组件。我正在使用newsItem.GetValue(customFieldName)获取字段名称的值;但是,事实证明这是翻译页面的问题。有没有办法我可以通过ID获得该值?否则我会如何处理?
newsItem.GetValue(customFieldName)
如果它是一个可以翻译的字段,那么您应该使用GetString方法而不是GetValue。
也请检查此:https://knowledgebase.progress.com/articles/Article/multilingual-getstring-method-does-not-fallback-for-text-field-values