[opencms-dev] Is it possible
Christian Steinert
christian_steinert at web.de
Thu Oct 12 17:36:19 CEST 2006
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
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20061012/2a9ced79/attachment.bin>
More information about the opencms-dev
mailing list