{"id":2514,"date":"2022-08-30T15:25:30","date_gmt":"2022-08-30T15:25:30","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/27\/orchard-get-razor-views-from-database-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:25:30","modified_gmt":"2022-08-30T15:25:30","slug":"orchard-get-razor-views-from-database-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/orchard-get-razor-views-from-database-collection-of-common-programming-errors\/","title":{"rendered":"Orchard get razor views from database-Collection of common programming errors"},"content":{"rendered":"<p>I am writing a custom orchard module which needs to read in &#8220;Razor template&#8221; views from the database and dynamically add them to orchard pages when published via Content manager.<\/p>\n<p>I see that Orchard implements its own view engine and also a custom virtualPathHandler. I am wondering if someone has tried to do something similar in orchard.<\/p>\n<p>Thanks.<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-27 08:43:08. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am writing a custom orchard module which needs to read in &#8220;Razor template&#8221; views from the database and dynamically add them to orchard pages when published via Content manager. I see that Orchard implements its own view engine and also a custom virtualPathHandler. I am wondering if someone has tried to do something similar [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2514","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2514"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2514\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}