Block works in format test, doesn't display with format on page

Michael McGinnis's Avatar

Michael McGinnis

09 Apr, 2015 05:12 PM

When I test events.xslt with the Events block that produces events.xml, all the fields display where I want them to.
When I attach events.xslt as a format to the Events block in a Page Region, nothing appears.

The Events block uses the Events-DD.xml Data Definition.
Under Events, I added a Feed block of http://dmc-app.tamu.edu/calendar/featuredEventsWWW.xml
Under Spotlights, I added a Data Definition block that produces slideshowContents.xml

Why does it work when I test it, but not in actual use? Does the Events block not produce events.xml? I tried adding a XHTML Block containing events.xml, and some of my fields appeared, but not all of them.

  1. 1 Posted by Michael McGinni... on 09 Apr, 2015 05:22 PM

    Michael McGinnis's Avatar

    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?

  2. 2 Posted by Ryan Griffith on 09 Apr, 2015 07:40 PM

    Ryan Griffith's Avatar

    Hi Michael,

    I suspect when added to a region, the XML of the Structured Data block may not be starting with system-data-structure, like it does when testing via the Format preview.

    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:

    <xsl:template match="/">
        <xsl:copy-of select="."/>
    </xsl:template>
    

    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.

    Please let me know if you have any questions.

    Thanks!

  3. 3 Posted by Michael McGinni... on 09 Apr, 2015 08:02 PM

    Michael McGinnis's Avatar

    Is this what I should expect?

    <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>
    
  4. 4 Posted by Ryan Griffith on 10 Apr, 2015 12:56 PM

    Ryan Griffith's Avatar

    Hi Michael,

    That is what I was looking for, thank you.

    Notice the <content> 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:

    • Edit your Data Definition (the one with the two block choosers)
    • Edit your calendar chooser
    • Click the advanced link
    • Enter a value of 5 into the Render Content Depth field and save
    • Repeat steps 2-4 for the spotlights chooser

    Once you modified the rendering depth for the choosers, test your page again to see if the rendering is any different.

    Please let me know if you have any questions.

    Thanks!

  5. Ryan Griffith closed this discussion on 20 Apr, 2015 02:36 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM