title: Sending an entry_id to an embed in ExpressionEngine
body: <p>I'm trying to find a good solution to my page title woes. I've never had a perfect solution for doing them in EE and though I'd finally thought I'd made a breakthrough I've hit a brick wall and hopefully one of you more experienced Expression Engine'ers might be able to help.</p>
  
  <p>Basically what I'm trying to do is, where the entries loop that is feeding in the main content for a page in my template I want to grab that entry_id and feed it to the header file embed. I'm doing this in a way much like this...</p>
  
  <pre><code>{embed="main/.header" pre_eid="{entry_id}"}
  
  &lt;div id="content"&gt;              
      {exp:channel:entries channel="standard-content" url_title="{segment_1}" limit="1"}
  
          {preload_replace:pre_eid="{entry_id}"}  
  
          &lt;h1&gt;{title}&lt;/h1&gt;
          {content}
  
      {/exp:channel:entries}
  &lt;/div&gt;      
  </code></pre>
  
  <p>The intention of this being that the id number gets passed to the header file where I can work my magic. What happens though is that as soon as I call {pre_eid} outside of that entries section it outputs the unparsed tag.</p>
  
  <p>How can I go about sending that entry_id parsed to the header? I understand there is something I'm missing here in terms of parse order, or technique though I know I've seen something similar before on other EE code I've looked at.                 </p>