title: IN AEM, how can i take values from a component in the body section and write them in the head section of the html
body: <p>So say you have a component that is being used in the body section of a page. I want to take specific values from the text fields of that component and write them to the  of the html file.</p>
  <p>I have a tile list component, with a title text field and a description rich text field.</p>
  <pre><code>
                              &lt;div class=&quot;col box-title&quot;&gt;${tileitems.properties.title @ context='html'}&lt;/div&gt;
                              &lt;div data-sly-test='${description}' class=&quot;col&quot;&gt;
                                  &lt;p&gt;${tileitems.properties.rte || tileitems.properties.description @ context='html'}&lt;/p&gt;
                              &lt;/div&gt;
  </code></pre>
  <p>How can I get the values that are authored into the component and write on the same page but to the head of the html.</p>
  <p>do i need a java model for this ? any examples thanks</p>