forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CFAS Webmaster <>
Subject Re: Help with new templates
Date Thu, 04 Aug 2005 15:31:55 GMT

Thorsten Scherler wrote:

> That can be caused by the <xsl:for-each select="document()"/>. ;-)

Possibly but I saw the behavior before doing that awful hack.

> ...but the left column is not there by default. Didn't you add that to
The left column (navigation) is in the Tigris skin.  In fact it's 
generated by Forrest off data in site.xml.  I don't even have a 
site2xhtml.xsl file in the tree...


I'll take a look at that...  Although now that I look at the Tigris skin 
again, it doesn't have rounded corners.

>This is the same as a contract. ;-) You may want to use
><forrest:properties/> to pass it to your contract. That would get rid of
>the document() fct. 
>You need to add a custom sitemap to your project. There should be a
>match like 
><map:match pattern="extra.xml">
> <map:generate src="{project:content.xdocs}/new.xml"/>
> <map:serialize type="xml"/>
>Then you can use:
><forrest:contract name="content-extra">
>    <forrest:properties contract="content-extra">
>      <forrest:property name="content-extra" nugget="get.nugget.extra">
>        <url>/extra.xml</url>
>      </forrest:property>
>    </forrest:properties>
>See the content-feeder.ft for more information how to match the content
>but basicly you will add to your contract something like:
><xsl:template name="content-extra-head" >
>  <xsl:param name="content-extra"/>
>  <xsl:copy-of select="$content-extra/document/header/*"/>	 
><xsl:template name="content-extra-body" >
>  <xsl:param name="content-extra"/>
>  <xsl:copy-of select="$content-extra/document/body/*"/>	 
>That should do exactly the same like you implemented it but without the
I'll need to digest this one, as usual.  I've actually done away with 
the need for the separate file by finding where the CSS needed 
tweaking.  It's all integrated back into the one file now.

> Looks nice. :)

I thought so too until I looked at it with IE...  Yech... Oh well, 
that's alpha code for ya!


View raw message