{"id":89,"date":"2007-04-02T08:16:01","date_gmt":"2007-04-02T13:16:01","guid":{"rendered":"http:\/\/stein.everybody.org\/brain\/sitemesh-pagedecoratormapper\/"},"modified":"2011-03-10T10:57:30","modified_gmt":"2011-03-10T15:57:30","slug":"sitemesh-pagedecoratormapper","status":"publish","type":"post","link":"https:\/\/jeremystein.com\/brain\/sitemesh-pagedecoratormapper\/","title":{"rendered":"Sitemesh PageDecoratorMapper"},"content":{"rendered":"<p>When configuring Sitemesh to use the PageDecoratorMapper, you have to follow it with the ConfigDecoratorMapper.  The PageDecoratorMapper will map to a decorator name, but then Sitemesh continues down the chain looking for a definition for that decorator, which is provided in the config file (usually decorators.xml) for ConfigDecoratorMapper.<\/p>\n<pre>\n&lt;decorator-mappers&gt;\n  &lt;mapper class=\"com.opensymphony.module.sitemesh.mapper.PageDecoratorMapper\"&gt;\n    &lt;param name=\"property.1\" value=\"meta.decorator\" \/&gt;\n    &lt;param name=\"property.2\" value=\"decorator\" \/&gt;\n  &lt;\/mapper&gt;\n  &lt;mapper class=\"com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper\"&gt;\n    &lt;param name=\"config\" value=\"${decorators-file}\"\/&gt;\n  &lt;\/mapper&gt;\n&lt;\/decorator-mappers&gt;\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When configuring Sitemesh to use the PageDecoratorMapper, you have to follow it with the ConfigDecoratorMapper. The PageDecoratorMapper will map to a decorator name, but then Sitemesh continues down the chain looking for a definition for that decorator, which is provided in the config file (usually decorators.xml) for ConfigDecoratorMapper. &lt;decorator-mappers&gt; &lt;mapper class=&#8221;com.opensymphony.module.sitemesh.mapper.PageDecoratorMapper&#8221;&gt; &lt;param name=&#8221;property.1&#8243; value=&#8221;meta.decorator&#8221; \/&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":0,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}