Block to Format not working right

Graham Lewis's Avatar

Graham Lewis

29 Oct, 2012 07:07 PM

Ok so I have a block that views right inside cascade (when viewing the block itself) - when I add it to the page, it doesn't display correctly anymore - it just displays some of the text in the different divs, but doesn't show the images and such

here is the block

<link type="text/css" rel="stylesheet" href="http://www.jsu.edu/_common/_files/scripts/kenburns/kenburns.css" />
<link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Sans" />
<link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:400,700,700italic" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">
</script>
<script type="text/javascript" src="http://www.jsu.edu/_common/_files/scripts/kenburns/jquery-ui-1.8.16.custom.min.js">
</script>
<script type="text/javascript" src="http://www.jsu.edu/_common/_files/scripts/kenburns/jquery.ui.touch-punch.min.js">
</script>
<script type="text/javascript" src="http://www.jsu.edu/_common/_files/scripts/kenburns/bannerscollection_kenburns.js">
</script>
<!--[if IE]>
<script src="js/excanvas.compiled.js" type="text/javascript"></script>
<![endif]-->
<!-- must have -->
<script type="text/javascript">
                jQuery(function() {

                        jQuery('#bannerscollection_kenburns_generous').bannerscollection_kenburns({
                                skin: 'generous',
                                responsive:false,
                                width: 700,
                                height: 207,
                                width100Proc:false,
                                numberOfThumbsPerScreen:5,
                                thumbsOnMarginTop:14,
                                thumbsWrapperMarginTop: -110,
                                autoHideBottomNav:true
                        });             
                        
                        
                });
        </script>
<div id="bannerscollection_kenburns_generous">
<div class="myloader"></div>
<!-- CONTENT -->
<ul class="bannerscollection_kenburns_list">
<li data-text-id="#bannerscollection_kenburns_photoText1" data-initialzoom="1" data-finalzoom="1.5" data-bottom-thumb="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/thumbs/mba.jpg"><img width="700" src="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/mba.jpg" height="207" /></li>
<li data-verticalposition="center" data-text-id="#bannerscollection_kenburns_photoText2" data-target="_blank" data-link="http://codecanyon.net/user/LambertGroup" data-initialzoom="1" data-horizontalposition="right" data-finalzoom="1.3" data-bottom-thumb="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/thumbs/edu.jpg"><img width="700" src="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/edu.jpg" height="207" /></li>
<li data-verticalposition="bottom" data-text-id="#bannerscollection_kenburns_photoText3" data-initialzoom="1" data-horizontalposition="right" data-finalzoom="1.2" data-bottom-thumb="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/thumbs/em.jpg"><img width="700" src="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/em.jpg" height="207" /></li>
</ul>
<!-- TEXT -->
<div id="bannerscollection_kenburns_photoText1" class="bannerscollection_kenburns_texts">
<div data-initial-top="15" data-initial-left="0" data-final-top="25" data-final-left="20" data-fade-start="0" data-duration="0.5" data-delay="0.5" class="bannerscollection_kenburns_text_line textElement31_generous">Expand Your Career</div>
<div data-initial-top="140" data-initial-left="10" data-final-top="65" data-final-left="20" data-fade-start="0" data-duration="0.5" data-delay="0" class="bannerscollection_kenburns_text_line textElement32_generous">Get a Masters of Business Administration</div>
<div data-initial-top="2" data-initial-left="370" data-final-top="100" data-final-left="50" data-fade-start="0" data-duration="0.5" data-delay="0.8" class="bannerscollection_kenburns_text_line textElement12_generous"><span style="color: #000;">&#187;</span> <a href="http://www.jsu.edu/graduate2/programs/businessadmin/index.html">Learn More</a></div>
</div>
<div id="bannerscollection_kenburns_photoText2" class="bannerscollection_kenburns_texts">
<div data-initial-top="15" data-initial-left="0" data-final-top="25" data-final-left="20" data-fade-start="0" data-duration="0.5" data-delay="0.5" class="bannerscollection_kenburns_text_line textElement31_generous">Change the World</div>
<div data-initial-top="140" data-initial-left="10" data-final-top="65" data-final-left="20" data-fade-start="0" data-duration="0.5" data-delay="0" class="bannerscollection_kenburns_text_line textElement32_generous">We have many Educational Specialist programs</div>
<div data-initial-top="2" data-initial-left="370" data-final-top="100" data-final-left="50" data-fade-start="0" data-duration="0.5" data-delay="0.8" class="bannerscollection_kenburns_text_line textElement12_generous"><span style="color: #000;">&#187;</span> <a href="http://www.jsu.edu/graduate2/programs/emergencymgt/index.html">Learn More</a></div>
</div>
<div id="bannerscollection_kenburns_photoText3" class="bannerscollection_kenburns_texts">
<div data-initial-top="15" data-initial-left="0" data-final-top="25" data-final-left="20" data-fade-start="0" data-duration="0.5" data-delay="0.5" class="bannerscollection_kenburns_text_line textElement31_generous">Save Lives &amp; More</div>
<div data-initial-top="140" data-initial-left="10" data-final-top="65" data-final-left="20" data-fade-start="0" data-duration="0.5" data-delay="0" class="bannerscollection_kenburns_text_line textElement32_generous">Get a Doctorate in Emergency Management</div>
<div data-initial-top="2" data-initial-left="370" data-final-top="100" data-final-left="50" data-fade-start="0" data-duration="0.5" data-delay="0.8" class="bannerscollection_kenburns_text_line textElement12_generous"><span style="color: #000;">&#187;</span> <a href="http://www.jsu.edu/graduate2/programs/emergencymgt/index.html">Learn More</a></div>
</div>
<div data-initial-top="35" data-initial-left="550" data-final-top="35" data-final-left="70" data-fade-start="0" data-duration="0.5" data-delay="0.5" class="bannerscollection_kenburns_text_line textElement31_generous">Responsive<br />
 design</div>
