Skip to main content
juana1903969
Participant
January 21, 2018
Answered

Multiple If Region templates

  • January 21, 2018
  • 3 replies
  • 835 views

I can not find any any menu option to insert a Multiple If condition for a region.

I found the code,

<!-- TemplateBeginMultipleIf -->

<!-- TemplateBeginIfClause cond="Dept == 1" --> <div>1 -- sales.gif</div> <!-- TemplateEndIfClause -->

<!-- TemplateBeginIfClause cond="Dept == 2" --> <div>2 --- sales.gif</div> <!-- TemplateEndIfClause-->

<!-- TemplateBeginIfClause cond="Dept == 3" --> <div>3 ----sales.gif</div> <!-- TemplateEndIfClause -->

<!-- TemplateEndMultipleIf -->

But I can't find any way to add it by a menu item like Optional regions and so.

Thanks

This topic has been closed for replies.
Correct answer juana1903969

Ok, Then I have to accept this new issue in Dreamweaver and I will have to hand code part of my templates.

I consider this article closed.

Thanks for your answers.

Bye

3 replies

juana1903969
juana1903969AuthorCorrect answer
Participant
January 22, 2018

Ok, Then I have to accept this new issue in Dreamweaver and I will have to hand code part of my templates.

I consider this article closed.

Thanks for your answers.

Bye

BenPleysier
Community Expert
Community Expert
January 23, 2018

Just for your info, this is a user2user forum. Regular contributors to the forum try and help their peers as much as is possible, all free of charge. One of the rewards they get is based on a points system, the other is the appreciation they get from the ones that have been helped

Your snide remarks have not helped the cause, nor does one depart without some form of appreciation to the time and effort given by those that have tried to help. Marking one's own answer as correct is the height of arrogance.

Goodbye!

Edit: If you have any regrets about marking your own answer as correct, please let me know and I shall shall mark the reply that you think is more appropriate.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Nancy OShea
Community Expert
Community Expert
January 21, 2018

You can define expressions for IF or multiple IF conditions in Code view or in the Optional Region dialog box.   Go to Insert menu > Template > Optional Region and click on the Advanced tab.

How to design web pages based on Dreamweaver templates

Nancy

Nancy O'Shea— Product User & Community Expert
juana1903969
Participant
January 21, 2018

If I do so I get

<!-- TemplateBeginIf cond="item == 1" --><!-- TemplateEndIf -->

<!-- TemplateBeginIf cond="item == 2" --><!-- TemplateEndIf -->

And not

<!-- TempalteParam name="Item" type="number" value="1" -->

<!-- TemplateBeginMultipleIf -->

<!-- TemplateBeginIfClause cond="Dept == 1" --> <div>1 -- sales.gif</div> <!-- TemplateEndIfClause -->

<!-- TemplateBeginIfClause cond="Dept == 2" --> <div>2 --- sales.gif</div> <!-- TemplateEndIfClause-->

<!-- TemplateBeginIfClause cond="Dept == 3" --> <div>3 ----sales.gif</div> <!-- TemplateEndIfClause -->

<!-- TemplateEndMultipleIf -->

Thanks

B i r n o u
Legend
January 22, 2018

are you confortable with code or do you prefer wysiwyg mode ?

personnaly I never used the insert panel, tool bar or others visual tools. You can directly use the code view and insert manually what you do need and where you need it... you can have support from the snippet pael....

plus I think that templates visual features has been more or less truncated since the binding panel was removed... and in this last build I do'nt think there is anymore the model properties, param insertion and so on...

Nancy OShea
Community Expert
Community Expert
January 21, 2018

Which version of Dreamweaver?

Nancy O'Shea— Product User & Community Expert
juana1903969
Participant
January 21, 2018

Oh!, i forgot it: Dreamweaver 2017.5, last version I think

Thanks