|
|
Index
| Recent Threads
| Who's Online
| User List
| Register
| Search
| Help
| |
Synyx created an OpenCms 7.0.4 Live CD, based on SLAX Linux, which is now available.
If you want to order a free CD copy, please write, including your postal address, to 
![]() |
OpenCms Forum » List all forums » Forum: Questions about Template Development » Thread: Help for template Design |
|
Thread Status: Normal Total posts in this thread: 5 |
[Add To My Favorites] [Watch this Thread] [Post new Thread] |
| Author |
|
|
Stranger
|
Please can anyone help me in creating new Template.. Different ways of creating like JSP,XML or any.. I have created simple template and even Html pages based on given Template. But needed to create own template with different design.. The documentation provided with OPemCms is not helpfull... Help for Template Design Thanks in advance.. |
||
|
|
Member
|
try this make a template called template.jsp <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %> <html> <head/> <body> <cms:template element="header"> This is my header! </cms:template> </body> </html> then create another jsp page called test.jsp <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %> <cms:include property="template" element="header"/> This is stuff from test.jsp! and then set the template of test.jsp to the path of template.jsp then click test.jsp and you should get something simple working ---------------------------------------- Sun Certified Java Programmer/Web Components Developer |
||
|
|
Stranger
|
Hi, how to set the template for 'test.jsp' with the path of template.jsp. thanks & regards pavanpinnu. |
|||
|
|
Advanced Member Joined: May 7, 2004 Posts: 456 Status: Offline |
The template used is set as a property of the page that should be displayed ---------------------------------------- /** * Florian Hopf * Synyx GmbH & Co. KG */ |
||
|
|
Stranger
|
Hi rexwal, I try the method that you posted but it prompted me this error: Server error 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. javax.servlet.ServletException: javax.servlet.jsp.JspException: VFS target resource "/DBS/test.jsp" was already included earlier. The server cannot complete the request because it encountered an error. May I know how to solve this? |
|||
|
| [Show Printable Version of Thread] [Post new Thread] |