Re: [Hypercontent-users] Reusing data across sites
Brought to you by:
alexvigdor
From: Alex V. <al...@bi...> - 2006-11-15 18:05:03
|
Hi Carl, There are a couple of possibilities for reusing data across sites. =20 1) You can mount the course site repository in another site using a "moun= t" tag in the project definition of the site that wants to borrow the data, = below which you would just specify the filesystem-def for the course repository= . You could map it to "/courses/" or something, and then include "/courses/dir/file.xml" which would correspond to "/dir/file.xml" in the shared repository. 2) You could try including it using the special "hypercontent" url handle= r, e.g. include source=3D"hypercontent:/project-name/dir/file.xml" With option 1 you should also be able to include with * patterns, but not= with option 2, which will support only literal file locations. Cheers, Alex On Wed, 15 Nov 2006 15:25:09 -0000, Carl Barrow wrote=20 > Hi Alex,=20 > =20 > Reusing data in a site is done by using a number of xml included so tha= t you can use content from one page in another. Is there anyway that I could d= o the same thing across sites? So for instance, we could have a site that con= tains details of all courses here at the Uni. Then each departmental site could= use the course info from one central place.=20 > =20 > Also, It is possible to set a CSS which is accessible though tinyMCE i= n model-xml-tiny-mce.xsl Last time I did this it set the same CSS for all = the sites. Can I set a different CSS far each site? I notice that you=92ve a= dded an if statement around the CSS config line, but I=92m not sure just what th= at=92s used for.=20 > =20 > <xsl:if test=3D"$content-css">=20 > , content_css : "<xsl:value-of select=3D"concat($abs-project-base,$content-css)"/>"=20 > </xsl:if>=20 > =20 > =20 > Cheers=20 > Carl=20 > =20 > *************************************=20 > Carl Barrow=20 > Systems Integrator=20 > e-Services=20 > The University of Hull=20 > Cottingham Road=20 > Hull=20 > HU6 7RX=20 > Ext. 6838=20 > *************************************=20 > =20 |