Dan,
Thanks for the reply. I am trying to avoid the need to store my html tables in templates, possibly because I’ve never tried it, but also because I have over 1,000 separate html tables, each of which needs to be updated a few times a year.
I’ve been experimenting with the php include command and segments. My “selection” and “display” templates are currently one and the same and include a bunch of links in the form “http://www.site.com/index.php/directoryName/filenameWithoutExt/” that allow the user to pick the table they wish to view. After the user selects the table they want by clicking on a link, my EE template parses the url segments and then inserts the correct html table into the display code.
if segment_2 != ""}
<?php include("{segment_1}/{segment_2}.html"); ?> <!--include table-->
<?php include("{segment_1}.html"); ?> <!--include html code to easily select related tables -->
{if:elseif segment_1 != ""}
<?php include("{segment_1}.html"); ?> <!--if just one segment, it means that their are many subSelections to be displayed and selected from. i.e. If user selected years, then years 2011, 2010, 2009, etc are displayed so user can choose from among them-->
{if:else} <!--if user didn't select table to view then display recent articles-->
{exp:channel:entries channel="articles" limit="6"}
<h2>{title}</h2>
<p> </p><h5>By {author}</h5>
<p> {article_body}<br />
{/exp:channel:entries}<br />
{/endif}
But this whole structure is likely to breakdown, explode, very quickly once I have more than one template or channel. It already has problems when some of the html tables are not related to any others and thus don’t get placed in separate directories and don’t have related items to display (meaning there is never a segment_2), because my if statement throws of errors in instances where there is no {segment_1}.html file (which happens when there are no related tables to select from).