[opencms-dev] bvr: problems including a file

Michael, Nick N Nick.Michael at standardbank.co.za
Mon Oct 3 12:30:03 CEST 2005


Hi there
I have a template with this code to include a file OrangeMenu.html which I
want to manage as a separate content
which I have edited and viewed and its ok

the content of file OrangeMenu.html I want to include :

<table width="95%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td class="buttonHeading"
onMouseOver="this.className='buttonMouseOverHeading'"
onMouseOut="this.className='buttonHeading'" ><div align="center"><a
href="/opencms/opencms/testProject/OrangeTest/index.html" class="logon"
>Orange Home</a></div>
		</td>
	</tr>
</table>



I used this code:

<!-- Navigation starts here --> 
<%@ include file="OrangeMenu.html" %>
<!-- Navigation ends here --> 

However I do not get the file included successfully

I get this included:

<!-- Navigation starts here --> 
<?xml version="1.0" encoding="UTF-8"?>

<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.opencms.org/dtd/6.0/xmlpage.xsd">
  <page language="en">
    <element name="body">
      <links/>
      <content/>
    </element>
  </page>
</pages>

<!-- Navigation ends here --> 

I do not want the XML I want the content for the file
What am I doing wrong

Also I do not want the content of the included file in a html file
I would like to include code from a txt or a jsp file that I can edit

What must I do
Could I declare a token of sorts inside the file to be included so only that
part of the file is included

regards
Nick


<!------------------------------- the code of the included page is:
------------------------------------>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<link REL="STYLESHEET" TYPE="text/css"
HREF="/opencms/opencms/system/modules/com.free.templates.orangetemplate/reso
urces/style.css"/>
</head>
<body>
<!---------- I want to start including from here --------------->
<table>
  <tr>
        <td valign="top">
            <div class="element"> 
          <table width="95%" border="0" cellspacing="0" cellpadding="0">
									<tr>
	
<td class="buttonHeading"
onMouseOver="this.className='buttonMouseOverHeading'"
onMouseOut="this.className='buttonHeading'" ><div align="center"><a
href="/opencms/opencms/testProject/OrangeTest/index.html" class="logon"
>Orange Home</a></div></td>
	
</tr>
</table>
            </div>   
	</td>		
  </tr>
</table>

<!---------- I want to stop including here --------------->
</body>
</html>


With kind regards
Nick Michael
tel 2-9032
cell 082-508-1950


__________________________________________________________________________________________________________________________________

Standard Bank Disclaimer and Confidentiality Note

This e-mail, its attachments and any rights attaching hereto are, unless the context clearly indicates otherwise, the property of Standard Bank Group Limited
and/or its subsidiaries ("the Group"). It is confidential, private and intended for the addressee only. Should you not be the addressee and receive this e-mail by
mistake, kindly notify the sender, and delete this e-mail, immediately and do not disclose or use same in any manner whatsoever. Views and opinions
expressed in this e-mail are those of the sender unless clearly stated as those of the Group. The Group accepts no liability whatsoever for any loss or
damages whatsoever and howsoever incurred, or suffered, resulting, or arising, from the use of this email or its attachments. The Group does not warrant the integrity
of this e-mail nor that it is free of errors, viruses, interception or interference. Licensed divisions of the Standard Bank Group are authorised financial services providers
in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 (FAIS).
For information about the Standard Bank Group Limited visit our website http://www.standardbank.co.za
___________________________________________________________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20051003/b3f5cb2a/attachment.htm>


More information about the opencms-dev mailing list