Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Okay, here's a mystery:

I'm working on a collapsing menu using Couch markup and Bootstrap; it's been working fine, and today it stopped. I hadn't touched the code.

Here's the code:

Code: Select all
<div class="row">
   <div class="col-md-3">
                  <!-- <cms:embed 'branch_sidebar.html' /> -->
                  <cms:if k_page_name='harlem-art-gallery' >
                     <cms:set parentPage='harlem-library' 'global' />
                  <cms:else />
                     <cms:set parentPage=k_page_name 'global' />
                  </cms:if>
                  <div class="panel panel-primary">
                     <div class="panel-heading">
                        <h2>Menu</h2>
                     </div>
                     <div class="panel-body">
                        <h3>Branch Services</h3>
                        <div id="accordion" class="list-group">
                                                <cms:nested_pages masterpage='index.php' childof=parentPage extended_info='1' ignore_show_in_menu='1'>
                              <cms:if k_level_start >
                                 <cms:if k_level != '0'>
                                    <div class="list-group collapse" id="<cms:show k_nestedpage_name />">
                                 </cms:if>
                              </cms:if>
                              <cms:if k_element_start >
                                 <cms:if k_immediate_children >
                                    <a class="list-group-item" data-toggle="collapse" data-parent="#accordion" data-target="<cms:concat '#' "<cms:show k_nestedpage_name />" />">
                                    <cms:show k_nestedpage_title /><span class="pull-right"><b class="caret"></b></span></a>
                                 <cms:else />
                                    <cms:if k_open_external >
                                       <a class="list-group-item" onclick="navAway()" href="<cms:show k_nestedpage_link />">
                                          <cms:show k_nestedpage_title />
                                       </a>
                                    <cms:else />
                                       <a class="list-group-item" href="<cms:show k_nestedpage_link />">
                                       <cms:show k_nestedpage_title />
                                       </a>
                                    </cms:if>
                     
                                 </cms:if >
                              </cms:if>
               
                              <cms:if (k_level_end) && (k_level!='0') ></div></cms:if>
           
                           </cms:nested_pages>
                        </div>
                     </div>


The links are not working anywhere in the entire <div class="row">, neither the sidebar nor the main frame.

However, I was doing diagnostics and ran a <cms:dump />, like so:

Code: Select all
<div class="row">
   <div class="col-md-3">
                  <!-- <cms:embed 'branch_sidebar.html' /> -->
                  <cms:if k_page_name='harlem-art-gallery' >
                     <cms:set parentPage='harlem-library' 'global' />
                  <cms:else />
                     <cms:set parentPage=k_page_name 'global' />
                  </cms:if>
                  <div class="panel panel-primary">
                     <div class="panel-heading">
                        <h2>Menu</h2>
                     </div>
                     <div class="panel-body">
                        <h3>Branch Services</h3>
                        <div id="accordion" class="list-group">
                           <cms:dump />
                           <cms:nested_pages masterpage='index.php' childof=parentPage extended_info='1' ignore_show_in_menu='1'>
                              <cms:if k_level_start >
                                 <cms:if k_level != '0'>
                                    <div class="list-group collapse" id="<cms:show k_nestedpage_name />">
                                 </cms:if>
                              </cms:if>
                              <cms:if k_element_start >
                                 <cms:if k_immediate_children >
                                    <a class="list-group-item" data-toggle="collapse" data-parent="#accordion" data-target="<cms:concat '#' "<cms:show k_nestedpage_name />" />">
                                    <cms:show k_nestedpage_title /><span class="pull-right"><b class="caret"></b></span></a>
                                 <cms:else />
                                    <cms:if k_open_external >
                                       <a class="list-group-item" onclick="navAway()" href="<cms:show k_nestedpage_link />">
                                          <cms:show k_nestedpage_title />
                                       </a>
                                    <cms:else />
                                       <a class="list-group-item" href="<cms:show k_nestedpage_link />">
                                       <cms:show k_nestedpage_title />
                                       </a>
                                    </cms:if>
                     
                                 </cms:if >
                              </cms:if>
               
                              <cms:if (k_level_end) && (k_level!='0') ></div></cms:if>
           
                           </cms:nested_pages>
                        </div>
                     </div>


And the menu and all other <div class='row'> links work.

I've been looking at the source code for the page with the <cms:dump /> in, but there's no magical tag that makes it start working. Moreover, in an attempt at a lazy fix I put the <cms:dump /> in a <div style="display: none;"> to preserve the contents without it being visible. The menu resumed not working.

So now I'm thoroughly confused. :)

Here's the html of the <cms:dump /> section. Any help piecing together what's happened will be highly appreciated.

Code: Select all
                           <UL><LI><b><font color="red">__ROOT__</font></b><UL><LI><b>k_user_id: </b>-1</LI><LI><b>k_user_name: </b>ccosystemslib</LI><LI><b>k_user_title: </b>ccosystemslib</LI><LI><b>k_user_email: </b>slink@columbiacountyga.gov</LI><LI><b>k_user_access_level: </b>10</LI><LI><b>k_user_disabled: </b>0</LI><LI><b>k_logged_in: </b>1</LI><LI><b>k_logout_link: </b>http://dev.gchrl.org/members/login.php?act=logout&nonce=d6337a9989ca751b889bcca9ea8576ac&redirect=%2Fbranches.php%3Fp%3D7</LI><LI><b>k_extended_user_id: </b>1</LI><LI><b>k_user_template: </b>members/index.php</LI><LI><b>k_user_login_template: </b>members/login.php</LI><LI><b>k_user_lost_password_template: </b>members/lost-password.php</LI><LI><b>k_user_registration_template: </b>members/register.php</LI><LI><b>k_cms_version: </b>1.4.5RC1</LI><LI><b>k_cms_build: </b>20140929</LI><LI><b>k_admin_link: </b>http://dev.gchrl.org/couch/</LI><LI><b>k_admin_page: </b></LI><LI><b>k_site_link: </b>http://dev.gchrl.org/</LI><LI><b>k_admin_path: </b>/home/gchrl.org/domains/dev.gchrl.org/public_html/couch/</LI><LI><b>k_site_path: </b>/home/gchrl.org/domains/dev.gchrl.org/public_html/</LI><LI><b>k_template_title: </b>Branches</LI><LI><b>k_template_name: </b>branches.php</LI><LI><b>k_template_id: </b>7</LI><LI><b>k_template_is_clonable: </b>1</LI><LI><b>k_template_desc: </b></LI><LI><b>k_template_access_level: </b>0</LI><LI><b>k_template_is_commentable: </b>0</LI><LI><b>k_template_is_executable: </b>1</LI><LI><b>k_template_is_hidden: </b>0</LI><LI><b>k_template_order: </b>0</LI><LI><b>k_template_nested_pages: </b>1</LI><LI><b>k_template_gallery: </b>0</LI><LI><b>k_template_link: </b>http://dev.gchrl.org/branches.php</LI><LI><b>k_prettyurls: </b>0</LI><LI><b>k_site_charset: </b>utf-8</LI><LI><b>k_email_from: </b>slink@columbiacountyga.gov</LI><LI><b>k_email_to: </b>slink@columbiacountyga.gov</LI><LI><b>k_is_commentable: </b>0</LI><LI><b>k_is_list_page: </b>0</LI><LI><b>k_page_title: </b>Columbia County Library</LI><LI><b>k_page_name: </b>columbia-county-library</LI><LI><b>k_page_folder_id: </b></LI><LI><b>k_publish_date: </b></LI><LI><b>k_access_level: </b>0</LI><LI><b>k_comments_open: </b>1</LI><LI><b>k_nested_parent_id: </b>89</LI><LI><b>k_weight: </b>1</LI><LI><b>k_show_in_menu: </b>1</LI><LI><b>k_menu_text: </b></LI><LI><b>k_is_pointer: </b>0</LI><LI><b>k_open_external: </b>0</LI><LI><b>k_pointer_link: </b></LI><LI><b>k_pointer_link_detail: </b></LI><LI><b>k_masquerades: </b>0</LI><LI><b>k_strict_matching: </b>0</LI><LI><b>branch_blurb: </b><p>&nbsp;</p>

<p>&nbsp;</p>

<div itemscope="" itemtype="http://schema.org/organization">
<div style="display: none;"><span itemprop="legalName">Greater Clarks Hill Regional Library</span><span itemprop="suborganization">Columbia County Libraries</span><span itemprop="department">Evans Library</span></div>

<div itemscope="" itemtype="http://schema.org/postaladdress">
<div style="text-align: center;"><em><span itemprop="streetaddress">7022 Evans Town Center Boulevard</span> </em></div>

<div style="text-align: center;"><em><span itemprop="addresslocality">Evans</span>, <span itemprop="addressregion">GA</span> <span itemprop="postalcode">30809</span> </em></div>
</div>

<div style="text-align: center;"><em>Phone: <span itemprop="telephone">xxxx</span></em></div>

<div style="text-align: center;"><em>Manager: <a href="xxxx"><span>xxxx</span></a></em></div>

<div style="text-align: center;">&nbsp;</div>

<div style="text-align: center;">
<p>&nbsp;</p>

<table align="center" border="1" cellpadding="5" cellspacing="1" class="table table-hover" id="ccoHours" style="width: 45%;" summary="Columbia County Library Hours">
   <thead>
      <tr>
         <th colspan="2" scope="col">Hours of Operation</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <td style="text-align: left;">Monday, Tuesday, Thursday</td>
         <td style="text-align: right;">10:00am-8:00pm</td>
      </tr>
      <tr>
         <td style="text-align: left;">Wednesday, Friday, Saturday</td>
         <td style="text-align: right;">10:00am-5:00pm</td>
      </tr>
      <tr>
         <td style="text-align: left;">Sunday</td>
         <td style="text-align: right;">2:00pm-5:00pm</td>
      </tr>
   </tbody>
</table>

<p style="text-align: left;">&nbsp;</p>
</div>

<div>&nbsp;</div>

<div><span style="line-height: 1.6em;">The Columbia County Library has a capacity of 95,000 adult books and 58,000 children&#39;s books, along with a wide selection of DVDs, audiobooks, and other resources. There are 42 public computers available - 12 upstairs for children, 30 downstairs for adults - as well as public WiFi. In addition, the building houses a 300-seat performing arts theater, meeting rooms, classrooms, the Friends of the Library book store, and the Catch Phrase Cafe. The park adjoining the library features three playgrounds including handciap accessible areas, a large pond frequented by ducks, geese, and turtles, and a 1/3</span><sup style="line-height: 1.6em;">rd</sup><span style="line-height: 1.6em;">&nbsp;mile walking trail.</span></div>
</div>
</LI><LI><b>branch_image: </b>http://dev.gchrl.org/couch/uploads/image/cco.jpg</LI><LI><b>k_is_page: </b>1</LI><LI><b>k_is_list: </b>0</LI><LI><b>k_page_id: </b>7</LI><LI><b>k_page_date: </b>2014-09-26 13:32:00</LI><LI><b>k_page_creation_date: </b>2014-09-26 13:32:00</LI><LI><b>k_page_modification_date: </b>2014-11-18 10:24:31</LI><LI><b>k_page_draft_of: </b>0</LI><LI><b>k_page_folderid: </b></LI><LI><b>k_page_foldername: </b></LI><LI><b>k_page_foldertitle: </b></LI><LI><b>k_page_folderdesc: </b></LI><LI><b>k_page_folderlink: </b></LI><LI><b>k_page_folderpagecount: </b></LI><LI><b>k_page_foldertotalpagecount: </b></LI><LI><b>k_comments_count: </b>0</LI><LI><b>k_prev_nestedpage_id: </b>89</LI><LI><b>k_prev_nestedpage_name: </b>columbia-county-branches</LI><LI><b>k_prev_nestedpage_title: </b>Columbia County Branches</LI><LI><b>k_prev_nestedpage_link: </b>http://dev.gchrl.org/branches.php?p=89</LI><LI><b>k_next_nestedpage_id: </b>8</LI><LI><b>k_next_nestedpage_name: </b>euchee-creek-library</LI><LI><b>k_next_nestedpage_title: </b>Euchee Creek Library</LI><LI><b>k_next_nestedpage_link: </b>http://dev.gchrl.org/branches.php?p=8</LI><LI><b>k_page_link: </b>http://dev.gchrl.org/branches.php?p=7</LI><LI><b>parentPage: </b>columbia-county-library</LI></UL></LI></UL>
Issue resolved. :)
2 posts Page 1 of 1