Re: No Date in Events after Update
"Matthias Dieke" <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
>
> >
> > Looks like
> >
> > <parameter name="dateformat" value="d.m.Y H:i"/>
> >
> > is missing in
> >
> >> <plugins>
> >> <parameter name="xslt" type="pipeline" value="events.xsl"/>
> >> <extension type="html"/>
> >> <plugin type="events"></plugin>
> >> <plugin type="navitree"></plugin>
> >> </plugins>
> >
> no, i had it - but not at the right position. i had the <plugin
> type="events"></plugin> a second time... now it works - nearly
> perfectly...
>
>
> is it possible to have no end-time displayed? maybe if it's set to
> "00:00:00"?
Yes it is ;) You can do this with xsl and xpath-functions.
Try this, it should work ;)
<xsl:choose>
<xsl:when test="substring-after(@bis,' ') = '00:00:00'">
<xsl:value-of select="substring-before(@bis,' ')" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@bis" />
</xsl:otherwise>
</xsl:choose>
NOTE: if you are uesing in the dateformat-parameter of your configxml "d.m.Y
H:i" the "test"-part of the xsl-stuff has to be modified to:
<xsl:when test="substring-after(@bis,' ') = '00:00'">
Hope that helps.
Matthias
>
>
> adrian
> --
> bitflux-cms mailing list
> [email protected]
> http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
>
--
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms