• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Multiple optional regions in an editable region

Explorer ,
Dec 01, 2020 Dec 01, 2020

Copy link to clipboard

Copied

My idea is coming from making myself easier to choose from different types of format options for each page quicker like below.

 

Editable

   Option1 - list format

   Option2 - table format

   Option3 - image thumnailf ormat

   ....

EndEditable

 

I can of course leave one or two options and remove the rest manually, which I'm doing now. But much faster if I can just toggle true/false for those template options.

 

Toshi

Views

109

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 01, 2020 Dec 01, 2020

Copy link to clipboard

Copied

If you try creating an optinal inside of editable in DW 21.0, you get a rejection "already editable or optional".

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 02, 2020 Dec 02, 2020

Copy link to clipboard

Copied

I'm not sure I fully understand your expectations, so my answer may not be relevant. Don't hesitate to redefine your perspective.

As I said, what is important is to set the scenario correctly, and to structure the answer according to the tools specific to the template elements proposed by DW.

If the wish is to allow the choice of use (or not) of presentation elements (table , list...), it is not an all-encompassing editable region that will contain these various choices, but simply various choices (optional) containing themselves editable regions that should be approached.
Since you are proposing to be able to use one or more choices (3), 3 conditions must be used, if however only one choice cannot be applied, then only one condition can be used.

1 solution...
COND 1
-- EDITABLE
COND 2
-- EDITABLE
COND 3
-- EDITABLE

2 solution...
GENERAL COND
-- EDITABLE

For more clarity, you will find the illustration of these two examples down below, anyway I can send you separate files if you need.
Is this close to what you would like to get?

 

have a pleasant day

birnou

 

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Document sans titre</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
	
<!-- TemplateParam name="OptionalRegion1" type="boolean" value="true" -->
<!-- TemplateParam name="OptionalRegion3" type="boolean" value="true" -->
<!-- TemplateParam name="OptionalRegion5" type="boolean" value="true" -->
<!-- TemplateParam name="OptionalRegion7" type="text" value="table" -->
</head>

<body>
	<section>
		<h1>Solution to select 1 or more choices</h1>
			<!-- TemplateBeginIf cond="OptionalRegion1" -->
				<h2>Display results as TABLE</h2>
				table static content
				<!-- TemplateBeginEditable name="EditRegion2" -->
					table editable content
				<!-- TemplateEndEditable -->
			<!-- TemplateEndIf -->
			<!-- TemplateBeginIf cond="OptionalRegion3" -->
				<h2>Display results as LIST</h2>
				list static content
				<!-- TemplateBeginEditable name="EditRegion4" -->
					list editable content
				<!-- TemplateEndEditable -->
			<!-- TemplateEndIf -->
			<!-- TemplateBeginIf cond="OptionalRegion5" -->
				<h2>Display results as GALERY</h2>
				galery static content
				<!-- TemplateBeginEditable name="EditRegion6" -->
					galery editable content
				<!-- TemplateEndEditable -->
			<!-- TemplateEndIf -->	
	</section>
	<section>
		<h1>Solution allowing to choose only one option</h1>
			<!-- TemplateBeginIf cond="(OptionalRegion7 == 'table')" -->
				<h2>Display results as TABLE</h2>
				table static content
			<!-- TemplateEndIf -->
			<!-- TemplateBeginIf cond="(OptionalRegion7 == 'list')" -->
				<h2>Display results as LIST</h2>
				list static content
			<!-- TemplateEndIf -->
			<!-- TemplateBeginIf cond="(OptionalRegion7 == 'galery')" -->
				<h2>Display results as GALERY</h2>
				galery static content
			<!-- TemplateEndIf -->	
			<!-- TemplateBeginEditable name="EditRegion8" -->
				whatever previous choice editable content
			<!-- TemplateEndEditable -->
	</section>
</body>
</html>

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 02, 2020 Dec 02, 2020

Copy link to clipboard

Copied

I started typing more to elaborate, but I changed mid and erased. Because I started feeling I'm wasting your time as well as mine. I thought I was making just a simple suggestion for future enhancement consideration, but appears to be not that simple with the design concept of DW.

 

I know a similar effect can be done by three or more "Editable Optional" regions and I just need to get use to it since I'm a relatively beginner of DW. Or keep erasing the content in the whole editalbe area I don't need for that particular page when it's generated from the template.

 

I regret I took your valuable time, which could have used for much more creative stuff.

 

Toshi

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 03, 2020 Dec 03, 2020

Copy link to clipboard

Copied

LATEST

Don't worry, the idea is above all to be able to exchange, confront ideas and points of view in order to maintain and make Dreamweaver evolve.
my time is not more precious than yours, so don't please, don't hesitate to not to stop in the middle of a development, or an idea, ... post there and together we should be able to learn from each other, that's why this kind of forum exists.

 

have a pleasant day

birnou

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines