Tag properties

186 views
Skip to first unread message

Corrado Alesso

unread,
Aug 24, 2012, 5:18:47 PM8/24/12
to sitemes...@googlegroups.com
Hi all.

I have very simple decorator

<html>
  <head>
    <sitemesh:write property="head"/>
  </head>
  <body>
    <sitemesh:write property="body"/>
  </body>
</html>

and a content page

<html>
  <head>
  </head>
  <body id="page1">
    Content
  </body>
</html>

Notice the id attribute in the body tag of the content.

I want the result page to include the "id" (or the "class" for that matter) attributes.

With sitemesh 2 I was used to this <decorator:getProperty property="body.class"/>

Is there an equivalent in Sitemesh 3 ? This is vital to our project, so if is not possible, please give me any pointer to do some custom development and implement the feature (that, if good enough, I can push back).

Thanks!
Corrado

Joe Neuhaus

unread,
Feb 10, 2013, 8:43:58 PM2/10/13
to sitemes...@googlegroups.com
Use the following syntax:

<sitemesh:write property="body.id"/>

This should write out "page1" using your example below.
Reply all
Reply to author
Forward
0 new messages