Archive of UserLand's first discussion group, started October 5, 1998.
Re: #renderTableWith doesn't match doc
Author: Michael Johnston Posted: 1/30/1999; 7:44:32 PM Topic: Search Engine XML-RPC Interface Msg #: 2598 (In response to 2576) Prev/Next: 2597 / 2599
Ahh, I just found Sam Reynolds #renderTableWith tutorial on SM, in which he describes a workaround for the problem.Very cool workaround, thanks Sam.
I made a couple changes, cuz I don't like copying and pasting:
on renderTableAs ( tableAdr ) «Instructions: «Leave this script in user.html.renderers «Create a template (outline or wptext) and put it somewhere in the templates hierarchy. «In the template, refer to items in the table as {tbl^.itemname}. «Use the directive #useOutline within the table you're rendering to specify an outline template on GetPageTbl() try return( html.getPageTableAddress() ) return( @websites.["#data"] ) local pageTbl = GetPageTbl() templateAdr if defined (pageTbl^.useOutline ) templateAdr = @pageTbl^.templates^.[pageTbl^.useOutline] else if defined ( tableAdr^.["#useOutline"] ) templateAdr = @pageTbl^.templates^.[tableAdr^.["#useOutline"]] else templateAdr = user.html.templates.basicTableOutline « make a template to catch unspecified tables pageTbl^.tbl = tableAdr html.processMacros( string( templateAdr^ ) )I still think it'd be nice if UserLand patched up tenderRender to conform to the doc for #renderTableWith, but this works great.
This page was archived on 6/13/2001; 4:47:41 PM.
© Copyright 1998-2001 UserLand Software, Inc.