"OR" statements allowed in MultipleIf conditional regions in templates?

Ask a Question related to Macromedia Dreamweaver, Design and Development.

  1. #1

    Default "OR" statements allowed in MultipleIf conditional regions in templates?

    Does DMX allow the addition of an "OR" condition on a MultipleIf conditional region: Thus displaying the same output for two different conditions?

    If so, what is the syntax?

    E.g. I want the following If clause to be executed if the "page_id" equals "home" or "home2"

    <!-- TemplateBeginIfClause cond="page_id=='home' ;'home2'" -->

    Thank you!



    GGirlando webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. #39640 [NEW]: Segfault with "Allowed memory size exhausted"
      From: phpbugs at thequod dot de Operating system: Ubuntu Linux PHP version: 5CVS-2006-11-26 (CVS) PHP Bug Type: Reproducible...
    2. "Requested registry access is not allowed" and Web Service call
      Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that...
    3. #26356 [Fbk->Csd]: sporatic "Allowed memory size exhausted" errors
      ID: 26356 User updated by: my-junkmail at earthlink dot net Reported By: my-junkmail at earthlink dot net -Status: ...
    4. #26356 [Opn->Fbk]: sporatic "Allowed memory size exhausted" errors
      ID: 26356 Updated by: sniper@php.net Reported By: my-junkmail at earthlink dot net -Status: Open +Status: ...
    5. #26356 [Opn]: sporatic "Allowed memory size exhausted" errors
      ID: 26356 User updated by: my-junkmail at earthlink dot net Reported By: my-junkmail at earthlink dot net Status: ...
  3. #2

    Default Re: "OR" statements allowed in MultipleIf conditional regions in templates?

    "DiMa" <diana@YOURHATANDCOATdimadesign.net> wrote in news:bet57r$3rp$1
    @forums.macromedia.com:
    > I THINK. Not totally sure. Where's Murray when you need him??
    If he's at a Springsteen concert I will sulk! :-)

    --
    Steve
    Hong Kong
    Steve Fleischer Guest

  4. #3

    Default Re: "OR" statements allowed in MultipleIf conditional regions in templates?

    Hmmm, thanks for the reply--I tried it, but i am getting a "bad syntax" error.

    I also tried a semicolon ; which did not evoke a bad syntax error, but it also didn't execute one of two outputs in the child pages.




    GGirlando webforumsuser@macromedia.com Guest

  5. #4

    Default Re: "OR" statements allowed in MultipleIf conditional regions in templates?

    Steve:

    The Springsteen concert isn't until next month! 8D

    And DiMa is very close to the correct answer - try this ...

    <!-- TemplateBeginIfClause cond="page_id=='home'||
    cond="page_id=='home2'" -->

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "Steve Fleischer" <blacksheep@steve-fleischer.net> wrote in message
    news:Xns93B86FCE88110blacksheepsteve@65.57.83.209. ..
    > "DiMa" <diana@YOURHATANDCOATdimadesign.net> wrote in news:bet57r$3rp$1
    > @forums.macromedia.com:
    >
    > > I THINK. Not totally sure. Where's Murray when you need him??
    >
    > If he's at a Springsteen concert I will sulk! :-)
    >
    > --
    > Steve
    > Hong Kong

    Murray *TMM* Guest

  6. #5

    Default Re: "OR" statements allowed in MultipleIf conditional regions in templates?

    Steve:

    8)

    And, the Eagles blew me away....

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "Steve Fleischer" <blacksheep@steve-fleischer.net> wrote in message
    news:Xns93B8C594488FDblacksheepsteve@65.57.83.209. ..
    > "Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in
    news:beu2qm$fpq$1
    > @forums.macromedia.com:
    >
    > > Steve:
    > >
    > > The Springsteen concert isn't until next month! 8D
    >
    > .envy{
    > color: #008000;
    > }
    >
    > <td class="envy">`Cause tramps like us, baby we were born to run</td>
    >
    > Have a good one Murray!
    >
    > --
    > Steve
    > Hong Kong

    Murray *TMM* Guest

  7. #6

    Default Re: "OR" statements allowed in MultipleIf conditional regions in templates?

    "Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in news:beu4hp$ijp$1
    @forums.macromedia.com:
    > And, the Eagles blew me away....
    I'll be in Salt Lake City in November - maybe I'll get to see the Osmonds!
    :-)

    --
    Steve
    Hong Kong
    Steve Fleischer Guest

  8. #7

    Default Re: "OR" statements allowed in MultipleIf conditional regions in templates?

    DiMa:

    You're not supposed to remember them! 8)

    --
    Murray --- ICQ 71997575
    ==================


    "DiMa" <diana@YOURHATANDCOATdimadesign.net> wrote in message
    news:beuimt$hp0$1@forums.macromedia.com...
    > WAHEY!!! The Bugaloos! We're in the air and everywhere...flying high!
    flying
    > loose! Flying free as the summer breeze!
    >
    > The Bugaloos ROCK!! :)
    >

    Murray *TMM* Guest

  9. #8

    Default Re: "OR" statements allowed in MultipleIf conditional regions in templates?

    <!-- TemplateBeginIfClause cond="page_id=='home'|| cond="page_id=='home2'" -->

    Hmmm, tried this too--still not working.

    The format you posted there has three double quotes. Should there be an additional double-quote? Or one less?

    Also, should there be a space after the || ?

    I've tried various combinations of the above, but still get error messages.

    "Unbalanced Quotes or Missing Attributes Value", or "Unbalanced Assignment Left Hand Side"






    GGirlando webforumsuser@macromedia.com Guest

  10. #9

    Default Re: "OR" statements allowed in MultipleIf conditional regions in templates?

    Hi Glen

    I believe your issue will be resolved with:

    <!-- TemplateBeginIfClause cond="((page_id=='home')||(
    page_id=='home2'))" -->

    Hope that helps.

    --
    Brad Halstead (brad at dreamweavermx-templates.com)
    TMM Volunteer [Contribute] - [url]http://www.macromedia.com/go/team/[/url]
    DreamweaverMX Templates - [url]http://www.dreamweavermx-templates.com[/url]



    "GGirlando" <webforumsuser@macromedia.com> wrote in message
    news:bet4is$35q$1@forums.macromedia.com...
    > Does DMX allow the addition of an "OR" condition on a MultipleIf
    conditional region: Thus displaying the same output for two different
    conditions?
    >
    > If so, what is the syntax?
    >
    > E.g. I want the following If clause to be executed if the "page_id"
    equals "home" or "home2"
    >
    > <!-- TemplateBeginIfClause cond="page_id=='home' ;'home2'" -->
    >
    > Thank you!
    >
    >

    Brad Halstead - TMM Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139