You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Jörn Nettingsmeier <po...@uni-duisburg.de> on 2005/12/07 16:17:23 UTC
[BUGLET] 1.4: /index.html does not refresh after new publication
is created
hi everyone!
a very minor issue: when i create a new publication in 1.4, it is not
shown when i get back to the index.html page. after a manual page
reload, it's there.
i would like to try to add a
<meta http-equiv="cache-control" content="no-cache"> to /index.html to
see if it helps, but haven't yet figured out how that url is processed.
adding the following to webapp/lenya/xslt/util/welcome.xsl did not work:
<xsl:template match="lenya:lenya">
<page:page>
<page:title>Apache Lenya - Content Management System</page:title>
<page:meta http-equiv="cache-control" content="no-cache"/>
<page:meta http-equiv="pragma" content="no-cache"/>
<page:body>
<xsl:apply-templates select="xhtml:div[@class='lenya-frontpage']"/>
<xsl:apply-templates select="lenya:publications"/>
</page:body>
</page:page>
</xsl:template>
the tags are being ignored, probably no matcher down the chain. (btw, i
also tried without the "page:" prefix, but there seems to be no default
matcher either.
i see welcome.xsl is used in webapp/global-sitemap:
<map:match pattern="index.html">
...
<map:transform src="lenya/xslt/util/welcome.xsl"/>
...
</map:match>
but i can't figure out what happens with the xml output from this match.
where does it go until it's finally serialized to xhtml?
regards,
jörn
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: [BUGLET] 1.4: /index.html does not refresh after new publication
is created
Posted by Jörn Nettingsmeier <po...@uni-duisburg.de>.
Andreas Hartmann wrote:
> Jörn Nettingsmeier wrote:
>> hi everyone!
>>
>>
>> a very minor issue: when i create a new publication in 1.4, it is not
>> shown when i get back to the index.html page. after a manual page
>> reload, it's there.
>>
>> i would like to try to add a
>> <meta http-equiv="cache-control" content="no-cache"> to /index.html to
>> see if it helps, but haven't yet figured out how that url is processed.
>>
>> adding the following to webapp/lenya/xslt/util/welcome.xsl did not work:
>>
>> <xsl:template match="lenya:lenya">
>> <page:page>
>> <page:title>Apache Lenya - Content Management System</page:title>
>>
>> <page:meta http-equiv="cache-control" content="no-cache"/>
>>
>> <page:meta http-equiv="pragma" content="no-cache"/>
>
>
> You could try
>
> <page:page>
> <page:title> ...
> <page:head>
> <xhtml:meta ... />
that fixes it, thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: [BUGLET] 1.4: /index.html does not refresh after new publication
is created
Posted by Andreas Hartmann <an...@apache.org>.
Jörn Nettingsmeier wrote:
> hi everyone!
>
>
> a very minor issue: when i create a new publication in 1.4, it is not
> shown when i get back to the index.html page. after a manual page
> reload, it's there.
>
> i would like to try to add a
> <meta http-equiv="cache-control" content="no-cache"> to /index.html to
> see if it helps, but haven't yet figured out how that url is processed.
>
> adding the following to webapp/lenya/xslt/util/welcome.xsl did not work:
>
> <xsl:template match="lenya:lenya">
> <page:page>
> <page:title>Apache Lenya - Content Management System</page:title>
>
> <page:meta http-equiv="cache-control" content="no-cache"/>
>
> <page:meta http-equiv="pragma" content="no-cache"/>
You could try
<page:page>
<page:title> ...
<page:head>
<xhtml:meta ... />
See xslt/util/page2xhtml:xsl:
<html>
<head>
...
<xsl:copy-of select="page:head/*"/>
</head>
HTH,
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org