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

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108549
interpreted = N
texte = You could also do a [showif [thisurl]=3D[thisurlplusget]]..[/showif] It will only show if the URL is "clean" of variables. - chris On Feb 7, 2012, at 19:00, Palle Bo Nielsen wrote: > Hi Chris, >=20 > I think you nailed it. I will try it out when [thisurlplusget] -fix = hits me ;-) - but it seems like to right solution. >=20 > Thanks to everybody for good inspiration. >=20 > /Palle >=20 >=20 > On 07/02/2012, at 21.49, christophe.billiottet@webdna.us wrote: >=20 >> 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 >>>>>> Lin= k 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 >=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)
You could also do a [showif [thisurl]=3D[thisurlplusget]]..[/showif] It will only show if the URL is "clean" of variables. - chris On Feb 7, 2012, at 19:00, Palle Bo Nielsen wrote: > Hi Chris, >=20 > I think you nailed it. I will try it out when [thisurlplusget] -fix = hits me ;-) - but it seems like to right solution. >=20 > Thanks to everybody for good inspiration. >=20 > /Palle >=20 >=20 > On 07/02/2012, at 21.49, christophe.billiottet@webdna.us wrote: >=20 >> 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]">Lin= k 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 >=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 christophe.billiottet@webdna.us

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:

Slow Server (2005) emailer w/F2 (1997) WebCat2: Items xx to xx shown, etc. (1997) case sensitivity in lookups (1997) can WC render sites out? (1997) Multi Colonns (1998) (2004) test sorry (2001) Replace context problem ... and answers (1997) XML values to database records (grep?) (2000) Quickie question on the email templates (1997) WebCatalog 2.1b4/Mac available (1997) Redirect frame targets (1998) Store Builder shipping methods (2003) 2.0.1 new commands and contexts (1997) Questions (1998) [WebDNA] WebDNA FastCGI (2012) MacOS9 plugin 4.0.2b5 template security error (2000) WebCatalog 3.0.4 alias crash bug? (2000) Requiring that certain fields be completed (1997)