New Message: manilaMacros.pictureRef - Cant find a sub-table named
''
webmaster at userland.com
webmaster at userland.com
Tue Jun 27 09:58:23 CDT 2006
A new message was posted:
Address: http://frontier.userland.com/discuss/msgReader$14452
By: Mark Freden (Mark at rheinner.com)
Has anyone else run into this problem?
When I use;
manilaMacros.pictureRef ("nameOfPic", glossRef:"nameOfPage")
I get;
[Macro error: Cant find a sub-table named .]
I've tracked it down in the manilaMacros.pictureRef script during the following test;
if glossRef != "" { //05/04/13, 10:27:43 by DAB
if htmlText beginsWith "[[#" {
local (ix = string.patternMatch (' ', glossRefValue));
glossRefValue = string.delete (glossRefValue, 1, ix);
glossRefValue = string.nthField (glossRefValue, '|', 2); «this is the part we keep
htmltext = "[[#glossPatch " + htmltext + "|" + glossRefValue + "|]]"}
else { //assume it's an a href
glossRefAtts[1].["/pcdata"] = htmltext;
htmltext = string.trimwhiteSpace(string.nthField(xml.decompile(@glossRefAtts), "\n", 2))}}
It appears that the glossRefAtts[1].["/pcdata"] item (after the else clause) does not get created during the xml.compile(glossRefValue, @glossRefAtts) command earlier in the script.
This only happens when the glossary item that is referenced is in table form (obviously).
thanks for any insight!
M
This is a Manila site... http://manila.userland.com/.
More information about the Manila-Server
mailing list