|
|
 |
 |
 |
manilaSuite.hierarchyPage
The html generated for a category that has no message - the directory of embedded stories - was generating bad html. This patch fixes the html
| on hierarchyPage (pta=nil) |
| |
«Dive into the XML #hierarchy structure and find and build a page |
| |
«10/22/04; 9:57:15 AM by EDS |
| |
«incorporating patches by DAB |
| |
«Use valid html ul, li when listing stories in a hierarchy based directory |
| |
«Restore preference for hiding the admin box |
| |
«2/16/04; 5:29:01 PM by JES |
| |
«2/10/04; 5:35:12 PM by JES |
| |
«4/25/03; 3:44:44 PM by JES |
| |
«8/10/02; 6:59:58 PM by JES |
| |
«1/14/02; 3:42:22 PM by PBS |
| |
«10/15/01; 9:21:16 PM by PBS |
| |
«9/28/01; 2:37:46 PM by PBS |
| |
«06/12/01; 8:08:28 AM by JES |
| |
«06/11/01; 6:43:07 PM by JES |
| |
«04/24/01; 8:48:00 PM by JES |
| |
if pta == nil // 05/08/00 JES: pta is now an optional parameter (useful for debugging) |
| |
local (adrTable = pta^.hierarchy) |
| |
local (adrHierarchy = pta^.hierarchy) |
| |
local (path = pta^.remainingPath) |
| |
«local (path = pta^.path) |
| |
path = string.urlDecode (path) |
| |
if string.lower (path) endsWith ".opml" //PBS 01/05/02: request for OPML document? |
| |
if flOpml //home page or archive page? |
| |
bundle //compile the XML outline if needed |
| |
local (nomad = @adrTable^.structure [1]) //points to #hierarchy structure |
| |
on hierarchyDive (nomad, name) //PBS 6/17/99: dive into an XML hierarchy table |
| |
bundle //loop through the remaining path, looking for the object in the #hierarchy structure to serve |
| |
type = string.lower (string.nthField (nameOf (nomad^), '\t', 2)) |
| |
if type == ""«made conditional |
| |
on displayMessage (msgNum) |
| |
pta^.msgNum = msgNum //moved 05/04/28, 21:49:11 by DAB |
| |
if defined(pta^.newsSite^.accessControl.enabled) and pta^.newsSite^.accessControl.enabled //made conditional 05/06/04, 13:27:38 by DAB |
| |
manilaSuite.accesscontrol.checks() //05/04/28, 21:46:22 by DAB |
| |
«if defined(pta^.newsSite^.accessControl) //made conditional 05/06/04, 13:27:38 by DAB |
| |
local (adrMsgTable = mainResponder.discuss.getMessageTable (msgNum)) |
| |
pta^.adrMsgTable = adrMsgTable |
| |
pta^.title = manilaSuite.unTaint (adrMsgTable^.subject) |
| |
manilaSuite.discuss.setLastUpdateTime (adrMsgTable) |
| |
local (flAdminBox = false) |
| |
if not manilaSuite.staticRendering.isStaticRendering (pta) |
| |
«Do we display bylines for stories? |
| |
flByline = boolean (manilaSuite.getNewsSitePref ("flBylinesOnStories", default:true, flCreate:true)) |
| |
bundle //possibly add the admin box |
| |
bundle //possibly add the render this page button |
Relative to Frontier version 9.7b10
|