[opencms-dev] Is it possible

Tom Miller tom at hostwebase.com
Thu Oct 12 19:47:30 CEST 2006


Christian,

Thank you very much for you comments.

Tom



---- Original message ----
>Date: Thu, 12 Oct 2006 17:36:19 +0200
>From: Christian Steinert <christian_steinert at web.de>  
>Subject: Re: [opencms-dev] Is it possible  
>To: tom at hostwebase.com, The OpenCms mailing list <opencms-
dev at opencms.org>
>
>Oh, you want an editable HTML page with some JSP code in it?
>I am afraid that this is not supported in opencms.
>For that, you have to create a JSP-based template and then 
pull your
>content together from different pages.
>
>If you have lots of structured content, then you should use 
your own XML
>content type. There is a good tutorial on how to create an 
xml-based
>structured content type together with a simple jsp template 
that will
>display its contents:
>   
>http://www.wdogsystems.com/opencms/opencms/demos/structured_
content_editing.html
>
>It's better to separate structure and content like this, 
instead of
>trying to make your template know your content directly.
>
>hth
>christian
>
>
>> It is possible for me to embed or write Opemcms taglib 
>> direct into an JSP file instead of extract the information
>> from the JSP file into a html file and then included the 
>> html file in the JSP.  
>> Like the one I have done below.  (search for cms)
>>
>>
>> I want able to leave the orginal JSP alone and just add 
the
>> OPencms code to edit.  Is this possible?
>>
>> x
>>             </tr>
>>             <tr bgcolor="3D4958">
>>               <td colspan="7"> </td>
>>             </tr>
>>           </table>
>>         </div></td>
>>       <td width="8" rowspan="7" 
bgcolor="3D4958"> </td>
>>     </tr>
>>     <tr>
>>       <td valign="top" bgcolor="2B3543"
>> class="newstext"><br>
>>         <cms:include file="newsa.html" element="body" 
>> editable="true" />
>>       </td>
>>     </tr>
>>     <tr>
>>       <td valign="middle" bgcolor="2B3543"
>> class="newstext"><img src="graphics/dot_4.gif" width="187"
>> height="1"></td>
>>     </tr>
>> <%
>>   if ((isManager != null) && isManager.equals("N")) {
>> %>
>>     <tr>
>>       <td valign="top" bgcolor="2B3543"
>> class="newstext">
>>         <br><cms:include file="newsb.html" element="body" 
>> editable="true" />
>>       </td>
>>     </tr>
>>     <tr>
>>       <td valign="middle" bgcolor="2B3543"
>> class="newstext"><img src="graphics/dot_4.gif" width="187"
>> height="1"></td>
>>     </tr>
>> <%
>>   } else if ((isManager != null) && isManager.equals
("Y")) {
>> %>
>>     <tr>
>>       <td valign="top" bgcolor="2B3543" class="newstext">
>>         <br><cms:include file="newsc.html" element="body" 
>> editable="true" />
>>       </td>
>>     </tr>
>>     <tr>
>>       <td colspan="5" valign="middle" bgcolor="3D4958"
>> class="newstext"> </td>
>>     </tr>
>> <%
>>   }
>> %>
>>   </table>
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the 
list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>>   
>
>________________
>smime.p7s (5k bytes)



More information about the opencms-dev mailing list