Re: Middle Context
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 41342
interpreted = N
texte = >>I'm using the Middle context to extract the names of templates ...>>It's a lot easier and more efficient to use this solution instead of the [middle] stuff you've bene playing with:>>[listwords words=[thisurl]&delimiters=/][text secure=t]thisPage=[word][/text][/listwords]>>This code never fails to set the [thisPage] value to the actual template name, and it works ON ALL PLATFORMS.Kenny G,You're right. It does exactly that, but...Trying to apply compassionate conservative principles to the code and WorldCom economics to the db to which it writes, I want only the name of the template minus the / and suffix. Your way works correctly, but leaves the suffix attached.I could use a conversion db to strip off the suffix, but my way works with less code it and I get what I need.Thanks for the idea, though. I'll file it away for future reference.Glenn-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>>I'm using the Middle context to extract the names of templates ...>>It's a lot easier and more efficient to use this solution instead of the [middle] stuff you've bene playing with:>>[listwords words=[thisurl]&delimiters=/][text secure=t]thisPage=[word][/text][/listwords]>>This code never fails to set the [thisPage] value to the actual template name, and it works ON ALL PLATFORMS.Kenny G,You're right. It does exactly that, but...Trying to apply compassionate conservative principles to the code and WorldCom economics to the db to which it writes, I want only the name of the template minus the / and suffix. Your way works correctly, but leaves the suffix attached.I could use a conversion db to strip off the suffix, but my way works with less code it and I get what I need.Thanks for the idea, though. I'll file it away for future reference.Glenn-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Glenn Busbin
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Storing calculated data (2002)
Practice runs ? (1997)
Bug or syntax error on my part? (1997)
please anybody help (2005)
[LOOKUP] (1997)
Bug or syntax error on my part? (1997)
Shopping carts and reloading pages (1997)
Setting up WebCatalog with Retail Pro data (1996)
Revisit: speed test (2002)
Running _every_ page through WebCat ? (1997)
Quick Replace Question (2003)
Alternating colors (1997)
[OT] MacOs IE5 topmargin and leftmargin bug (2000)
why do I get authorization requests, even though (1999)
WebCat2b15MacPlugin - showing [math] (1997)
WebDNA Solutions ... (1997)
A question on sub-categories (1997)
Merging databases (1997)
(2000)
Cart Numbers (1997)