tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/17198-passing-infromation-between-regions-index-blocksCascade CMS: Discussion 2018-10-18T20:37:30Ztag:help-archives.hannonhill.com,2010-02-09:Comment/365336102015-04-10T13:25:02Z2015-04-10T13:25:02ZPassing infromation between regions / index blocks...<div><p>Hi Chris,</p>
<p>You could accomplish this in one of two ways:</p>
<ul>
<li>Include the calling page information with your navigation Index
Block, so your navigation Format has access to both calling page
data and the indexed content</li>
<li>Use a standalone Velocity Format and utilize the
<code>$currentPage</code> variable, which will give you access to a
Page API object for the calling page.</li>
</ul>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/365336102015-04-15T14:43:25Z2015-04-15T14:43:25ZPassing infromation between regions / index blocks...<div><p>Awesome, thank you Mr. Griffith!</p>
<p>Took me a little while to figure out where the
<code>$currentpage</code> started looking through the XML, and then
to get the values of a checkbox into an array, but I have it
working great now!</p>
<p><strong>Reference Page Index Block</strong> <code>Region
A</code></p>
<pre>
<code><system-data-structure definition-path="Default">
<options>
<value>Banner</value>
<value>Sidebar</value>
</options>
</system-data-structure></code>
</pre>
<p><strong>Velocity</strong> <code>Region B</code></p>
<pre>
<code>#set ($pageOptions = $currentPage.getStructuredDataNode("options").textValues)
#if ($pageOptions.size() > 0 )
#foreach ( $option in $pageOptions )
...
#end
#end</code>
</pre></div>Chris