Re: [Hypercontent-users] /uportal/ before links
Brought to you by:
alexvigdor
From: Carl B. <C.P...@hu...> - 2005-02-04 10:03:11
|
Hi Alex My xsl is probably the same as you are using there : <xsl:template match="a" mode="html"> <xsl:copy> <xsl:attribute name="href"> <xsl:choose> <xsl:when test="starts-with(@href,'/')"> <xsl:value-of select="concat($baseurl,@href)" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="@href" /> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:apply-templates select="@*[not(name()='href')]" mode="html"/> <xsl:apply-templates select="node()" mode="html"/> </xsl:copy> </xsl:template> Everything works fine the first time I add the link e.g. 'file.html' , I save and build and the link works without problem. If I edit the page again then save and build the /uPortal/ is put in . Is this just a WYSIWYG editor problem which could be overcome by using something other than HTML Area ? Or is there any chance of a backwards compatible patch that might fix the problem? Failing that, how are you getting around it with your users there? I know some of my users here won't cope with adding a directory before the filename. Thanks Carl Alex Vigdor wrote: > Hi Carl, > Unfortunately, the only sure fire way for internal links to work > in the WYSIWYG in 1.4, is to use the full repository path of the file > (e.g. "/dir/file.html") for the href, and then prepend the base-url in > the XSL template. This is how the example site is set up . . . this > has to do with some limitations of the rich content editing > functionality of the browsers, which presents problems when editing > content that is masked behind the portal. I think relative links will > work in 2.0, but I'll double check. Let me know if you need the link > and image XSL templates that we use - they should be in the > HyperContent site common xsl file. > > Alex > > > On Feb 3, 2005, at 11:53 AM, Carl Barrow wrote: > >> Hi Alex >> >> I have discovered a problem with links just before going live with >> the first two sites here at Hull. >> If I create a link in a page ie. to 'file.html' and save the page. >> When editing that page and changing the link I notice that >> /uportal/ has been placed before the filename. >> I can't find any settings that might be causing it. Is there >> anything you can suggest ? >> >> Thanks >> Carl >> >> -- >> ************************************ >> >> Carl Barrow >> Web Developer >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting >> Tool for open source databases. Create drag-&-drop reports. Save time >> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users -- ************************************ Carl Barrow Web Developer e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |