tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/17202-block-works-in-format-test-doesnt-display-with-format-on-pageCascade CMS: Discussion 2015-04-20T14:36:04Ztag:help-archives.hannonhill.com,2010-02-09:Comment/365346702015-04-09T17:22:33Z2015-04-09T17:22:33ZBlock works in format test, doesn't display with format on page<div><p>Correction: I tried making events.xml an XML block instead of a
XHTML block, and all the fields displayed. So why doesn't it work
as a Data Defintion block?</p></div>Michael McGinnistag:help-archives.hannonhill.com,2010-02-09:Comment/365346702015-04-09T19:40:02Z2015-04-09T19:40:02ZBlock works in format test, doesn't display with format on page<div><p>Hi Michael,</p>
<p>I suspect when added to a region, the XML of the Structured Data
block may not be starting with <code>system-data-structure</code>,
like it does when testing via the Format preview.</p>
<p>When you have a moment, try switching back to the Structured
Data Block adding the following between lines 9 and 11 to see what
your XML structure looks like:</p>
<pre>
<code><xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template></code>
</pre>
<p>Note: This essentially dumps the XML to the page, so you will
most likely have to view the source of the preview frame to locate
the XML tags.</p>
<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/365346702015-04-09T20:02:12Z2015-04-09T20:02:12ZBlock works in format test, doesn't display with format on page<div><p>Is this what I should expect?<br></p>
<pre>
<code><system-data-structure><calendar type="block"><content/><path>/_internal/blocks/campus-events/calendar-events</path><site>www-dev.tamu.edu</site><name>calendar-events</name></calendar><spotlights type="block"><content/><path>/slideshowContents</path><site>calendar.tamu.edu</site><name>slideshowContents</name></spotlights></system-data-structure></code>
</pre></div>Michael McGinnistag:help-archives.hannonhill.com,2010-02-09:Comment/365346702015-04-10T12:56:13Z2015-04-10T12:56:13ZBlock works in format test, doesn't display with format on page<div><p>Hi Michael,</p>
<p>That is what I was looking for, thank you.</p>
<p>Notice the <code><content></code> element for your blocks
are empty. Is suspect you will need to adjust the rendering depth
of the chooser fields. When you have a moment:</p>
<ul>
<li>Edit your Data Definition (the one with the two block
choosers)</li>
<li>Edit your <strong>calendar</strong> chooser</li>
<li>Click the advanced link</li>
<li>Enter a value of 5 into the <strong>Render Content
Depth</strong> field and save</li>
<li>Repeat steps 2-4 for the <strong>spotlights</strong>
chooser</li>
</ul>
<p>Once you modified the rendering depth for the choosers, test
your page again to see if the rendering is any different.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffith