I have been scouring drupal.org, but I just don't even know where to begin.

Please go to:http://ngetal.pair.com/bobpcw/Arca%20Swiss%20Articles

You will see that everything is okay here.

If you click on any of the links in the left sidebar, the left sidebar (and I think even the breadcrumbs) are moving to the bottom of the page.

You will notice that even the link to the article that's the same article that appears for the link above creates this problem. (the link above displays "History and Identification of ARCA-SWISS View Cameras
" with left sidebar and blocks all okay. But if you click the link to the same article in the block, the display weirdness happens)

I am attaching the custom tpl.php files in use (appended .txt to the end of them) and I am happy to send any other info needed to get to the bottom of this. (I haven't customized much but since I am floundering about fixing this I'm attaching the custom files anyway...)

I'm a newbie (well not to web site development) so I could really use some tender help here!

Thanks in advance.

Other info.

This is a Zen subtheme...

Here's the export of the view...

$view = new view;
$view->name = 'Arca_Swiss_Articles';
$view->description = 'Listing of Articles Arca Swiss only';
$view->tag = 'Arca Articles';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
  ),
));
$handler->override_option('sorts', array(
  'title' => array(
    'order' => 'ASC',
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'status' => array(
    'operator' => '=',
    'value' => '1',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'arca_article' => 'arca_article',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Arca Swiss Articles');
$handler->override_option('use_pager', '1');
$handler = $view->new_display('page', 'Page: Arca Articles', 'page_1');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'link_to_node_revision' => 0,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node_revisions',
    'field' => 'title',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Use default',
    ),
  ),
  'body' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'exclude' => 0,
    'id' => 'body',
    'table' => 'node_revisions',
    'field' => 'body',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'status' => array(
    'operator' => '=',
    'value' => '1',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'arca_article' => 'arca_article',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
  'title' => array(
    'operator' => 'contains',
    'value' => 'History',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'case' => 1,
    'id' => 'title',
    'table' => 'node_revisions',
    'field' => 'title',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('style_options', array(
  'grouping' => '',
));
$handler->override_option('path', 'Arca Swiss Articles');
$handler->override_option('menu', array(
  'type' => 'normal',
  'title' => 'Arca Swiss Info',
  'description' => '',
  'weight' => '3',
  'name' => 'primary-links',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler = $view->new_display('block', 'Block: Arca Articles', 'block_1');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
));

Comments

audster’s picture

Title: Views block moving to bottom of Views page » Closing Div tag is now and orphan in views generated node-view_name.tpl.php file
Category: support » bug
StatusFileSize
new2.78 KB

okay I solved this but I'm not marking it solved because there's some sort of weirdness going on
and I'm not sure if it's Views related or Zen related...

I am using Zen->Genesis Dark subtheme.

Here's how I solved it which also talks about node.tpl.php from Zen having the closing div tag in question and the node-arca_article.tpl.php file created by Views where this closing div is now an orphan...

I had a similiar problem (see post http://drupal.org/node/1117530) (link will not show problem anymore since I solved it though) (I am using a subtheme of Genesis Dark)

I finally discovered the problem (note this is not a template that I made, it was generated by Views)

in my file node-arca_article.tpl.php the

at end of code (look for *****

****)
was an orphan. once I deleted it everything worked fine.

I would love to know what caused this as well, since I am just starting to get this site together and I would like to avoid any future weirdness

(Also, I found this relatively easily using code lobster as it highlighted the orphan

in bright red - and I suspected the node file because when i looked at the page source a "node div" was only inserted when going to clicked page (see post I show above to understand what I'm talking about here)

<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"><div class="node-inner">

  <?php print $picture; ?>

  <?php if (!$page): ?>
    <h2 class="title">
      <a href="<?php print $node_url; ?>" title="<?php print $title ?>"><?php print $title; ?></a>
    </h2>
  <?php endif; ?>

  <?php if ($unpublished): ?>
    <div class="unpublished"><?php print t('Unpublished'); ?></div>
  <?php endif; ?>

<div id="arca-article-subtitle">
<?php print $node->field_arca_article_subtitle[0]['view']?>
</div>

<!-- <?php if ($submitted || $terms): ?>
   <div class="meta">
     <?php if ($submitted): ?>
      <div class="submitted">
         <?php print $submitted; ?>
       </div>
     <?php endif; ?>-->

      <?php if ($terms): ?>
        <div class="terms terms-inline"><?php print t(' in ') . $terms; ?></div>
      <?php endif; ?>
    <!--</div>-->
  <?php endif; ?>

  <div class="content">
    <?php print $node->content['body']['#value']; ?>
  </div>

  <?php print $links; ?>

</div>*******</div> <--- DELETED THIS GUY ****<!-- /node-inner, /node -->
the original file node.tpl.php (provided by Zen) also has the "extra"

tag...

So I'm really confused about why this is suddenly a problem.

willing to dig into it with any interested party!,

I am attaching the Zen node.tpl.php file for reference...

audster’s picture

Title: Closing Div tag is now and orphan in views generated node-view_name.tpl.php file » Closing Div tag is now an orphan in views generated node-view_name.tpl.php file
mustanggb’s picture

Status: Active » Closed (won't fix)