{"id":189314,"date":"2013-08-07T15:52:03","date_gmt":"2013-08-07T11:52:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=189314"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=189314","title":{"rendered":"<span class=\"post_title\">\u041f\u0440\u043e\u0431\u0443\u0435\u043c Orchard CMS \u0434\u043b\u044f \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438\u0432\u0435\u0442!<\/p>\n<p>  \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c <a href=\"http:\/\/eastbanctech.ru\">\u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0430\u0439\u0442<\/a> \u043d\u0430 Liferay, \u0438 \u043e\u043d \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043a\u0440\u043e\u043f\u043e\u0442\u043b\u0438\u0432\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f layout. \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0432 Liferay \u043e\u0442 \u0442\u043e\u0433\u043e \u0436\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0432 Orchard CMS \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0442\u0430\u043a\u043e\u0439 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u043a\u0438 \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/fb3\/376\/288\/fb3376288cf5a1aa2b13c3e9d594d1b8.jpg\"\/><\/p>\n<p>  \u0427\u0442\u043e \u0443 \u043d\u0430\u0441 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u043b\u043e: <\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Orchard:<\/h4>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u00ab\u041d\u043e\u0432\u043e\u0441\u0442\u0438\u00bb \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0447\u0430\u0441\u0442\u0435\u0439:  <\/p>\n<ol>\n<li>1. \u0422\u0438\u043f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e.<\/li>\n<li>2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0442\u0438\u043f\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e.<\/li>\n<li>3. \u0421\u0430\u043c\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435.<\/li>\n<li>4. \u0417\u0430\u043f\u0440\u043e\u0441.<\/li>\n<li>5. \u041f\u0440\u043e\u0435\u043a\u0446\u0438\u044f \u2013 \u0442\u043e, \u043a\u0430\u043a \u0432\u0441\u0451 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435. \u041a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. <\/li>\n<\/ol>\n<h5>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u00abNews\u00bb \u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 (\u0434\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435):<\/h5>\n<p>  1. \u0421\u043e\u0437\u0434\u0430\u0451\u043c ContentType: <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/0a4\/3a4\/fbc\/0a43a4fbc2bd205493d135ab95f327a9.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/659\/471\/22e\/65947122e10f3f6940f143a412d1c83f.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/2f4\/ff7\/550\/2f4ff75508c7f3310d4f65cfdd156bbd.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d65\/86e\/9cf\/d6586e9cf13b7c5347c0498704291289.png\"\/><\/p>\n<p>  \u2003<br \/>  2. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/950\/18e\/3d8\/95018e3d80b04eafcc4475b60b915f1a.png\"\/><\/p>\n<p>  3. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0437\u0430\u043f\u0440\u043e\u0441<br \/>  3.1. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/dd3\/514\/efd\/dd3514efdb2f61ea0530d7682e70f72f.png\"\/><\/p>\n<p>  3.2. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/5de\/336\/261\/5de3362613f4b89a3ab6a54a95c54b10.png\"\/><\/p>\n<p>  3.3. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/ac8\/af3\/86e\/ac8af386e2fc244da735295fc61acb77.png\"\/><\/p>\n<p>  3.4. \u0422.\u043a. \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430\u0434\u043e \u0433\u0434\u0435-\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0441\u043e\u0437\u0434\u0430\u0451\u043c Projection:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/222\/d15\/36e\/222d1536edcafb6e00eb0c28624e3409.png\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0435\u043a\u0446\u0438\u044f. \u0412 dashboard \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439. <\/p>\n<h4>\u041a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430<\/h4>\n<p>  <\/p>\n<h5>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0442\u0435\u043c\u0443<\/h5>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c Code generation: <a href=\"http:\/\/docs.orchardproject.net\/Documentation\/Command-line-scaffolding\">http:\/\/docs.orchardproject.net\/Documentation\/Command-line-scaffolding<\/a><\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c Orchard -&gt; bin -&gt; orchard.exe, \u0436\u0434\u0451\u043c, \u043f\u043e\u043a\u0430 \u043e\u043d\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u043f\u0438\u0448\u0435\u043c: codegen theme &lt;theme-name&gt; \/BasedOn:TheThemeMachine \/CreateProject:true<\/p>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u0442\u0435\u043c\u043e\u0439:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/047\/e3d\/ca5\/047e3dca50890b8422392b29cd70b2db.png\"\/><\/p>\n<p>  \u0418 \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c Razor template\u2026 \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c .cshtml \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441\u0442\u0443\u0434\u0438\u0438, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442, \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043a\u0430\u043a\u0438\u043c-\u043b\u0438\u0431\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u043c \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c ProjectTypeGuids, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0432 \u043d\u0435\u0433\u043e {E53F8FEA-EAE0-44A6-8774-FFD645390401}. \u0423 \u043d\u0430\u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0442\u0430\u043a\u0438\u043c: {E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0441\u0442\u0443\u0434\u0438\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/507\/dc9\/e60\/507dc9e60a371f9ae624e5e285a61f6e.png\"\/> <\/p>\n<p>  \u0412\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0442\u0435\u043c\u044b, \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439, \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0438\u0437 \u0431\u0430\u0437\u043e\u0432\u043e\u0439, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430, \u0438\u043b\u0438 \u0438\u0437 \u0442\u0435\u043c\u044b \u00abSafeMode\u00bb. \u041d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0444\u0430\u0432\u0438\u043a\u043e\u043d\u043a\u0443 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u0444\u0430\u0432\u0438\u043a\u043e\u043d\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u0435 \u00abDocument.cshtml\u00bb, \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0442\u0435\u043c\u043e\u0439, \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u0436\u0435.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c Document.cshtml \u0432 \u043f\u0430\u043f\u043a\u0435 Views.<br \/>  \u0412\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0432\u0438\u043a\u043e\u043d\u043a\u0443, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u0434 \u0432\u0437\u044f\u0442 \u0438\u0437 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432 \u0442\u0435\u043c\u0435 SafeMode<br \/>  Views\\Document.cshtml:<\/p>\n<pre><code class=\"cs\">@using Orchard.Mvc.Html; @using Orchard.UI.Resources; @{     RegisterLink(new LinkEntry { Type = &quot;image\/x-icon&quot;, Rel = &quot;shortcut icon&quot;, Href = Url.Content(&quot;~\/Themes\/ETRTheme\/Content\/images\/favicon-201209261628.ico&quot;) });     Script.Include(&quot;html5.js&quot;).UseCondition(&quot;lt IE 9&quot;).AtHead();     Script.Include(&quot;jquery.min.js&quot;).AtHead();     Script.Include(&quot;jquery-ui.min.js&quot;).AtHead();     Script.Include(&quot;knockout-2.2.1.js&quot;).AtHead();     Script.Include(&quot;jquery.lightbox.js&quot;).AtHead();     Script.Include(&quot;jquery.cycle.all.js&quot;).AtHead();     Script.Include(&quot;date.format.js&quot;).AtHead();     Script.Include(&quot;script.js&quot;).AtHead();       string title = Convert.ToString(Model.Title);     string siteName = Convert.ToString(WorkContext.CurrentSite.SiteName); } &lt;!DOCTYPE html&gt; &lt;html lang=&quot;@WorkContext.CurrentCulture&quot; class=&quot;static @Html.ClassForPage()&quot;&gt;     &lt;head&gt;         &lt;meta charset=&quot;utf-8&quot; \/&gt;         &lt;title&gt;@Html.Title(title, siteName)&lt;\/title&gt;         @Display(Model.Head)         &lt;script&gt;        (function (d) { d.className = &quot;dyn&quot; + d.className.substring(6, d.className.length); })(document.documentElement);&lt;\/script&gt;     &lt;\/head&gt;     &lt;body&gt;         @Display(Model.Body)         @Display(Model.Tail)     &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u00ab@Display(Model.Body)\u00bb \u043e\u043d \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 Layout.cshtml.<\/p>\n<p>  Layout \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 css \u0438 \u00ab\u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u00bb \u0440\u0430\u0437\u043d\u044b\u0435 \u0437\u043e\u043d\u044b.<\/p>\n<h5>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0448\u0435\u0439\u043f\u043e\u0432 \u0434\u043b\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0438 UI<\/h5>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438 (\u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u044e, Orchard \u0441\u0430\u043c \u043f\u043e\u0434\u0431\u0435\u0440\u0451\u0442, \u043a\u0430\u043a\u0438\u043c \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u043c \u043a\u0430\u043a\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0435\u043c\u0443 \u0440\u044d\u043d\u0434\u0435\u0440\u0438\u0442\u044c). <\/p>\n<p>  <a href=\"http:\/\/docs.orchardproject.net\/Documentation\/Accessing-and-rendering-shapes#NamingShapesandTemplates\">http:\/\/docs.orchardproject.net\/Documentation\/Accessing-and-rendering-shapes#NamingShapesandTemplates<\/a><\/p>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0443\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a\u0438\u0435 \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u044b:  <\/p>\n<ul>\n<li>Content-News.Summary.cshtml \u2013 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u043d\u043e\u0432\u043e\u0441\u0442\u0438.<\/li>\n<li>SliderGrid-ProjectionPage.cshtml \u2013 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 projection.<\/li>\n<\/ul>\n<p>  \u0422\u0435\u043c\u043f\u043b\u0435\u0439\u0442 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u043e\u0439 \u043d\u043e\u0432\u043e\u0441\u0442\u0438:<br \/>  Views\\Content-News.Summary.cshtml:<\/p>\n<pre><code class=\"cs\">@using Orchard.Utility.Extensions; @using Orchard.Fields.Fields; @using Orchard.Core.Common.Models; @using Orchard.ContentManagement; @using System.Text.RegularExpressions; @using Orchard.Tags.Models; @using System.Text; @using Orchard.MediaLibrary.Fields; @using Orchard.ContentManagement  @{     ContentItem contentItem = Model.ContentItem;          var contentTypeClassName = ((string)contentItem.ContentType).HtmlClassify();     var news = ((dynamic)contentItem).News;          IEnumerable&lt;ContentField&gt; fields = news.Fields;      var common = contentItem.As&lt;CommonPart&gt;();     var publishedDate = &quot;&quot;;     if (common.PublishedUtc.HasValue)     {         var date = common.PublishedUtc.Value;         publishedDate = date.ToString(&quot;d MMMM yyyy&quot;);     }      MediaLibraryPickerField newsMainImage = null;     bool newsHasImage = false;     string imageUrl = null;     string imageAlternateText = null;     try     {         newsMainImage = (MediaLibraryPickerField)fields.First(f =&gt; f.Name == &quot;NewsMainImage&quot;);         imageUrl = newsMainImage.MediaParts.First().MediaUrl;         imageAlternateText = newsMainImage.MediaParts.First().AlternateText;         newsHasImage = true;     }     catch (InvalidOperationException e)     {         newsHasImage = false;     }      var body = contentItem.As&lt;BodyPart&gt;();     var summaryBodyText = body.Text.RemoveTags().Trim().Replace(Environment.NewLine, &quot; &quot;);     summaryBodyText = Regex.Replace(summaryBodyText, @&quot;\\s+&quot;, &quot; &quot;);     var textLength = newsHasImage ? 400 : 500;     textLength = textLength &gt; summaryBodyText.Length ? summaryBodyText.Length : textLength;     summaryBodyText = summaryBodyText.Substring(0, textLength);      var tags = contentItem.As&lt;TagsPart&gt;().CurrentTags;     var tagsHtml = new List&lt;IHtmlString&gt;();     foreach (var t in tags)     {         if (tagsHtml.Any())         {             tagsHtml.Add(new HtmlString(&quot;, &quot;));         }         tagsHtml.Add(Html.ActionLink((string)t.TagName, &quot;Search&quot;, &quot;Home&quot;, new { area = &quot;Orchard.Tags&quot;, tagName = (string)t.TagName }, new { }));     }      &lt;div          @if (newsHasImage)         {             &lt;text&gt;class=&quot;b-newsroll-item-inner&quot;&lt;\/text&gt;         }         else         {             &lt;text&gt;class=&quot;b-newsroll-item-inner-no-image&quot;&lt;\/text&gt;         }&gt;         @if (common.PublishedUtc.HasValue)         {             &lt;div class=&quot;b-newsroll-date&quot;&gt;                 @publishedDate             &lt;\/div&gt;         }         @if (newsHasImage)         {             &lt;div class=&quot;b-newsroll-image-wrapper&quot;&gt;                 &lt;img class=&quot;b-newsroll-image&quot; src=&quot;@Url.Content(@imageUrl)&quot;                     @if (!String.IsNullOrWhiteSpace(imageAlternateText))                     {                         &lt;text&gt;alt=&quot;@imageAlternateText&quot;&lt;\/text&gt;                     }\/&gt;             &lt;\/div&gt;         }         &lt;div class=&quot;b-newsroll-content&quot;&gt;             &lt;div class=&quot;b-newsroll-text&quot;&gt;                 &lt;p&gt;@Html.Raw(summaryBodyText)&lt;\/p&gt;             &lt;\/div&gt;             &lt;span class=&quot;b-newsroll-content-crop&quot;&gt;&lt;\/span&gt;         &lt;\/div&gt;         &lt;div class=&quot;b-newsroll-more&quot;&gt;             @Html.ItemDisplayLink(T(&quot;Read more&quot;).ToString(), contentItem)         &lt;\/div&gt;           @if (tagsHtml.Any())         {             &lt;div class=&quot;b-newsroll-tags&quot;&gt;                 &lt;span&gt;                     @T(&quot;Tags:&quot;)                 &lt;\/span&gt;                 @foreach (var htmlString in tagsHtml)                 {                     @htmlString                 }                 &lt;\/div&gt;         }     &lt;\/div&gt; } <\/code><\/pre>\n<h5>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0433\u0440\u0438\u0434\u0430 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439<\/h5>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0433\u0440\u0438\u0434 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043c\u043e\u0434\u0443\u043b\u044c \u00abSliderGrid\u00bb: codegen module SliderGrid \u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043d\u0451\u043c \u0448\u0435\u0439\u043f\u044b:<\/p>\n<p>  Layouts\\SliderGridLayoutForms.cs:  <\/p>\n<pre><code class=\"cs\">using System; using Orchard.DisplayManagement; using Orchard.Forms.Services; using Orchard.Localization;  namespace SliderGrid.Layouts { \tpublic class SliderGridLayoutForms : IFormProvider \t{ \t\tprotected dynamic Shape { get; set; } \t\tpublic Localizer T { get; set; }  \t\tpublic SliderGridLayoutForms( \t\t\tIShapeFactory shapeFactory) \t\t{ \t\t\tShape = shapeFactory; \t\t\tT = NullLocalizer.Instance; \t\t}  \t\tpublic void Describe(DescribeContext context) \t\t{ \t\t\tFunc&lt;IShapeFactory, object&gt; form = \t\t\t\tshape =&gt; \t\t\t\t{ \t\t\t\t\tvar f = Shape.Form( \t\t\t\t\t\tId: &quot;SliderGridLayout&quot;, \t\t\t\t\t\t_HtmlProperties: Shape.Fieldset() \t\t\t\t\t\t); \t\t\t\t\treturn f; \t\t\t\t}; \t\t\tcontext.Form(&quot;SliderGridLayout&quot;, form); \t\t} \t} }  Layouts\\SliderGridLayout.cs: using System.Collections.Generic; using System.Linq; using Orchard.ContentManagement; using Orchard.DisplayManagement; using Orchard.Localization; using Orchard.Projections.Descriptors.Layout; using Orchard.Projections.Models; using Orchard.Projections.Services;  namespace SliderGrid.Layouts { \tpublic class SliderGridLayout : ILayoutProvider \t{ \t\tpublic Localizer T { get; set; } \t\tprivate readonly IContentManager _contentManager; \t\tprotected dynamic Shape { get; set; } \t\tpublic SliderGridLayout(IShapeFactory shapeFactory, IContentManager contentManager) \t\t{ \t\t\t_contentManager = contentManager; \t\t\tShape = shapeFactory; \t\t\tT = NullLocalizer.Instance; \t\t}  \t\tpublic void Describe(DescribeLayoutContext describe) \t\t{ \t\t\tdescribe.For(&quot;Html&quot;, T(&quot;Html&quot;), T(&quot;Html Layouts&quot;)) \t\t\t\t.Element(&quot;SliderGrid&quot;, T(&quot;SliderGrid&quot;), T(&quot;Renders multiPageGrid of elements + slider.&quot;), \t\t\t\t\tDisplayLayout, \t\t\t\t\tRenderLayout, \t\t\t\t\t&quot;SliderGridLayout&quot; \t\t\t\t); \t\t}  \t\tpublic LocalizedString DisplayLayout(LayoutContext context) \t\t{ \t\t\treturn T(&quot;Renders multiPageGrid + slider.&quot;); \t\t}  \t\tpublic dynamic RenderLayout(LayoutContext context, IEnumerable&lt;LayoutComponentResult&gt; layoutComponentResults) \t\t{ \t\t\tIEnumerable&lt;dynamic&gt; shapes = \t\t\t   context.LayoutRecord.Display == (int)LayoutRecord.Displays.Content \t\t\t\t   ? layoutComponentResults.Select(x =&gt; _contentManager.BuildDisplay(x.ContentItem, context.LayoutRecord.DisplayType)) \t\t\t\t   : layoutComponentResults.Select(x =&gt; x.Properties);  \t\t\treturn Shape.SliderGrid(Items: shapes); \t\t} \t} } <\/code><\/pre>\n<h5>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0433\u0440\u0438\u0434<\/h5>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432 \u00ab\u043c\u043e\u0434\u0443\u043b\u044f\u0445\u00bb \u0444\u0438\u0447\u0443 SliderGrid, \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c layout \u0437\u0430\u043f\u0440\u043e\u0441\u0430 LastNews \u043d\u0430 SliderGrid: <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/ee7\/841\/2d8\/ee78412d8363ae21fdc44795ea0bfe7a.png\"\/><\/p>\n<p>  \u0418\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0446\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/f11\/8dc\/65f\/f118dc65f39793996e4247a8e2889b78.png\"\/><\/p>\n<h4>\u0412\u044b\u0432\u043e\u0434\u044b<\/h4>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u043c\u0438\u043d\u043a\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0441\u0442\u0438, \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c ContentType, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 News. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d Projection, \u0430 \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u2014 Query. \u0427\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0442\u0435\u043c\u0435 \u0432 \u043f\u0430\u043f\u043a\u0443 Views \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c\u0438 \u0438\u043c\u0435\u043d\u0430\u043c\u0438, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c Orchard \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u044c, \u043a \u043a\u0430\u043a\u043e\u043c\u0443 \u0448\u0435\u0439\u043f\u0443 \u044d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c. \u041a\u0430\u043a \u0434\u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c ContentPart \u0438 ContentTypeField \u0438\u0437 ContentType \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0441 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c\u0438 \u043d\u043e\u0432\u043e\u0441\u0442\u044f\u043c\u0438.<\/p>\n<p>  \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u043c\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u0432\u044b\u0432\u043e\u0434\u0443, \u0447\u0442\u043e Orchard \u0438 Liferay \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439\u2026 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435. \u0418 \u0442\u0430\u043c, \u0438 \u0442\u0430\u043c \u0435\u0441\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0435\u043c, \u0438\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u044b\u0445 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u044d\u0442\u0438\u0445 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439, \u043d\u043e \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043d\u044e\u0430\u043d\u0441: \u043d\u0430 \u044d\u0442\u0430\u043f\u0435, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043b\u043e\u0447\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u0438\u043b\u0438 \u0441\u0442\u0430\u0442\u0435\u0439) \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 Liferay \u2013 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c. \u0417\u0434\u0435\u0441\u044c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0432 java \u0438 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u043e\u0434 Liferay. <\/p>\n<p>  \u0412 Orchard \u0436\u0435 \u0435\u0441\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u2014 Query, \u2014 \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u0434 \u0441\u0438\u043b\u0443 \u0432\u0441\u0435\u043c.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/eastbanctech\/blog\/189314\/\"> http:\/\/habrahabr.ru\/company\/eastbanctech\/blog\/189314\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438\u0432\u0435\u0442!<\/p>\n<p>  \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c <a href=\"http:\/\/eastbanctech.ru\">\u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0430\u0439\u0442<\/a> \u043d\u0430 Liferay, \u0438 \u043e\u043d \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043a\u0440\u043e\u043f\u043e\u0442\u043b\u0438\u0432\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f layout. \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0432 Liferay \u043e\u0442 \u0442\u043e\u0433\u043e \u0436\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0432 Orchard CMS \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0442\u0430\u043a\u043e\u0439 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u043a\u0438 \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/fb3\/376\/288\/fb3376288cf5a1aa2b13c3e9d594d1b8.jpg\"\/><\/p>\n<p>  \u0427\u0442\u043e \u0443 \u043d\u0430\u0441 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u043b\u043e: <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-189314","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/189314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=189314"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/189314\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=189314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=189314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=189314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}