forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CFAS Webmaster <webmas...@cfas.org>
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
>
>site2xhtml.xsl?
>  
>
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...

> http://forrest.apache.org/docs_0_80/howto/howto-corner-images.html

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"/>
></map:match>
>
>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>
></forrest:contract>
>
>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>
>
><xsl:template name="content-extra-body" >
>  <xsl:param name="content-extra"/>
>  <xsl:copy-of select="$content-extra/document/body/*"/>	 
></xsl:template>
>
>That should do exactly the same like you implemented it but without the
>document().
>  
>
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!

-Paul

Mime
View raw message