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:

    
  1. Re: Middle Context (Brian Fries 2002)
  2. Re: Middle Context (Kenneth Grome 2002)
  3. Re: Middle Context (Glenn Busbin 2002)
  4. Re: Middle Context (Kenneth Grome 2002)
  5. Re: Middle Context (Jesse Williams-Proudman 2002)
  6. Re: Middle Context (Glenn Busbin 2002)
  7. Re: Middle Context (Jesse Williams-Proudman 2002)
  8. Middle Context (Glenn Busbin 2002)
>>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:

WebDNA Promo Sound Bite (2003) Need relative path explanation (1997) updating with ProductEditor (1998) vs (1997) Misc Stuff That Might Help (1997) emailer (1997) HELP WITH DATES (1997) Another option (2005) Help! WebCat2 bug (Ben's input) (1997) OT: How to convert TIFs into HTML or ASCII format? (2002) remotely creating and populating a stock inventory db - almost there! (1999) Need relative path explanation (1997) Email Newsletters (2003) db protection on NT (1997) OT: Web Cams (2003) Cookie set browser session. (1998) Grant, please help me ... (1997) Questions To Answer (1997) Creating main- and sub-category search (1997) Re:Help name our technology! (1997)