The Basic Meeting List Toolbox

The [[BMLT_SIMPLE]] Shortcode Example 1

INTRODUCTION

This shortcode will access the Greater New York Region Root Server. It will display the entire ASC meeting list for the Lower Hudson Valley ASC. This is a very small ASC that only has a few meetings. Displaying the interactive meeting search (the standard [[bmlt]] shortcode) is not really optimal. Folks would much rather see a simple table.

We’ll give them that. We’ll also use evil <table> elements, as opposed to <div> elements. These examples all use the following shortcode: [[bmlt_simple(1339674838##-##switcher=GetSearchResults&services=1045)]]. We simply have them wrapped in different class elements, so we can selectively add styles. Each of these is a “live” rendering from the Greater New York Region server. That means that this page will load slowly. Can’t be helped.

Pawling, NY, 12594Practicing Principles In Pawling6:00 PMSundayThe Lutheran Church of Christ the King, 18 Pine Drive (Intersection of Route 22)SD,St,BK
Garrison, NY, 10524, USAA New Start7:00 PMSundayGraymoor (off Rt. 9), 40 Franciscan Way (4th Floor Conference Room. Go all the way up the hill. Use Giftshop/Bookstore entrance.)O,BT,IW,WC,BK
Wappingers, NY, 12590Keep Hope Alive7:30 PMMondayZion Episcopal Church, 12 Saterlee Pl.O,B
Yorktown Heights, NY, 10598, USAYorktown Recovery7:30 PMMondayFirst Presbyterian Church, Front Room, 2880 Crompond Rd (US-202 & Rt 132)C,B,WC
Katonah, NY, 10536, USAEnd of the Road7:45 PMTuesdaySt Lukes Episcopal Church, Parish House, 68 Bedford Rd (@Katonah Ave)C,St,TW,WC
Brewster, NY, 10509, USAStep It Up7:30 PMWednesdaySt. Lawrence O'Toole Church, 31 Prospect Street (In rectory building across from church. NO SMOKING IN ANY AREAS ON OR NEAR CHURCH GROUNDS)C,Rr
Wappingers, NY, 12590Miracles Happen7:30 PMWednesdayMt. Alvernia Retreat Center, Delavergne Ave.O,St
Yorktown Heights, NY, 10598, USAYorktown Recovery7:30 PMThursdayFirst Presbyterian Church, Front Room, 2880 Crompond Rd (US-202 & @Rt 132)C,St,WC
Hopewell Junction, NY, 12533, USASearching For Serenity7:45 PMThursdayChurch of Saint Denis, 602 Beekman RdC,D,St
Brewster, NY, 10509, USAStep It Up7:30 PMFridaySt. Lawrence O'Toole Church, 31 Prospect Street (In rectory building across from church. NO SMOKING ON OR NEAR CHURCH GROUNDS)C,Rr
Pawling, NY, 12594Practicing Principles In Pawling11:00 AMSaturdayThe Lutheran Church of Christ the King, 18 Pine Drive (Intersection of Route 22)SD,St,BK
Pleasantville, NY, 10570, USAA Better Way of Living7:30 PMSaturdayPace University, 861 Bedford Rd. (Anniversaries held on the last Saturday of the month are open meetings.)C,B,CL,LC
Katonah, NY, 10536Just for Tonight9:00 PMSaturdayFirst Presbyterian Church, 31 Bedford Rd.JT,SD

Now, this is pretty basic, but it has a lot of “noise.” For example, we don’t need to display the state and zip codes. People know where the towns are (it’s for a local constituency). Let’s hide those with CSS.

We add the following CSS to the site CSS:

div#bmlt_simple_shortcode_demo_div table#lhv_demo_layout_table_2 span.c_comdef_search_results_province,
div#bmlt_simple_shortcode_demo_div table#lhv_demo_layout_table_2 span.c_comdef_search_results_nation,
div#bmlt_simple_shortcode_demo_div table#lhv_demo_layout_table_2 span.c_comdef_search_results_zip
{
    display:none;
}
Pawling, NY, 12594Practicing Principles In Pawling6:00 PMSundayThe Lutheran Church of Christ the King, 18 Pine Drive (Intersection of Route 22)SD,St,BK
Garrison, NY, 10524, USAA New Start7:00 PMSundayGraymoor (off Rt. 9), 40 Franciscan Way (4th Floor Conference Room. Go all the way up the hill. Use Giftshop/Bookstore entrance.)O,BT,IW,WC,BK
Wappingers, NY, 12590Keep Hope Alive7:30 PMMondayZion Episcopal Church, 12 Saterlee Pl.O,B
Yorktown Heights, NY, 10598, USAYorktown Recovery7:30 PMMondayFirst Presbyterian Church, Front Room, 2880 Crompond Rd (US-202 & Rt 132)C,B,WC
Katonah, NY, 10536, USAEnd of the Road7:45 PMTuesdaySt Lukes Episcopal Church, Parish House, 68 Bedford Rd (@Katonah Ave)C,St,TW,WC
Brewster, NY, 10509, USAStep It Up7:30 PMWednesdaySt. Lawrence O'Toole Church, 31 Prospect Street (In rectory building across from church. NO SMOKING IN ANY AREAS ON OR NEAR CHURCH GROUNDS)C,Rr
Wappingers, NY, 12590Miracles Happen7:30 PMWednesdayMt. Alvernia Retreat Center, Delavergne Ave.O,St
Yorktown Heights, NY, 10598, USAYorktown Recovery7:30 PMThursdayFirst Presbyterian Church, Front Room, 2880 Crompond Rd (US-202 & @Rt 132)C,St,WC
Hopewell Junction, NY, 12533, USASearching For Serenity7:45 PMThursdayChurch of Saint Denis, 602 Beekman RdC,D,St
Brewster, NY, 10509, USAStep It Up7:30 PMFridaySt. Lawrence O'Toole Church, 31 Prospect Street (In rectory building across from church. NO SMOKING ON OR NEAR CHURCH GROUNDS)C,Rr
Pawling, NY, 12594Practicing Principles In Pawling11:00 AMSaturdayThe Lutheran Church of Christ the King, 18 Pine Drive (Intersection of Route 22)SD,St,BK
Pleasantville, NY, 10570, USAA Better Way of Living7:30 PMSaturdayPace University, 861 Bedford Rd. (Anniversaries held on the last Saturday of the month are open meetings.)C,B,CL,LC
Katonah, NY, 10536Just for Tonight9:00 PMSaturdayFirst Presbyterian Church, 31 Bedford Rd.JT,SD

That’s nice, but the gridlines are kinda fugly. Let’s replace them with alternating backgrounds.

We add the following CSS to the site CSS:

div#bmlt_simple_shortcode_demo_div table#lhv_demo_layout_table_3 table,
div#bmlt_simple_shortcode_demo_div table#lhv_demo_layout_table_3 tr,
div#bmlt_simple_shortcode_demo_div table#lhv_demo_layout_table_3 td
{
    border:none;
}

div#bmlt_simple_shortcode_demo_div table#lhv_demo_layout_table_3 tr.bmlt_alt_0
{
    background-color:#efefef;
}
Pawling, NY, 12594Practicing Principles In Pawling6:00 PMSundayThe Lutheran Church of Christ the King, 18 Pine Drive (Intersection of Route 22)SD,St,BK
Garrison, NY, 10524, USAA New Start7:00 PMSundayGraymoor (off Rt. 9), 40 Franciscan Way (4th Floor Conference Room. Go all the way up the hill. Use Giftshop/Bookstore entrance.)O,BT,IW,WC,BK
Wappingers, NY, 12590Keep Hope Alive7:30 PMMondayZion Episcopal Church, 12 Saterlee Pl.O,B
Yorktown Heights, NY, 10598, USAYorktown Recovery7:30 PMMondayFirst Presbyterian Church, Front Room, 2880 Crompond Rd (US-202 & Rt 132)C,B,WC
Katonah, NY, 10536, USAEnd of the Road7:45 PMTuesdaySt Lukes Episcopal Church, Parish House, 68 Bedford Rd (@Katonah Ave)C,St,TW,WC
Brewster, NY, 10509, USAStep It Up7:30 PMWednesdaySt. Lawrence O'Toole Church, 31 Prospect Street (In rectory building across from church. NO SMOKING IN ANY AREAS ON OR NEAR CHURCH GROUNDS)C,Rr
Wappingers, NY, 12590Miracles Happen7:30 PMWednesdayMt. Alvernia Retreat Center, Delavergne Ave.O,St
Yorktown Heights, NY, 10598, USAYorktown Recovery7:30 PMThursdayFirst Presbyterian Church, Front Room, 2880 Crompond Rd (US-202 & @Rt 132)C,St,WC
Hopewell Junction, NY, 12533, USASearching For Serenity7:45 PMThursdayChurch of Saint Denis, 602 Beekman RdC,D,St
Brewster, NY, 10509, USAStep It Up7:30 PMFridaySt. Lawrence O'Toole Church, 31 Prospect Street (In rectory building across from church. NO SMOKING ON OR NEAR CHURCH GROUNDS)C,Rr
Pawling, NY, 12594Practicing Principles In Pawling11:00 AMSaturdayThe Lutheran Church of Christ the King, 18 Pine Drive (Intersection of Route 22)SD,St,BK
Pleasantville, NY, 10570, USAA Better Way of Living7:30 PMSaturdayPace University, 861 Bedford Rd. (Anniversaries held on the last Saturday of the month are open meetings.)C,B,CL,LC
Katonah, NY, 10536Just for Tonight9:00 PMSaturdayFirst Presbyterian Church, 31 Bedford Rd.JT,SD

OK, now let’s relax the font a bit. Since we’re using <table> elements, we’re already going to Hell. Let’s have some fun on the way:

We add the following CSS to the site CSS:

div#bmlt_simple_shortcode_demo_div table#lhv_demo_layout_table_4
{
    font-family:"Papyrus";
    font-size:small;
}
Pawling, NY, 12594Practicing Principles In Pawling6:00 PMSundayThe Lutheran Church of Christ the King, 18 Pine Drive (Intersection of Route 22)SD,St,BK
Garrison, NY, 10524, USAA New Start7:00 PMSundayGraymoor (off Rt. 9), 40 Franciscan Way (4th Floor Conference Room. Go all the way up the hill. Use Giftshop/Bookstore entrance.)O,BT,IW,WC,BK
Wappingers, NY, 12590Keep Hope Alive7:30 PMMondayZion Episcopal Church, 12 Saterlee Pl.O,B
Yorktown Heights, NY, 10598, USAYorktown Recovery7:30 PMMondayFirst Presbyterian Church, Front Room, 2880 Crompond Rd (US-202 & Rt 132)C,B,WC
Katonah, NY, 10536, USAEnd of the Road7:45 PMTuesdaySt Lukes Episcopal Church, Parish House, 68 Bedford Rd (@Katonah Ave)C,St,TW,WC
Brewster, NY, 10509, USAStep It Up7:30 PMWednesdaySt. Lawrence O'Toole Church, 31 Prospect Street (In rectory building across from church. NO SMOKING IN ANY AREAS ON OR NEAR CHURCH GROUNDS)C,Rr
Wappingers, NY, 12590Miracles Happen7:30 PMWednesdayMt. Alvernia Retreat Center, Delavergne Ave.O,St
Yorktown Heights, NY, 10598, USAYorktown Recovery7:30 PMThursdayFirst Presbyterian Church, Front Room, 2880 Crompond Rd (US-202 & @Rt 132)C,St,WC
Hopewell Junction, NY, 12533, USASearching For Serenity7:45 PMThursdayChurch of Saint Denis, 602 Beekman RdC,D,St
Brewster, NY, 10509, USAStep It Up7:30 PMFridaySt. Lawrence O'Toole Church, 31 Prospect Street (In rectory building across from church. NO SMOKING ON OR NEAR CHURCH GROUNDS)C,Rr
Pawling, NY, 12594Practicing Principles In Pawling11:00 AMSaturdayThe Lutheran Church of Christ the King, 18 Pine Drive (Intersection of Route 22)SD,St,BK
Pleasantville, NY, 10570, USAA Better Way of Living7:30 PMSaturdayPace University, 861 Bedford Rd. (Anniversaries held on the last Saturday of the month are open meetings.)C,B,CL,LC
Katonah, NY, 10536Just for Tonight9:00 PMSaturdayFirst Presbyterian Church, 31 Bedford Rd.JT,SD

This shows how we can apply some simple CSS to the most basic <table>-based layout to provide an attractive (ahem -in the eye of the beholder) and simple layout that looks exactly like it was coded directly into the page HTML.

NOTE FOR ANTI-TABLE ZEALOTS: You can certainly do this kind of thing without using <table> elements, but tables were developed to display tabular data. These meeting searches certainly qualify as “tabular data,” and provide a near-perfect example of the type of thing for which tables were developed.

Don’t be one of these people who’s only tool is a hammer. The right tool for the job.