[opencms-dev] RE: static export ok

Ivan Saracino ivan.saracino at newmedia.it
Tue Apr 19 09:06:14 CEST 2005


 

	
	I find a solution to my previous post:

	1) in opencms-importexport.xml set true the userelativelinks node.
	
	2) Set proprties of those folders:

		/site/mysite/
			export:      true
			exportname:  /mysite

		/system/modules/it.mysite.www/img
			export:      true
			exportname:  /mysite/img

		/system/modules/it.mysite.www/css
			export:      true
			exportname:  /mysite/css

		/system/modules/it.mysite.www/banner
			export:      true
			exportname:  /mysite/banner



		When I make a static export I obtain this folder structure under (Tomcat) WEB-INF/export

		
		mysite
			banner
			img
			css
			it
			en
			imagegallery
			linkgallery

		Tomcat and IIS are installed to the same server but is not mandatory. You can transfer the site folder structure where yoy want.

		Then I created a new web site with a window server edition (I use 2000 server) pointing to
		(tomcat)WEB-INF/export/mysite

		You need to add an index.html file in WEB-INF/export/mysite directory  pointing to your home page:

		i.e. in my case
		
		<html>
			<head>
				<meta http-equiv="refresh" content="0; url=it/html/index.html">
			</head>
		<body></body>
		</html>

		Hope it helps somebody because a lost a lot of time...

		Thx all for the given help. My openxcms-site will be soon in production :-)
		
				

___________________________________________________________


  Ivan Saracino ivan.saracino at newmedia.it
  NewMedia Solutions srl - Via San Gregorio 6, 20124 Milano      
  Tel (+39) 02 202316.1 - Fax (+39) 02 202316.50	
  site:   http://www.newmediasolutions.it  
  portal: http://www.newmedia.it 

___________________________________________________________
 
-----Original Message-----
From: Ivan Saracino 
Sent: mercoledì 13 aprile 2005 15.14
To: 'opencms-dev at opencms.org'
Subject: static export


	 hi all,
	 thx all for helping me finishing my opencms-site!
	 The last thing I need to do is to statically export my site because
	 it MUST be served by IIS.

	 This is the vfs-structure of my site in opencms:
		
	 /sites/mysite/
			   --> it italian html pages
			   --> en english html pages 
			   --> imagegallery (for content)
			   --> linkgallery
			 
	/system/modules/it.mysite.www/  
						--> class
						--> default-bodyes
						--> elements
								--> bredcrumbs.jsp
								--> rightmenu.jsp
								--> leftmenus.jsp
								--> productdetails.jsp (to render xmlcontent product)
								--> newsdetail.jsp (to render xmlcontent news)
						--> lib
						--> resources
								--> banner
								--> img (for the site structure and layout)
								--> js  (javascript function file)
								--> css	
						--> templates
								--> templates wich include some elements above.
						--> xmlcontentdefinitions
										--> products.xsd
										--> news.xsd

	 I need /sites/mysite/ to be statically exported. 
	 When I tried to export the site all links generated by opencms are not correct

	 there is always /opencms/opencms or /opencms/export prefix. (It must be served by IIS..)
	 
	Have I to set export and exportname properties of the elements directories in the module? how?

	my templates use link like this:

	<cms:link>../js/function.js </cms:link> (to refer javascript file)

	or 
	
	<cms:include file="../elements/rightmenu.jsp" /> (to include the dinamically created right menu)

	thx again.
	  	   
___________________________________________________________

  Ivan Saracino ivan.saracino at newmedia.it
  NewMedia Solutions srl - Via San Gregorio 6, 20124 Milano      
  Tel (+39) 02 202316.1 - Fax (+39) 02 202316.50	
  site:   http://www.newmediasolutions.it  
  portal: http://www.newmedia.it
___________________________________________________________
 




More information about the opencms-dev mailing list