Thread: [Hypercontent-users] Running hypercontent in uP2-1-4
Brought to you by:
alexvigdor
From: Carl B. <C.P...@hu...> - 2004-09-15 11:31:14
|
Hi Alex More questions...... Now I have HyperContent up and running here at Hull on a test server I need to get some people using it. To do this I'm probably going to have to run it though uPortal_2-1-4. Is this easy to do? Do you have any specific instructions to help out? You said you might be able to provide some code for setting up a bread crumb trail. That would be very helpful. Thanks for all your help with this. Carl -- ************************************ Carl Barrow Web Developer e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2004-09-15 16:08:48
|
HyperContent runs fine in uPortal 2.1.4 - that's what we use here at Columbia as well. The same build script works fine to deploy it, as long as you configure the directories in build.properties appropriately. Setting up a bread crumb trail depends on how your site is configured - are you using a navigation document (as described at http://hypercontent.sourceforge.net/docs/manual/develop/ navigation.html), or just using includes to build navigation? If you use the navigation editor, you can just walk up the navigation document from the node corresponding to the current page. If you're using includes, you would have to define includes for the ancestor pages (e.g. ../index.xml, ../../index.xml), and then look them up by pattern in your XSL. Let me know which way your site is configured, and perhaps we can get Adam Carl to provide some sample code from one of our sites. Alex On Sep 15, 2004, at 7:34 AM, Carl Barrow wrote: > Hi Alex > > More questions...... > > Now I have HyperContent up and running here at Hull on a test server I > need to get some people using it. To do this I'm probably going to > have to run it though uPortal_2-1-4. Is this easy to do? Do you have > any specific instructions to help out? > > You said you might be able to provide some code for setting up a bread > crumb trail. That would be very helpful. > > Thanks for all your help with this. > > 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: thawte's Crypto Challenge Vl > Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam > Camcorder. More prizes in the weekly Lunch Hour Challenge. > Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > |
From: Alex V. <av...@co...> - 2004-09-16 16:39:26
|
Well, you would probably need something like <xsl:variable name="navigation" select="/cms:wrapper/child::*/navigation"/> <xsl:variable name="sourceLoc" select="/cms:wrapper/cms:source/@path"/> <xsl:template name="breadcrumb"> <!-- by default, grab the topmost nav-item which is an ancestor of the nav-item corresponding to the current page --> <xsl:param name="item" select="$navigation/nav-item[//nav-item[@location=$sourceLoc]]"/> <!-- presumes a template which formats a link from a nav-item --> <xsl:call-template name="nav-item-link:> <xsl:with-param name="item" select="$item"/> </xsl:call-template> <xsl:if test="not($item/@location=$sourceLoc)"> <!-- if we haven't reached the source nav-item yet, recurse --> <xsl:text> > </xsl:text> <xsl:call-template name="breadcrumb"> <!--grab the next ancestor nav-item --> <xsl:with-param name="item" select="$item/nav-item[//nav-item[@location=$sourceLoc]]"/> </xsl:call-template> </xsl:if> </xsl:template> On Sep 16, 2004, at 4:32 AM, Carl Barrow wrote: > I am using a navigation document to build navigation.... > > Thank > Carl > > Alex Vigdor wrote: > >> HyperContent runs fine in uPortal 2.1.4 - that's what we use here at >> Columbia as well. The same build script works fine to deploy it, as >> long as you configure the directories in build.properties >> appropriately. >> >> Setting up a bread crumb trail depends on how your site is configured >> - are you using a navigation document (as described at >> http://hypercontent.sourceforge.net/docs/manual/develop/ >> navigation.html), or just using includes to build navigation? If you >> use the navigation editor, you can just walk up the navigation >> document from the node corresponding to the current page. If you're >> using includes, you would have to define includes for the ancestor >> pages (e.g. ../index.xml, ../../index.xml), and then look them up by >> pattern in your XSL. Let me know which way your site is configured, >> and perhaps we can get Adam Carl to provide some sample code from >> one of our sites. >> >> Alex >> >> >> On Sep 15, 2004, at 7:34 AM, Carl Barrow wrote: >> >>> Hi Alex >>> >>> More questions...... >>> >>> Now I have HyperContent up and running here at Hull on a test server >>> I need to get some people using it. To do this I'm probably going >>> to have to run it though uPortal_2-1-4. Is this easy to do? Do >>> you have any specific instructions to help out? >>> >>> You said you might be able to provide some code for setting up a >>> bread crumb trail. That would be very helpful. >>> >>> Thanks for all your help with this. >>> >>> 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: thawte's Crypto Challenge Vl >>> Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam >>> Camcorder. More prizes in the weekly Lunch Hour Challenge. >>> Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: thawte's Crypto Challenge Vl >> Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam >> Camcorder. More prizes in the weekly Lunch Hour Challenge. >> Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m >> _______________________________________________ >> 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 > ************************************ > |