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:

WebCatalog Technical Reference (1997) Draft Manual, Tutorial, and more (1997) Need relative path explanation (1997) SKU (1997) [ot] New List. Was: Webcat no longer supported? (2006) [showif]/[hideif] question (1997) update problem (1998) PROBLEM (1997) Some Questions (1997) problems with 2 tags (1997) Clean Code: Rules for inserting keyboard returns? (1997) WebCommerce: Folder organization ? (1997) Less than or equal to........ (1997) Problems with Search between X and Y (1999) Date search - yes or no (1997) [WebDNA] Some JS help please (2010) [HIDEIF] inside [FOUNDITEM] (1997) multi-table date sort problem thingy (2002) Time Display from Database (1997) emailer (1997)