我在从UmbracoApiController访问Umbroc7内容时遇到了一些问题。
这是我的ApiController,包含示例数据,我希望从Umbraco内容中获得真实数据。我怎样才能访问Umbraco的内容?

这就是我的内容的结构。

在http://creativewebspecialist.co.uk/2013/07/16/why-i-think-your-doing-it-wrong-umbraco-alttemplate-data-views/comment-page-1/的帮助下,如果更多的读者想知道解决方案

发布于 2015-02-20 00:46:18
您可以使用Umbracos Content Service访问它。
Services.ContentService.GetById(nodeId);您可以使用MediaService以类似的方式访问媒体节点。希望这能有所帮助。
https://stackoverflow.com/questions/28611268
复制相似问题