<div data-initial-top="140" data-initial-left="10" data-final-top="140" data-final-left="73" data-fade-start="0" data-duration="0.5" data-delay="0" class="bannerscollection_kenburns_text_line textElement32_generous">Available parameter<br />
 to disable responsive behaviour</div>
<div data-initial-top="2" data-initial-left="308" data-final-top="23" data-final-left="308" data-fade-start="0" data-duration="0.5" data-delay="0.8" class="bannerscollection_kenburns_text_line textElement33_generous"><a target="_blank" href="http://codecanyon.net/user/LambertGroup">YES!</a></div>
</div>

and here is the format

#set ($data = $_XPathTool.selectSingleNode($contentRoot, "/system-index-block/calling-page/system-page/system-data-structure/content"))
#set ($content = $_XPathTool.selectSingleNode($data, "main-content"))
#set ($banner = $_XPathTool.selectSingleNode($contentRoot, "/system-index-block/calling-page/system-page/system-data-structure/content/image"))
#set ($bannerImage = $_XPathTool.selectSingleNode($contentRoot, "/system-index-block/calling-page/system-page/system-data-structure/content/image/link").value)
#set ($imageBlock = $_XPathTool.selectSingleNode($data, "image-block"))

#if ($banner.getChild("path") && $banner.getChild("path").value != "/")
<div class="no_print">
    <img src="${banner.getChild("link").value}"/>
</div>
#end

#if ($imageBlock.getChild("path").value != "/")
<div class="body_text">
     $_SerializerTool.serialize($imageBlock.getChild("content"), true)
</div>
#end

