Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8320777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:46:39+00:00 2026-06-08T22:46:39+00:00

I have a view which displays content in a table (approx. 30 rows). I

  • 0

I have a view which displays content in a table (approx. 30 rows). I have assigned a term to one row (in this instance vocab = highlighted, term = yes). What I would like to do is only show the 2 results above and below the highlighted row e.g.

Rows 1-3 not displayed

~~~~~~~~~~~~~~~~~~~~~~~~

Row 4

Row 5

Row 6 (highlighted = yes)

Row 7

Row 8

~~~~~~~~~~~~~~~~~~~~~~~~

Rows 9-X not displayed

How would I go about doing this?

Thanks,

S

EDIT:

View export below:

$view = new view;
$view->name = 'league_cup_table_teaser';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'League/cup table teaser';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'League/cup table teaser';
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['hide_empty'] = 0;
$handler->display->display_options['row_options']['default_field_elements'] = 0;
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['title']['alter']['external'] = 0;
$handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['title']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0;
$handler->display->display_options['fields']['title']['alter']['more_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_wrapper_type'] = 'h2';
$handler->display->display_options['fields']['title']['element_default_classes'] = 1;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['title']['link_to_node'] = 0;
/* Field: Content: Teams */
$handler->display->display_options['fields']['field_teams']['id'] = 'field_teams';
$handler->display->display_options['fields']['field_teams']['table'] = 'field_data_field_teams';
$handler->display->display_options['fields']['field_teams']['field'] = 'field_teams';
$handler->display->display_options['fields']['field_teams']['label'] = '';
$handler->display->display_options['fields']['field_teams']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_teams']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_teams']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_teams']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_teams']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_teams']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_teams']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_teams']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_teams']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_teams']['alter']['more_link'] = 0;
$handler->display->display_options['fields']['field_teams']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_teams']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_teams']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_teams']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_teams']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_teams']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_teams']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_teams']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['field_teams']['type'] = 'field_collection_views_view';
$handler->display->display_options['fields']['field_teams']['settings'] = array(
  'name' => 'field_collection_league_cup_table_teaser',
  'display_id' => 'default',
  'add' => '',
);
$handler->display->display_options['fields']['field_teams']['group_rows'] = 1;
$handler->display->display_options['fields']['field_teams']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_teams']['delta_reversed'] = 0;
$handler->display->display_options['fields']['field_teams']['delta_first_last'] = 0;
$handler->display->display_options['fields']['field_teams']['field_api_classes'] = 0;
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'table' => 'table',
);
/* Filter criterion: Content: Promoted to front page */
$handler->display->display_options['filters']['promote']['id'] = 'promote';
$handler->display->display_options['filters']['promote']['table'] = 'node';
$handler->display->display_options['filters']['promote']['field'] = 'promote';
$handler->display->display_options['filters']['promote']['value'] = '1';

/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T22:46:41+00:00Added an answer on June 8, 2026 at 10:46 pm

    You can do this by adding a layer of jQuery. Not as elegant as perhaps using a pure view but nevertheless…

    Dynamically hiding a portion of a HTML table

    Demo: http://jsbin.com/ahigi/1/edit

    S

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an action 'approval' that renders a view which displays some content from
I have a table view which loads another xib file and uses the content
In my Flask app, I have a view which displays a post @post_blueprint.route('/post/<int:year>/<int:month>/<title>') def
Hi All, I have a web-view in my application which displays some text with
I have a list view item which has a button and displays properties on
Say I have a template which displays a view based on a property: {{#if
I have Grouped Table View in which I want to display Contact details. But
I have a View in which I'm using a tooltip provided by this site:
I have an application with a view-based NSTableView in it. Inside this table view,
I have a UITableView showing data from a plist file. For this table view,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.