on my site, i am trying to display an unordered list of JUST items with a section level of 2...
... but i can't
does anyone posess such juicy knowledge?
... but i can't
does anyone posess such juicy knowledge?
<ul> <actinic:block type="EntireSectionList"> <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%20%3d%3d%202" > <li><a href="<actinic:variable Name="SectionPageName"/>"><actinic:variable Name="SectionName"/></a></li> </actinic:block> </actinic:block> </ul>
<actinic:block type="toplevelsectionlist"> <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionName%22%20%2f%3e%20%3d%3d%20%22Cameras%22"> <actinic:block type="childsectionlist"> <br /><actinic:variable name="SectionName" /> </actinic:block> </actinic:block> </actinic:block>
<actinic:block type="toplevelsectionlist"> <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionName%22%20%2f%3e%20%3d%3d%20%22Cameras%22"> <actinic:block type="childsectionlist"> <br /><actinic:variable name="SectionName" /> </actinic:block> </actinic:block> </actinic:block>
if (!function_exists('GetLevel1Section')) { function GetLevel1Section($connect,$sectref) { $query = "SELECT [Section Text], [nParentSectionID], [nSectionID] FROM [Catalog Section] WHERE [nSectionID] LIKE '".$sectref."'"; $result = odbc_exec($connect, $query); $returnstring=""; while(odbc_fetch_row($result)){ $SectionText = odbc_result($result, 1); $nParentSectionID = odbc_result($result, 2); $nSectionID = odbc_result($result, 3); if ($nParentSectionID!=0) { $returnstring=GetLevel1Section($connect,$nParentSectionID); } else { $returnstring=$nSectionID; } } odbc_free_result($result); //odbc_close($connect); return $returnstring; } } if (!function_exists('GetLevel1SectionWrapper')) { function GetLevel1SectionWrapper($sectid) { $connect = odbc_pconnect("ActinicCatalog9","","", SQL_CUR_USE_ODBC); $resultage = GetLevel1Section($connect,$sectid); odbc_close_all(); return $resultage; } }
MakeNav(GetLevel1SectionWrapper(SectionID),........);
<actinic:block php="true" > MakeNav(GetLevel1SectionWrapper('<actinic:variable name="SectionID" selectable="false" />'),2,0,<actinic:variable name="SectionID" selectable="false" />); </actinic:block>
<actinic:block php="true" > MakeNav(GetLevel1SectionWrapper('<actinic:variable name="SectionID" selectable="false" />'),2,0,<actinic:variable name="SectionID" selectable="false" />); </actinic:block>
Comment