any help would be appreciated!

  1. 1 Posted by Ryan Griffith on 29 Oct, 2012 07:23 PM

    Ryan Griffith's Avatar

    Hi Graham,

    Would you also be able to provide the XML of your page's Data Definition and if this block is a structured data block, the XML for the block's Data Definition?

    This should help get some more context on how things are set up.

    Thanks

  2. 2 Posted by Graham Lewis on 29 Oct, 2012 07:34 PM

    Graham Lewis's Avatar

    Sure!

    here is the XML of the block

    <block-xhtml>
    <link href="http://www.jsu.edu/_common/_files/scripts/kenburns/kenburns.css" rel="stylesheet" type="text/css"/>
    <link href="http://fonts.googleapis.com/css?family=Droid+Sans" rel="stylesheet" type="text/css"/>
    <link href="http://fonts.googleapis.com/css?family=Lato:400,700,700italic" rel="stylesheet" type="text/css"/>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
    <script src="http://www.jsu.edu/_common/_files/scripts/kenburns/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
    <script src="http://www.jsu.edu/_common/_files/scripts/kenburns/jquery.ui.touch-punch.min.js" type="text/javascript"></script>
    <script src="http://www.jsu.edu/_common/_files/scripts/kenburns/bannerscollection_kenburns.js" type="text/javascript"></script>
    <!--[if IE]>
    <script src="js/excanvas.compiled.js" type="text/javascript"></script>
    <![endif]-->
    <!-- must have -->
    <script type="text/javascript">                jQuery(function() {                        jQuery('#bannerscollection_kenburns_generous').bannerscollection_kenburns({                                skin: 'generous',                                responsive:false,                                width: 700,                                height: 207,                                width100Proc:false,                                numberOfThumbsPerScreen:5,                                thumbsOnMarginTop:14,                                thumbsWrapperMarginTop: -110,                                autoHideBottomNav:true                        });                                                                             });        </script>
    <div id="bannerscollection_kenburns_generous">
    <div class="myloader"/>
    <!-- CONTENT -->
    <ul class="bannerscollection_kenburns_list">
    <li data-bottom-thumb="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/thumbs/mba.jpg" data-finalzoom="1.5" data-initialzoom="1" data-text-id="#bannerscollection_kenburns_photoText1">
    <img height="207" src="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/mba.jpg" width="700"/>
    </li>
    <li data-bottom-thumb="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/thumbs/edu.jpg" data-finalzoom="1.3" data-horizontalposition="right" data-initialzoom="1" data-link="http://codecanyon.net/user/LambertGroup" data-target="_blank" data-text-id="#bannerscollection_kenburns_photoText2" data-verticalposition="center">
    <img height="207" src="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/edu.jpg" width="700"/>
    </li>
    <li data-bottom-thumb="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/thumbs/em.jpg" data-finalzoom="1.2" data-horizontalposition="right" data-initialzoom="1" data-text-id="#bannerscollection_kenburns_photoText3" data-verticalposition="bottom">
    <img height="207" src="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/em.jpg" width="700"/>
    </li>
    </ul>
    <!-- TEXT -->
    <div class="bannerscollection_kenburns_texts" id="bannerscollection_kenburns_photoText1">
    <div class="bannerscollection_kenburns_text_line textElement31_generous" data-delay="0.5" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="25" data-initial-left="0" data-initial-top="15">Expand Your Career</div>
    <div class="bannerscollection_kenburns_text_line textElement32_generous" data-delay="0" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="65" data-initial-left="10" data-initial-top="140">Get a Masters of Business Administration</div>
    <div class="bannerscollection_kenburns_text_line textElement12_generous" data-delay="0.8" data-duration="0.5" data-fade-start="0" data-final-left="50" data-final-top="100" data-initial-left="370" data-initial-top="2">
    <span style="color: #000;">»</span>
     
    <a href="http://www.jsu.edu/graduate2/programs/businessadmin/index.html">Learn More</a>
    </div>
    </div>
    <div class="bannerscollection_kenburns_texts" id="bannerscollection_kenburns_photoText2">
    <div class="bannerscollection_kenburns_text_line textElement31_generous" data-delay="0.5" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="25" data-initial-left="0" data-initial-top="15">Change the World</div>
    <div class="bannerscollection_kenburns_text_line textElement32_generous" data-delay="0" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="65" data-initial-left="10" data-initial-top="140">We have many Educational Specialist programs</div>
    <div class="bannerscollection_kenburns_text_line textElement12_generous" data-delay="0.8" data-duration="0.5" data-fade-start="0" data-final-left="50" data-final-top="100" data-initial-left="370" data-initial-top="2">
    <span style="color: #000;">»</span>
     
    <a href="http://www.jsu.edu/graduate2/programs/emergencymgt/index.html">Learn More</a>
    </div>
    </div>
    <div class="bannerscollection_kenburns_texts" id="bannerscollection_kenburns_photoText3">
    <div class="bannerscollection_kenburns_text_line textElement31_generous" data-delay="0.5" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="25" data-initial-left="0" data-initial-top="15">Save Lives &amp; More</div>
    <div class="bannerscollection_kenburns_text_line textElement32_generous" data-delay="0" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="65" data-initial-left="10" data-initial-top="140">Get a Doctorate in Emergency Management</div>
    <div class="bannerscollection_kenburns_text_line textElement12_generous" data-delay="0.8" data-duration="0.5" data-fade-start="0" data-final-left="50" data-final-top="100" data-initial-left="370" data-initial-top="2">
    <span style="color: #000;">»</span>
     
    <a href="http://www.jsu.edu/graduate2/programs/emergencymgt/index.html">Learn More</a>
    </div>
    </div>
    <div class="bannerscollection_kenburns_text_line textElement31_generous" data-delay="0.5" data-duration="0.5" data-fade-start="0" data-final-left="70" data-final-top="35" data-initial-left="550" data-initial-top="35">Responsive
    <br/>
     design</div>
    <div class="bannerscollection_kenburns_text_line textElement32_generous" data-delay="0" data-duration="0.5" data-fade-start="0" data-final-left="73" data-final-top="140" data-initial-left="10" data-initial-top="140">Available parameter
    <br/>
     to disable responsive behaviour</div>
    <div class="bannerscollection_kenburns_text_line textElement33_generous" data-delay="0.8" data-duration="0.5" data-fade-start="0" data-final-left="308" data-final-top="23" data-initial-left="308" data-initial-top="2">
    <a href="http://codecanyon.net/user/LambertGroup" target="_blank">YES!</a>
    </div>
    </div>
    </block-xhtml>
    

    If I'm thinking of the right term, it's not a structured data block, it's XHTML.

    here is the XMl of the page

    <system-index-block current-time="1351539210316" name="current page" type="folder">
    <calling-page>
    <system-page current="true" id="bc9fe3e57f00000116ca2017c600f096">
    <name>index</name>
    <is-published>true</is-published>
    <last-published-on>1351536574411</last-published-on>
    <last-published-by>glewis</last-published-by>
    <title>College of Graduate Studies</title>
    <keywords>graduate school, alabama, online degree, emergency management, higher education, teaching, student, jacksonville, jsu, university, graduate, school, program, graduate program, doctorate, certificate, specialist, eds, masters, graphic design, masters of fine arts, MA, MFA, MBA, MS, EDS, DS, studies, online MBA</keywords>
    <description>The College of Graduate Studies offers nine different degrees with thirty majors at the master's level, the post-master's Educational Specialist degree as well as numerous concentrations and certificates.</description>
    <display-name>Graduate Studies</display-name>
    <path>/index</path>
    <site>Graduate Studies 2</site>
    <link>site://Graduate Studies 2/index</link>
    <created-by>glewis</created-by>
    <created-on>1338899424182</created-on>
    <last-modified-by>glewis</last-modified-by>
    <last-modified>1351537307354</last-modified>
    <system-data-structure definition-path="Interior Page">
    <content>
    <image-block>
    <content>
    <link href="http://www.jsu.edu/_common/_files/scripts/kenburns/kenburns.css" rel="stylesheet" type="text/css"/>
    <link href="http://fonts.googleapis.com/css?family=Droid+Sans" rel="stylesheet" type="text/css"/>
    <link href="http://fonts.googleapis.com/css?family=Lato:400,700,700italic" rel="stylesheet" type="text/css"/>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
    <script src="http://www.jsu.edu/_common/_files/scripts/kenburns/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
    <script src="http://www.jsu.edu/_common/_files/scripts/kenburns/jquery.ui.touch-punch.min.js" type="text/javascript"></script>
    <script src="http://www.jsu.edu/_common/_files/scripts/kenburns/bannerscollection_kenburns.js" type="text/javascript"></script>
    <!--[if IE]>
    <script src="js/excanvas.compiled.js" type="text/javascript"></script>
    <![endif]-->
    <!-- must have -->
    <script type="text/javascript">                jQuery(function() {                        jQuery('#bannerscollection_kenburns_generous').bannerscollection_kenburns({                                skin: 'generous',                                responsive:false,                                width: 700,                                height: 207,                                width100Proc:false,                                numberOfThumbsPerScreen:5,                                thumbsOnMarginTop:14,                                thumbsWrapperMarginTop: -110,                                autoHideBottomNav:true                        });                                                                             });        </script>
    <div id="bannerscollection_kenburns_generous">
    <div class="myloader"/>
    <!-- CONTENT -->
    <ul class="bannerscollection_kenburns_list">
    <li data-bottom-thumb="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/thumbs/mba.jpg" data-finalzoom="1.5" data-initialzoom="1" data-text-id="#bannerscollection_kenburns_photoText1">
    <img height="207" src="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/mba.jpg" width="700"/>
    </li>
    <li data-bottom-thumb="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/thumbs/edu.jpg" data-finalzoom="1.3" data-horizontalposition="right" data-initialzoom="1" data-link="http://codecanyon.net/user/LambertGroup" data-target="_blank" data-text-id="#bannerscollection_kenburns_photoText2" data-verticalposition="center">
    <img height="207" src="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/edu.jpg" width="700"/>
    </li>
    <li data-bottom-thumb="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/thumbs/em.jpg" data-finalzoom="1.2" data-horizontalposition="right" data-initialzoom="1" data-text-id="#bannerscollection_kenburns_photoText3" data-verticalposition="bottom">
    <img height="207" src="http://www.jsu.edu/_common/_files/system/college_rotate/graduate-studies/em.jpg" width="700"/>
    </li>
    </ul>
    <!-- TEXT -->
    <div class="bannerscollection_kenburns_texts" id="bannerscollection_kenburns_photoText1">
    <div class="bannerscollection_kenburns_text_line textElement31_generous" data-delay="0.5" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="25" data-initial-left="0" data-initial-top="15">Expand Your Career</div>
    <div class="bannerscollection_kenburns_text_line textElement32_generous" data-delay="0" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="65" data-initial-left="10" data-initial-top="140">Get a Masters of Business Administration</div>
    <div class="bannerscollection_kenburns_text_line textElement12_generous" data-delay="0.8" data-duration="0.5" data-fade-start="0" data-final-left="50" data-final-top="100" data-initial-left="370" data-initial-top="2">
    <span style="color: #000;">»</span>
     
    <a href="http://www.jsu.edu/graduate2/programs/businessadmin/index.html">Learn More</a>
    </div>
    </div>
    <div class="bannerscollection_kenburns_texts" id="bannerscollection_kenburns_photoText2">
    <div class="bannerscollection_kenburns_text_line textElement31_generous" data-delay="0.5" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="25" data-initial-left="0" data-initial-top="15">Change the World</div>
    <div class="bannerscollection_kenburns_text_line textElement32_generous" data-delay="0" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="65" data-initial-left="10" data-initial-top="140">We have many Educational Specialist programs</div>
    <div class="bannerscollection_kenburns_text_line textElement12_generous" data-delay="0.8" data-duration="0.5" data-fade-start="0" data-final-left="50" data-final-top="100" data-initial-left="370" data-initial-top="2">
    <span style="color: #000;">»</span>
     
    <a href="http://www.jsu.edu/graduate2/programs/emergencymgt/index.html">Learn More</a>
    </div>
    </div>
    <div class="bannerscollection_kenburns_texts" id="bannerscollection_kenburns_photoText3">
    <div class="bannerscollection_kenburns_text_line textElement31_generous" data-delay="0.5" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="25" data-initial-left="0" data-initial-top="15">Save Lives &amp; More</div>
    <div class="bannerscollection_kenburns_text_line textElement32_generous" data-delay="0" data-duration="0.5" data-fade-start="0" data-final-left="20" data-final-top="65" data-initial-left="10" data-initial-top="140">Get a Doctorate in Emergency Management</div>
    <div class="bannerscollection_kenburns_text_line textElement12_generous" data-delay="0.8" data-duration="0.5" data-fade-start="0" data-final-left="50" data-final-top="100" data-initial-left="370" data-initial-top="2">
    <span style="color: #000;">»</span>
     
    <a href="http://www.jsu.edu/graduate2/programs/emergencymgt/index.html">Learn More</a>
    </div>
    </div>
    <div class="bannerscollection_kenburns_text_line textElement31_generous" data-delay="0.5" data-duration="0.5" data-fade-start="0" data-final-left="70" data-final-top="35" data-initial-left="550" data-initial-top="35">Responsive
    <br/>
     design</div>
    <div class="bannerscollection_kenburns_text_line textElement32_generous" data-delay="0" data-duration="0.5" data-fade-start="0" data-final-left="73" data-final-top="140" data-initial-left="10" data-initial-top="140">Available parameter
    <br/>
     to disable responsive behaviour</div>
    <div class="bannerscollection_kenburns_text_line textElement33_generous" data-delay="0.8" data-duration="0.5" data-fade-start="0" data-final-left="308" data-final-top="23" data-initial-left="308" data-initial-top="2">
    <a href="http://codecanyon.net/user/LambertGroup" target="_blank">YES!</a>
    </div>
    </div>
    </content>
    <path>/_files/system/college_rotate/grad-stud_rotate_comp_kb</path>
    <dynamic-metadata>
    <name>navigation</name>
    <value>No</value>
    </dynamic-metadata>
    <site>_common</site>
    <name>grad-stud_rotate_comp_kb</name>
    </image-block>
    <image>
    <path>/</path>
    </image>
    <main-content>
    <h2>Interested in finding the right Graduate Program?  </h2>
    <p>We offer nine different 
    <a href="/entity/open.act?type=page&amp;id=0865c72d7f00000172b5eaaa6128ede5&amp;confId=41ced8387f00000123365dcc905d49be" target="_parent">degrees</a>
     with thirty majors at the master's level, the post-master's 
    <a href="/entity/open.act?type=page&amp;id=2a828ccf7f0000016ada5bd73cfa7a2b&amp;confId=41ced8387f00000123365dcc905d49be" target="_parent">Educational Specialist</a>
     degree, numerous concentrations  and certificates, and a Doctor of Science degree in Emergency Management.</p>
    <span>Whether you are fresh out of college or just wanting to further your career, we make every effort to provide leadership, support, and coordination to attain the highest quality graduate education.</span>
    <br/>
    <br/>
    <br/>
    <table border="0" cellpadding="5" cellspacing="5" style="width: 100%;">
    <tbody>
    <tr>
    <td colspan="3" valign="top">
    <h2>Spotlight on Education</h2>
    </td>
    </tr>
    <tr>
    <td style="width: 150px;" valign="top">
    <object data="http://www.youtube.com/v/yERb6-IaGM4&amp;feature" height="247" type="application/x-shockwave-flash" width="300">
    <param name="data" value="http://www.youtube.com/v/yERb6-IaGM4&amp;feature"/>
    <param name="src" value="http://www.youtube.com/v/yERb6-IaGM4&amp;feature"/>
    </object>
    <br/>
    <ul/>
    </td>
    <td colspan="2" valign="top">At it's core, education is about helping people progress, achieve and move forward.</td>
    </tr>
    </tbody>
    </table>
    <h2>
    <br/>
    Announcements:</h2>
    <ul>
    <li>Application Dates</li>
    <li>Program given an award</li>
    <li>New research on a subject</li>
    </ul>
    </main-content>
    <main-content-block>
    <path>/</path>
    </main-content-block>
    <calloutDisplay>Below Block</calloutDisplay>
    <callout-block>
    <content>
    <h2>Request Info</h2>
    <form action="http://www.jsu.edu/cgi-bin/Snd_msg_frm.pl" method="post">
    <input name="recipient" type="hidden" value="[email blocked]"/>
     
    <input name="subject" type="hidden" value="Request Info"/>
     
    <input name="redirect" type="hidden" value="http://www.jsu.edu/graduate2/thankyou.html"/>
     
    <script src="http://www.jsu.edu/graduate2/blocks/grad-request-info.js" type="text/javascript"></script>
    <table border="0" cellpadding="5" cellspacing="5">
    <tbody>
    <tr>
    <td>
    <select>
    <option>What are you interested in?</option>
    <option value="doc">Doctorate</option>
    <option value="ed-specialist">Educational Specialist</option>
    <option value="masters">Masters</option>
    <option value="grad-certificate">Graduate Certificates</option>
    <option value="online">Online</option>
    </select>
    </td>
    </tr>
    <tr>
    <td>
    <div id="doc">
    <select name="Doctorate">
    <option value="_">Select a program</option>
    <option value="Emergency Management">Emergency Management</option>
    </select>
    </div>
    <div id="ed-specialist">
    <select name="Educational Specialist">
    <option value="_">Select a program</option>
    <option value="Educational Specialist">Educational Specialist</option>
    <option value="Education">Education</option>
    <option value="Counselor Education">Counselor Education</option>
    <option value="Secondary Education">Secondary Education</option>
    </select>
    </div>
    <div id="masters">
    <select name="Masters">
    <option value="_">Select a program</option>
    <option value="Masters of Arts">Masters of Arts</option>
    <option value="Masters of Business Administration">MBA</option>
    <option value="Masters of Fine Arts">Masters of Fine Arts</option>
    <option value="Masters of Public Adminisration">Masters of Public Admin.</option>
    <option value="Masters of Science">Masters of Science (M.S.)</option>
    <option value="Masters of Science in Education">M.S. in Education</option>
    <option value="Masters of Science in Nursing">M.S. in Nursing</option>
    </select>
    </div>
    <div id="grad-certificate">
    <select name="Graduate Certificate">
    <option value="_">Select a program</option>
    <option value="Emergency Management">Emergency Management</option>
    <option value="Environmental Science Management">Environmental Science Mgt.</option>
    <option value="Geographical Information Systems">Geographical Info. Systems</option>
    <option value="Nursing Education">Nursing Education</option>
    <option value="Sport Management">Sport Management</option>
    </select>
    </div>
    <div id="online">
    <select name="Online">
    <option value="_">Select a program</option>
    <option value="Business">Business</option>
    <option value="Computer Science">Computer Science</option>
    <option value="Education">Education</option>
    <option value="Emergency Management">Emergency Management</option>
    <option value="Environmental Science">Environmental Science</option>
    <option value="Georgraphy">Georgraphy</option>
    <option value="Nursing">Nursing</option>
    <option value="Public Administration">Public Administration</option>
    <option value="Technology &amp; Engineering">Technology &amp; Engineering</option>
    </select>
    </div>
    <div id="id2">Element with an ID of "id2" 
    <select>
    <option>Opt1</option>
    <option>Opt2</option>
    <option>Opt3</option>
    </select>
    </div>
    <div id="next">"Next" element 
    <select>
    <option>Opt1</option>
    <option>Opt2</option>
    <option>Opt3</option>
    </select>
    </div>
    </td>
    </tr>
    <tr>
    <td>
    <input name="Name" placeholder="Name" size="20" type="text"/>
    </td>
    </tr>
    <tr>
    <td>
    <input name="Email" placeholder="E-mail" size="20" type="text"/>
    </td>
    </tr>
    </tbody>
    </table>
    <input type="submit" value="Submit"/>
    </form>
    </content>
    <path>/blocks/request-info</path>
    <site>Graduate Studies 2</site>
    <name>request-info</name>
    </callout-block>
    <callout>
    <br/>
    <h2>Let's Get Started!</h2>
    » 
    <a href="/entity/open.act?type=page&amp;id=0865c72d7f00000172b5eaaa6128ede5&amp;confId=41ced8387f00000123365dcc905d49be" target="_parent">Find a Degree</a>
     
    <br/>
    » 
    <a href="/entity/open.act?type=page&amp;id=7bd7bb357f0000010577e923a3661dbd&amp;confId=41ced8387f00000123365dcc905d49be" target="_parent">Apply Now!</a>
     
    <br/>
    <br/>
    <h2>Deadlines</h2>
    <p>
    <strong>Fall Semester</strong>
    <br/>
    By May 2012
    <br/>
    <br/>
    <strong>Spring Semester</strong>
    <br/>
    By Oct 2012
    <br/>
    <br/>
    <strong>Summer Semester</strong>
    <br/>
    By Feb 2013</p>
    <p>
    <a href="http://www.jsu.edu/giving" target="_blank">
    <img alt="Make a Gift" border="0" height="37" src="/renderfile/9b7a50537f0000015f8a48f2e38206d3/images/gift.jpg" width="137"/>
    </a>
    </p>
    <p>
    <a href="http://www.facebook.com/JSUGradStudies" target="_blank">
    <img alt="Like us on Facebook!" border="0" height="31" src="/renderfile/3f266ef97f00000155a8d188460ded7c/socialmedia/fb-icon.jpg" width="32"/>
    </a>
     
    <a href="#" target="_blank">
    <img alt="Follow us on Twitter!" border="0" height="31" src="/renderfile/3f266ef97f00000155a8d188460ded7c/socialmedia/twitter-icon.jpg" width="32"/>
    </a>
    </p>
    </callout>
    </content>
    <department-footer>
    <contentFooter/>
    <contentFooter-block>
    <content>
    <table align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0" width="700">
    <tbody>
    <tr>
    <td colspan="3" valign="top">
    <img height="10" src="/renderfile/3f266ef97f00000155a8d188460ded7c/template_images/spacer.gif" width="700"/>
    </td>
    </tr>
    <tr>
    <td valign="top" width="34%">
    <span style="font-size: 12px;">
    <span style="color: #909090;">Graduate Studies
    <br/>
    </span>
    </span>
     
    <span style="color: #909090; font-size: 12px;">
    <a href="/entity/open.act?type=page&amp;id=326a51207f000001201593ce0e389c87&amp;confId=c4b10a0b7f0000010f67c49c3de75fd2" target="_parent">Bibb Graves</a>
    , Room 319     
    <br/>
     700 Pelham Road North
    <br/>
     Jacksonville, AL 36265</span>
    <br/>
    </td>
    <td valign="top" width="33%">
    <span style="font-size: 12px; color: #909090;">Office Hours: Monday - Friday
    <br/>
     8:00a.m. - 4:30p.m.
    <br/>
    </span>
    </td>
    <td align="right" valign="top" width="33%">
    <p>
    <span style="color: #909090; font-size: 12px;">Phone: 256-782-5329
    <br/>
    800-231-JAX1 (5291)
    <br/>
    Fax: 256-782-5321
    <br/>
    E-mail: 
    <a href="***@***" target="_blank" title="E-mail Us!">[email blocked]</a>
    </span>
    </p>
    </td>
    </tr>
    <tr>
    <td colspan="3" valign="top">
    <br/>
    </td>
    </tr>
    </tbody>
    </table>
    </content>
    <path>/_files/system/Graduate_Studies/grad_footer_comp</path>
    <dynamic-metadata>
    <name>navigation</name>
    <value>No</value>
    </dynamic-metadata>
    <site>_common</site>
    <name>grad_footer_comp</name>
    </contentFooter-block>
    </department-footer>
    <link>
    <label/>
    <link/>
    <channelPhoto>
    <path>/</path>
    </channelPhoto>
    </link>
    </system-data-structure>
    </system-page>
    </calling-page>
    </system-index-block>
    
  3. 3 Posted by Ryan Griffith on 29 Oct, 2012 08:11 PM

    Ryan Griffith's Avatar

    Hi Graham,

    It looks like the Xpath for the $imageBlock variable is not grabbing grabbing the node you need.

    If you would like to keep the $imageBlock Xpath the same, you'll need to adjust $data to:

    #set ($data = $_XPathTool.selectSingleNode($contentRoot, "/system-index-block/calling-page/system-page/system-data-structure"))
    

    Note: you will need to adjust the other variables using $data in their Xpath call.

    Otherwise, you can adjust the Xpath for $imageBlock to something like the following:

    #set ($imageBlock = $_XPathTool.selectSingleNode($contentRoot, "//image-block"))
    

    Note: if there are multiple image-block choosers, this will return all of them.

    Please let me know if you have any questions.

    Thanks

  4. 4 Posted by Graham Lewis on 29 Oct, 2012 08:15 PM

    Graham Lewis's Avatar

    Tried that and I get the same thing. Here are two screen shots of what I'm seeing. That might make it make a bit more sense.

  5. 5 Posted by Ryan Griffith on 29 Oct, 2012 08:19 PM

    Ryan Griffith's Avatar

    Hm, It's definitely pulling in the content. Have you check for any JavaScript error(s)? It almost appears as though the slideshow isn't loading properly so you're just getting a dump of the content within the block.

  6. 6 Posted by Graham Lewis on 29 Oct, 2012 08:21 PM

    Graham Lewis's Avatar

    Forgive my ignorance haha - how do I check for Javascript errors? If you want to look at the page it's www.jsu.edu/graduate2

  7. 7 Posted by Graham Lewis on 29 Oct, 2012 08:41 PM

    Graham Lewis's Avatar

    Ok, so looking at it - the text that is showing didn't need to be there so I deleted it - now nothing is showing up. I used firebug and it seems that the code is there but in firebug is grayed out almost like it's "commented" out

  8. 8 Posted by Ryan Griffith on 29 Oct, 2012 08:45 PM

    Ryan Griffith's Avatar

    There's definitely a JavaScript error:

    Uncaught TypeError: Object #<Object> has no method 'bannerscollection_kenburns' /graduate2/:278
    

    I copied things locally and it appears that the additional loading of jQuery below the slideshow is affecting things, maybe the plugin isn't being loaded or registered properly. because of this. I removed this extra jQuery script tag and it seemed to work:

    <!-- PAGE WYSIWYG EDITOR -->
     <script src="http://www.jsu.edu/_common/_files/scripts/jquery-1.4.2.min.js" type="text/javascript" ></script>
    

    Note: It looks like you are loading jQuery 3 or so times, I would recommend looking into reducing this to try and reduce any future issues.

  9. 9 Posted by Graham Lewis on 29 Oct, 2012 08:49 PM

    Graham Lewis's Avatar

    Dang it if that didn't work, we def need to go through all of our scripts and consolidate. That will prob be my goal this week. Thanks for the help!

  10. 10 Posted by Ryan Griffith on 30 Oct, 2012 12:01 PM

    Ryan Griffith's Avatar

    Glad we got that figured out, Graham.

    Have a great day!

  11. Ryan Griffith closed this discussion on 30 Oct, 2012 12:01 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