<br><font size=2 face="sans-serif">Mark,</font>
<br><font size=2 face="sans-serif"> i am trying to develop a intranet web site but i am facing some problem. i want to manage different content areas inside a single page, this means that a single page contains seperate editable areas. I have gone throught the discussion forum and found some data releating to this from Alexander</font>
<br>
<br><font size=2 face="sans-serif">http://mail.opencms.org/pipermail/opencms-dev/2003q2/005734.html</font>
<br>
<br><font size=2 face="sans-serif">in this solution first a file named "edit_options" must be edited. But i cant find that file in my </font><font size=3 face="Bookman Old Style">/system/workplace/templates/edit_options<br>
</font><font size=2 face="sans-serif">if you or anyone else knows where i can find this file or if there is any other method for what i am facing, please inform me at the earliest. I am really in a tight spot 'coz of the time limit.</font>
<br>
<br><font size=2 face="sans-serif">So if anyone can help me it would be great.</font>
<br>
<br><font size=2 face="sans-serif">Best regards</font>
<br><font size=2 face="sans-serif">Mithun<br>
</font>
<br><font size=2 face="sans-serif">-------------------------------------------------------------------------<br>
PS: I am attaching the document by Alexander along with this.</font>
<br><font size=2 face="sans-serif">-------------------------------------------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">guide on how to enable multiple content areas in the OpenCms WYSIWYGE editor with JSP templates:</font>
<br>
<br><font size=2 face="sans-serif">1. In the OpenCms Workplace, open (in the txt editor) the file</font>
<br>
<br><font size=2 face="sans-serif">/system/workplace/templates/edit_options</font>
<br>
<br><font size=2 face="sans-serif">There are a couple of boolean values set. </font>
<br><font size=2 face="sans-serif">Change the line with BODYSELECTOR to:</font>
<br>
<br><font size=2 face="sans-serif">var USE_BODYSELECTOR = true;</font>
<br>
<br><font size=2 face="sans-serif">Save, exit and publish this file. </font>
<br><font size=2 face="sans-serif">If you now open any "Page" file in an editor, you should </font>
<br><font size=2 face="sans-serif">see a select box "Body:" beside the "Template:" selector.</font>
<br><font size=2 face="sans-serif">The body should be "(default)" for all of your pages.</font>
<br><font size=2 face="sans-serif">Obviously, the default body is the "normal" body that</font>
<br><font size=2 face="sans-serif">is usually edited. </font>
<br>
<br><font size=2 face="sans-serif">2. Next you need to add bodies in your template. There a a couple</font>
<br><font size=2 face="sans-serif">of ways to do this. There is even an option to enable in </font>
<br><font size=2 face="sans-serif">the user interface that can be activated in the edit_options,</font>
<br><font size=2 face="sans-serif">but the behaviour is pretty strange so I do not recommend using this</font>
<br><font size=2 face="sans-serif">feature. Also, you must make sure your templates always have the </font>
<br><font size=2 face="sans-serif">body parts in question (naming is important) so adding new </font>
<br><font size=2 face="sans-serif">bodies manually in the editor is not a good idea anyway. </font>
<br>
<br><font size=2 face="sans-serif">To get templates with more then the default body,</font>
<br><font size=2 face="sans-serif">go to the "default_bodies" directory of any module, e.g.</font>
<br><font size=2 face="sans-serif">the default module. In the default module,</font>
<br><font size=2 face="sans-serif">there is a file "empty" in "default_bodies" with the </font>
<br><font size=2 face="sans-serif">title "Empty body". Copy this </font>
<br><font size=2 face="sans-serif">file, e.g. to a file "mybody" and change the title to</font>
<br><font size=2 face="sans-serif">"My body file". Then change the content to something like this:</font>
<br>
<br><font size=2 face="sans-serif"><?xml version="1.0" encoding="ISO-8859-1"?></font>
<br><font size=2 face="sans-serif"><XMLTEMPLATE></font>
<br><font size=2 face="sans-serif"> <TEMPLATE><![CDATA[ ]]></TEMPLATE></font>
<br><font size=2 face="sans-serif"> <edittemplate><![CDATA[ ]]></edittemplate></font>
<br><font size=2 face="sans-serif"> <template name="body2"><![CDATA[ ]]></template></font>
<br><font size=2 face="sans-serif"> <edittemplate name="body2"><![CDATA[ ]]></edittemplate></font>
<br><font size=2 face="sans-serif"> <template name="body3"><![CDATA[ ]]></template></font>
<br><font size=2 face="sans-serif"> <edittemplate name="body3"><![CDATA[ ]]></edittemplate></font>
<br><font size=2 face="sans-serif"> <template name="body4"><![CDATA[ ]]></template></font>
<br><font size=2 face="sans-serif"> <edittemplate name="body4"><![CDATA[ ]]></edittemplate></font>
<br><font size=2 face="sans-serif"> <template name="body5"><![CDATA[ ]]></template></font>
<br><font size=2 face="sans-serif"> <edittemplate name="body5"><![CDATA[ ]]></edittemplate></font>
<br><font size=2 face="sans-serif"> <template name="body6"><![CDATA[ ]]></template></font>
<br><font size=2 face="sans-serif"> <edittemplate name="body6"><![CDATA[ ]]></edittemplate></font>
<br><font size=2 face="sans-serif"> <template name="body7"><![CDATA[ ]]></template></font>
<br><font size=2 face="sans-serif"> <edittemplate name="body7"><![CDATA[ ]]></edittemplate> </font>
<br><font size=2 face="sans-serif"> <template name="body8"><![CDATA[ ]]></template></font>
<br><font size=2 face="sans-serif"> <edittemplate name="body8"><![CDATA[ ]]></edittemplate></font>
<br><font size=2 face="sans-serif"> <template name="body9"><![CDATA[ ]]></template></font>
<br><font size=2 face="sans-serif"> <edittemplate name="body9"><![CDATA[ ]]></edittemplate></font>
<br>
<br><font size=2 face="sans-serif"></XMLTEMPLATE></font>
<br>
<br><font size=2 face="sans-serif">3. Now create a new "Page" as usual with the "Wizard" symbol. </font>
<br><font size=2 face="sans-serif">In the "Create new page" dialog there is an option </font>
<br><font size=2 face="sans-serif">"Copy body from". This should now list your "My body file"</font>
<br><font size=2 face="sans-serif">as well. Select this as the body file for your page.</font>
<br>
<br><font size=2 face="sans-serif">Open the page in the editor. The "Body:" selector should now have</font>
<br><font size=2 face="sans-serif">the "(default)" and also "body2" to "body9" available. </font>
<br><font size=2 face="sans-serif">You can now edit each of the bodies separatly. </font>
<br>
<br><font size=2 face="sans-serif">Note: As you can probably guess the naming of the bodies is </font>
<br><font size=2 face="sans-serif">up to you, so instead of "body2" you can use some name like</font>
<br><font size=2 face="sans-serif">"header_text", "foot_text" or whatever. </font>
<br>
<br><font size=2 face="sans-serif">4. Now the only thing to do is make use of the additional bodies </font>
<br><font size=2 face="sans-serif">in your templates. </font>
<br>
<br><font size=2 face="sans-serif">Usually, you use something like </font>
<br>
<br><font size=2 face="sans-serif"><cms:include element="body" /></font>
<br>
<br><font size=2 face="sans-serif">to include the body element. </font>
<br><font size=2 face="sans-serif">To include e.g. "body2" use:</font>
<br>
<br><font size=2 face="sans-serif"><cms:include element="body2" /></font>
<br>
<br><font size=2 face="sans-serif">This should be about it. <br>
</font>