I created a page view which otherwise looks fine except I cannot get header or footer info to appear. I put
test in the footer and marked input format full html just in case but nothing shows up. I'm sure I'm forgetting something obvious but can't think what...
$view = new view;
$view->name = 'member_healers';
$view->description = 'Member Healers';
$view->tag = '';
$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(
'field_service_value' => array(
'label' => '',
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_service_value',
'table' => 'node_data_field_service',
'field' => 'field_service_value',
'relationship' => 'none',
),
'title' => array(
'label' => '',
'link_to_node' => 1,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
),
'field_first_name_value' => array(
'label' => '',
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_first_name_value',
'table' => 'node_data_field_first_name',
'field' => 'field_first_name_value',
'relationship' => 'none',
),
'field_last_name_value' => array(
'label' => '',
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_last_name_value',
'table' => 'node_data_field_last_name',
'field' => 'field_last_name_value',
'relationship' => 'none',
),
'field_business_name_value' => array(
'label' => '',
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_business_name_value',
'table' => 'node_data_field_business_name',
'field' => 'field_business_name_value',
'relationship' => 'none',
),
'teaser' => array(
'label' => '',
'exclude' => 0,
'id' => 'teaser',
'table' => 'node_revisions',
'field' => 'teaser',
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'field_service_value' => array(
'order' => 'ASC',
'id' => 'field_service_value',
'table' => 'node_data_field_service',
'field' => 'field_service_value',
'relationship' => 'none',
),
'title' => array(
'order' => 'ASC',
'id' => 'title',
'table' => 'node',
'field' => 'title',
'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(
'member_healers' => 'member_healers',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'language' => array(
'operator' => 'in',
'value' => array(
'***CURRENT_LANGUAGE***' => '***CURRENT_LANGUAGE***',
'***NO_LANGUAGE***' => '***NO_LANGUAGE***',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'language',
'table' => 'node',
'field' => 'language',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('header', '
');
$handler->override_option('header_format', '3');
$handler->override_option('header_empty', 0);
$handler->override_option('footer', '
test');
$handler->override_option('footer_format', '3');
$handler->override_option('footer_empty', 0);
$handler->override_option('items_per_page', 0);
$handler->override_option('row_options', array(
'inline' => array(
'field_first_name_value' => 'field_first_name_value',
'field_last_name_value' => 'field_last_name_value',
),
'separator' => '',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'healing/healers/members');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'weight' => 0,
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'weight' => 0,
));
Comments
Comment #1
merlinofchaos commentedThere is nothing in the header or footer here. The base template is set up to not print anything (even a div) if there isn't any data there.
Comment #2
edwardcuf commentedI have the same sort of problem, so there may be more to this. I'm using 6.x-2.0-rc3 too.
I have a header placed in a view which needs to have Full HTML as its input format. The header does not display at all. I made a template for the view which would print the header even if no header was detected (removed the if $header statement) and it still didn't print the header.
As soon as I changed the input format back to Filtered HTML the header is displayed as plain text.
Comment #3
merlinofchaos commentedAre you sure you're using rc3? rc2 had a bug like that, but it should be fixedin rc3.
Comment #4
edwardcuf commentedHi merlinofchaos
Yes I am using RC3. Just to make sure, I just re-downloaded RC3 from here, deleted RC3 from my Drupal install , reinstalled views RC3 and ran update.php. Headers are still not displayed.
I have narrowed the problem down a bit. My Full HTML input format has all the filters turned off. As soon as I enable any of the four default input format filters, the header is displayed correctly. If all four of these filters are turned off then the header disappears.
I created a new test input format and the problem is the same. As soon as all filters are turned off on that test input format the header disappears.
I hope this narrows down the problem and you can recreate this.
Comment #5
merlinofchaos commentedWhoa, that's weird. And you don't have this problem with a node using this filter?
Comment #6
edwardcuf commentedHi merlinofchaos
No problems occur on nodes at all using this filter.
I did a little more experimenting. I did a fresh install of Drupal 6.4, completely new database with Views 6.x-2.0-rc3 as the only non-core module installed. Removed all filters from Full HTML input format. Created a new view with a header using Full HTML input header and no header is displayed.
Comment #7
cpelham commentedI still can't get them to show up either. I have tried setting the footer filter to filtered HTML and full HTML but in neither case does the sample text that I have entered get displayed.
Comment #8
traviscarden commentedI've got the same problem. It began in 6.x-2.0-rc3, but I still have it with 6.x-2.0-rc4. It last worked in 6.x-2.0-rc2.
Comment #9
merlinofchaos commentedPlease export the simplest view you can that has this problem occurring; I have all of this stuff working as intended on my test system and can't figure out what's wrong. When you have one of these, please set the status back to 'active'.
Comment #10
traviscarden commentedI was able to reproduce the problem with a pretty simple view:
I tested the above view on rc1 through rc4 and dev. Rc1 and rc2 worked fine. Rc3, rc4, and dev all failed to show either a header or a footer.
Comment #11
vmiliano commentedhaha, awesome, I've been tearing my hair out over this for the last two days and it's already filed.
I'm experiencing the same issue. I have a "Raw HTML" input format that has all the input filters unchecked. With this input format, Views doesn't render the header or the footer. With my "Corrected Raw HTML" input format, which has "HTML Corrector" enabled (or with any other input format with any input filters enabled), the headers and footers are outputted.
This is 6.x-2.0-rc4.
Comment #12
traviscarden commentedOoh! Good catch, vmiliano! I too am using the "Full HTML" input format without any filters enabled. Changing the input format or enabling a filter each caused the headers and footers to re-appear.
Comment #13
capellicI can confirm this as well. It also affects the Empty text. If I have Full HTML turned on with no filters enabled, it doesn't show up. If I use any other input type profile that has a filter enabled, then the text shows up.
Comment #14
merlinofchaos commentedOk, I think I figured this out and have it fixed in CVS.
Comment #15
traviscarden commentedThanks so much for all your hard work on Views, merlin. :)
Comment #16
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.