Re: [Hypercontent-users] Text Only Template
Brought to you by:
alexvigdor
From: Adam C. <ac...@co...> - 2004-09-20 16:23:54
|
Carl, Many times I produce a 'printable' version of a page as well as the web=20= version. This page is created for all pages but I give the user the ability to hide the link to the printable page.=20= I create a variable in my page dtd and check for yes in my xsl. Here is some sample code: <xsl:variable name=3D"sourceDirectory"=20 select=3D"/cms:wrapper/cms:source/@directory" /> <xsl:variable name=3D"sourceBaseName"=20 select=3D"/cms:wrapper/cms:source/@basename" /> <xsl:if=20 test=3D"/cms:wrapper/cms:source/page/@include-printable-page-link=20 =3D'yes'"> =09 <div id=3D"divPrintablePageLink"> <a target=3D"_blank" class=3D"PrintablePageLink"=20= href=3D"{concat($baseURL,'/printable',$sourceDirectory,$sourceBaseName,=20= '.html')}">View Printable Version</a> </div> =09 </xsl:if> This assumes you pass in the base URL into the stylesheet as a=20 parameter. <xsl:param name=3D"baseURL" /> Hope this helps. Adam On Sep 20, 2004, at 11:30 AM, Carl Barrow wrote: > Hi Alex > > I have set up a second text only high contrast site template and that=20= > site is built/published at the same time as the standard site in a=20 > directory called =91text_only=92 which is off the root of the standard=20= > site. I assumed that the navigation would be relative and work fine=20 > for that version of the site, however all links take you to the=20 > standard site rather the pages within the text only site. Have I=20 > missed something in setup, do I need to do something else? > > I need a link on each page of the standard site to the corresponding=20= > page in the text only site. Do you have any idea how I might=20 > accomplish this? I assume I would be able to do it in xsl? > > The last question is for now=85. > > When the user is editing a site using hypercontent the files are=20 > visible on the left menu. Each file has an xml extension. Would it be=20= > possible to remove the xml extension? While to me it makes sense, some=20= > of our users here won't be able to cope with it. > > Many Thanks > Carl > > --=20 > ************************************ > > Carl Barrow > Web Developer > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement = on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |