Thread: [Hypercontent-users] Reusing data across sites
Brought to you by:
alexvigdor
From: Carl B. <C.P...@hu...> - 2006-11-15 15:25:30
|
***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
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 |
From: Alex V. <al...@bi...> - 2006-11-19 18:55:36
|
Hi Carl, I realized I didn't answer your second question about using site = CSS =20 in TinyMCE. You just need to override the default XML editor =20 configuration by adding it to your project-specific pipelines.xml <pipeline name=3D"xml" mode=3D"xml-edit" basedir=3D"/" = content-type=3D"text/=20 html" permissions=3D"read,write"> <open-file/> <bind-form = processor=3D"org.hypercontent.form.xml.XmlFormProcessor" =20 as=3D"xml-form"/> <exec stage=3D"org.hypercontent.form.xml.XmlPrepStage"/> <exec = stage=3D"org.hypercontent.project.engine.stage.XSLTransformStage"> <with-param name=3D"source" = value=3D"/screens/modal-xml-tiny-mce.xsl"/> <with-param name=3D"localize-with" = value=3D"/l10n/xml"/> <with-param name=3D"baseActionURL" = value=3D"${baseActionURL}"/> <with-param name=3D"content-css" = value=3D"/css/mystyles.css"/> </exec> =09 </pipeline> Cheers, Alex On Nov 15, 2006, at 10:25 AM, Carl Barrow wrote: > > > Also, It is possible to set a CSS which is accessible though =20 > tinyMCE in model-xml-tiny-mce.xsl Last time I did this it set the =20 > same CSS for all the sites. Can I set a different CSS far each =20 > site? I notice that you=92ve added an if statement around the CSS =20 > config line, but I=92m not sure just what that=92s used for. > > > > <xsl:if test=3D"$content-css"> > > , content_css : "<xsl:value-of select=3D"concat($abs-=20 > project-base,$content-css)"/>" > > </xsl:if> > > > > > > Cheers > > Carl > > > > ************************************* > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > > ************************************* > > > > **********************************************************************=20= > ******************* > To view the terms under which this email is distributed, please go =20 > to http://www.hull.ac.uk/legal/email_disclaimer.html > **********************************************************************=20= > *******************---------------------------------------------------=20= > ---------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to =20 > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV____________________________= ____=20 > _______________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |