Re: [WebDNA] Good advise on [Showif] or alternative...

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108548
interpreted = N
texte = Hi Chris, I think you nailed it. I will try it out when [thisurlplusget] -fix hits = me ;-) - but it seems like to right solution. Thanks to everybody for good inspiration. /Palle On 07/02/2012, at 21.49, christophe.billiottet@webdna.us wrote: > What about >=20 > [function name=3DCALL_DOMAIN][return][listmimeheaders = name=3Dhost&exact=3DF][url][value][/url][/listmimeheaders][/return][/funct= ion] >=20 > the URL that was called is [CALL_DOMAIN][thisurlplusget] >=20 > Then you compare it with www.macnyt.dk/forum/ >=20 > - chris >=20 > On Feb 7, 2012, at 18:34, Palle Bo Nielsen wrote: >=20 >> Hi Dave, >>=20 >> The &exact=3DT would just be considered a part of the URL and = according to the documentation there is not place for an exact=3Dt in = this context, unfortunately. >>=20 >> /Palle >>=20 >>=20 >> On 07/02/2012, at 21.30, Dave Stengel wrote: >>=20 >>> Not sure is this would work but maybe try adding &exact=3DT to the = string >>>=20 >>> [showif [thisurl]=3Dhttp://www.macnyt.dk/&exact=3DT] -- RESULT A = [/showif] >>>=20 >>> Dave >>> ______________________________ >>>=20 >>> On Tue, Feb 7, 2012 at 11:49 AM, Palle Bo Nielsen >>> wrote: >>>> Hi Dave, >>>>=20 >>>> I would argue that... >>>>=20 >>>> If actual URL was 'http://www.macnyt.dk/something/' then both A and = B scenarios would. >>>>=20 >>>> Expected result is that only RESULT B should be the case. >>>>=20 >>>> And please note that actual URL should be based on a 'pure' URL = with no variables like your alternative suggestions (this is my = ambition)... >>>>=20 >>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/] -- RESULT A [/showif] >>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/something/] -- RESULT B = [/showif] >>>>=20 >>>> /Palle >>>>=20 >>>>=20 >>>>=20 >>>> On 07/02/2012, at 20.40, Dave Stengel wrote: >>>>=20 >>>>> If you're showing based on current url maybe try: >>>>>=20 >>>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/forum/] >>>>>=20 >>>>> or you could pass a variable in a link from the proceeding page = like: >>>>>=20 >>>>> Link= to Forum >>>>>=20 >>>>> then on http://www.macnyt.dk/forum/ put your showif >>>>>=20 >>>>> [showif [do]=3Dshow]http://www.macnyt.dk/forum/[/Showif] >>>>>=20 >>>>> Good luck, hope this helps. >>>>> Dave >>>>> ________________________ >>>>>=20 >>>>>=20 >>>>>=20 >>>>> On Tue, Feb 7, 2012 at 11:24 AM, Palle Bo Nielsen >>>>> wrote: >>>>>> Hi all, >>>>>>=20 >>>>>> Seeking some good advise on what might just be a very simple = case... >>>>>>=20 >>>>>> If need to make a [showif] on a specific URL, which needs to be = 'http://www.macnyt.dk/forum/' nothing more nothing less. >>>>>>=20 >>>>>> My experience is that if I make an '[showif = [something]=3Dhttp://www.macnyt.dk/forum/?some=3Dadditional_variable&and=3D= another]' then is passes as well. >>>>>>=20 >>>>>> In '[showif]' we have EQUAL, NOT EQUAL, CONTAINS, BEGINS WITH, = LESS THAN, GREATER THAN, DIVISIBLE BY - but none of the seems to do the = trick. >>>>>>=20 >>>>>> Good ideas and inspiration is appreciated. >>>>>>=20 >>>>>> /Palle--------------------------------------------------------- >>>>>> This message is sent to you because you are subscribed to >>>>>> the mailing list . >>>>>> To unsubscribe, E-mail to: >>>>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>>>> Bug Reporting: support@webdna.us >>>>>=20 >>>>>=20 >>>>>=20 >>>>> -- >>>>> Dave Stengel >>>>>=20 >>>>> http://www.mobilinksoftware.com >>>>> 209.820.1300 >>>>> dave@mobilinkpro.com >>>>> --------------------------------------------------------- >>>>> This message is sent to you because you are subscribed to >>>>> the mailing list . >>>>> To unsubscribe, E-mail to: >>>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>>> Bug Reporting: support@webdna.us >>>>=20 >>>> --------------------------------------------------------- >>>> This message is sent to you because you are subscribed to >>>> the mailing list . >>>> To unsubscribe, E-mail to: >>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>> Bug Reporting: support@webdna.us >>>=20 >>>=20 >>>=20 >>> --=20 >>> Dave Stengel >>>=20 >>> http://www.mobilinksoftware.com >>> 209.820.1300 >>> dave@mobilinkpro.com >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> Bug Reporting: support@webdna.us >>=20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Good advise on [Showif] or alternative... (Christer Olsson 2012)
  2. Re: [WebDNA] Good advise on [Showif] or alternative... (christophe.billiottet@webdna.us 2012)
  3. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  4. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  5. Re: [WebDNA] Good advise on [Showif] or alternative... (christophe.billiottet@webdna.us 2012)
  6. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  7. Re: [WebDNA] Good advise on [Showif] or alternative... (Govinda 2012)
  8. Re: [WebDNA] Good advise on [Showif] or alternative... (Dave Stengel 2012)
  9. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  10. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  11. RE: [WebDNA] Good advise on [Showif] or alternative... ("Michael A. DeLorenzo" 2012)
  12. RE: [WebDNA] Good advise on [Showif] or alternative... ("Michael A. DeLorenzo" 2012)
  13. Re: [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
  14. Re: [WebDNA] Good advise on [Showif] or alternative... (Dave Stengel 2012)
  15. [WebDNA] Good advise on [Showif] or alternative... (Palle Bo Nielsen 2012)
Hi Chris, I think you nailed it. I will try it out when [thisurlplusget] -fix hits = me ;-) - but it seems like to right solution. Thanks to everybody for good inspiration. /Palle On 07/02/2012, at 21.49, christophe.billiottet@webdna.us wrote: > What about >=20 > [function name=3DCALL_DOMAIN][return][listmimeheaders = name=3Dhost&exact=3DF][url][value][/url][/listmimeheaders][/return][/funct= ion] >=20 > the URL that was called is [CALL_DOMAIN][thisurlplusget] >=20 > Then you compare it with www.macnyt.dk/forum/ >=20 > - chris >=20 > On Feb 7, 2012, at 18:34, Palle Bo Nielsen wrote: >=20 >> Hi Dave, >>=20 >> The &exact=3DT would just be considered a part of the URL and = according to the documentation there is not place for an exact=3Dt in = this context, unfortunately. >>=20 >> /Palle >>=20 >>=20 >> On 07/02/2012, at 21.30, Dave Stengel wrote: >>=20 >>> Not sure is this would work but maybe try adding &exact=3DT to the = string >>>=20 >>> [showif [thisurl]=3Dhttp://www.macnyt.dk/&exact=3DT] -- RESULT A = [/showif] >>>=20 >>> Dave >>> ______________________________ >>>=20 >>> On Tue, Feb 7, 2012 at 11:49 AM, Palle Bo Nielsen >>> wrote: >>>> Hi Dave, >>>>=20 >>>> I would argue that... >>>>=20 >>>> If actual URL was 'http://www.macnyt.dk/something/' then both A and = B scenarios would. >>>>=20 >>>> Expected result is that only RESULT B should be the case. >>>>=20 >>>> And please note that actual URL should be based on a 'pure' URL = with no variables like your alternative suggestions (this is my = ambition)... >>>>=20 >>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/] -- RESULT A [/showif] >>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/something/] -- RESULT B = [/showif] >>>>=20 >>>> /Palle >>>>=20 >>>>=20 >>>>=20 >>>> On 07/02/2012, at 20.40, Dave Stengel wrote: >>>>=20 >>>>> If you're showing based on current url maybe try: >>>>>=20 >>>>> [showif [thisurl]=3Dhttp://www.macnyt.dk/forum/] >>>>>=20 >>>>> or you could pass a variable in a link from the proceeding page = like: >>>>>=20 >>>>> [cart]">Link= to Forum >>>>>=20 >>>>> then on http://www.macnyt.dk/forum/ put your showif >>>>>=20 >>>>> [showif [do]=3Dshow]http://www.macnyt.dk/forum/[/Showif] >>>>>=20 >>>>> Good luck, hope this helps. >>>>> Dave >>>>> ________________________ >>>>>=20 >>>>>=20 >>>>>=20 >>>>> On Tue, Feb 7, 2012 at 11:24 AM, Palle Bo Nielsen >>>>> wrote: >>>>>> Hi all, >>>>>>=20 >>>>>> Seeking some good advise on what might just be a very simple = case... >>>>>>=20 >>>>>> If need to make a [showif] on a specific URL, which needs to be = 'http://www.macnyt.dk/forum/' nothing more nothing less. >>>>>>=20 >>>>>> My experience is that if I make an '[showif = [something]=3Dhttp://www.macnyt.dk/forum/?some=3Dadditional_variable&and=3D= another]' then is passes as well. >>>>>>=20 >>>>>> In '[showif]' we have EQUAL, NOT EQUAL, CONTAINS, BEGINS WITH, = LESS THAN, GREATER THAN, DIVISIBLE BY - but none of the seems to do the = trick. >>>>>>=20 >>>>>> Good ideas and inspiration is appreciated. >>>>>>=20 >>>>>> /Palle--------------------------------------------------------- >>>>>> This message is sent to you because you are subscribed to >>>>>> the mailing list . >>>>>> To unsubscribe, E-mail to: >>>>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>>>> Bug Reporting: support@webdna.us >>>>>=20 >>>>>=20 >>>>>=20 >>>>> -- >>>>> Dave Stengel >>>>>=20 >>>>> http://www.mobilinksoftware.com >>>>> 209.820.1300 >>>>> dave@mobilinkpro.com >>>>> --------------------------------------------------------- >>>>> This message is sent to you because you are subscribed to >>>>> the mailing list . >>>>> To unsubscribe, E-mail to: >>>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>>> Bug Reporting: support@webdna.us >>>>=20 >>>> --------------------------------------------------------- >>>> This message is sent to you because you are subscribed to >>>> the mailing list . >>>> To unsubscribe, E-mail to: >>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>> Bug Reporting: support@webdna.us >>>=20 >>>=20 >>>=20 >>> --=20 >>> Dave Stengel >>>=20 >>> http://www.mobilinksoftware.com >>> 209.820.1300 >>> dave@mobilinkpro.com >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> Bug Reporting: support@webdna.us >>=20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us Palle Bo Nielsen

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:

encrypt but with normal characters for result? (2005) Spawn not working (1999) Attn: Bug in GeneralStore example b15 (1997) WebCatalog for Postcards ? (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) 2 easy questions re: [showif] and [sendmail] (1997) Phantom Sendmail (2005) [ShowNext] (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) [OT] Gateway and Merchant Fees! (2006) WebCat2.0 [format thousands .0f] no go (1997) WCS Newbie question (1997) [OT] Am I an Idiot? (2004) [WebDNA] "sem_open" bug (2012) WC2.0 Memory Requirements (1997) WebCat2 - many [carts] on one template page? (1997) quitting (1997) StoreBuilder help/question... (2000) Thanks Grant (1997) NT Setup (1998)