Re: help
florent Claude <[email protected]> Wed, 04 Jun 2008 12:09:04 +0200
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <1212574144.7886.35.camel@florent-laptop> |
--===============1260467464==
Content-Type: multipart/alternative; boundary="=-8XC4ssU9Qm4Hj0IPBh9u"
--=-8XC4ssU9Qm4Hj0IPBh9u
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi,=20
You can use the sitemap plugin instead of the navitree one.=20
Here are the steps :=20
in /inc/bx/plugins/, you should have a file called sitemap.php
(http://svn.bitflux.ch/repos/public/fluxcms/trunk/inc/bx/plugins/sitemap.=
php)
in /.configxml
> <?xml version=3D"1.0"?>
> <bxcms xmlns=3D"http://bitflux.org/config">
> <plugins>
> <parameter name=3D"xslt" type=3D"pipeline" value=3D"static.xsl"/>
> <extension type=3D"html"/>
> <plugin type=3D"xhtml" admin=3D"true"></plugin>
> <plugin type=3D"navitree"></plugin>
> <plugin type=3D"sitemap"></plugin>
> </plugins>
> </bxcms>
then in master.xsl, at the begining :=20
> <xsl:variable name=3D"sitemapPlugin" select=3D"/bx/plugin[@name=3D'site=
map']"/>
and then later you can use the variable to build your menu. here is an
for example from one of my sites :=20
> <xsl:for-each select=3D"$sitemapPlugin/sitemap//*[@uri=3D'/products/']/=
*/collection">
> <xsl:sort select=3D"display-order" order=3D"ascending" data-type=3D"nu=
mber" />
> <a href=3D"{$webrootLangW}{@uri}" title=3D"{display-name}"><xsl:value-=
of select=3D"display-name" /></a>
> </xsl:for-each>
Hope this helps.=20
Regards,=20
florent Claude | cr=C3=A9atif web libre | http://www.ezoulou.be
Le lundi 02 juin 2008 =C3=A0 15:39 +0200, Pascal Good a =C3=A9crit :
> Dear List.
> I have a problem with the 3rd level navigation. Under
> http://crow-ten.freeflux.net/angebote/
> you can see the first level (Angebote), the second level (Migration,
> Beratung, Spezial:L=C3=A4rm, Spezial:Adressen)
> and the third level (Requirements Enginnering,...).
> So far so good.
>=20
> But the client would like to have in that view, that all points of the
> third level (also from the Beratung, L=C3=A4rm and Adressen)
> is on display.
> Is that possible?
>=20
> Many thanks for your help!
>=20
> Pascal Good
--=-8XC4ssU9Qm4Hj0IPBh9u
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.18.2">
</HEAD>
<BODY>
Hi, <BR>
You can use the sitemap plugin instead of the navitree one. <BR>
Here are the steps : <BR>
<BR>
in /inc/bx/plugins/, you should have a file called sitemap.php (<A HREF="http://svn.bitflux.ch/repos/public/fluxcms/trunk/inc/bx/plugins/sitemap.php">http://svn.bitflux.ch/repos/public/fluxcms/trunk/inc/bx/plugins/sitemap.php</A>)<BR>
<BR>
in /.configxml
<BLOCKQUOTE TYPE=CITE>
<PRE>
<?xml version="1.0"?>
<bxcms xmlns="http://bitflux.org/config">
<plugins>
<parameter name="xslt" type="pipeline" value="static.xsl"/>
<extension type="html"/>
<plugin type="xhtml" admin="true"></plugin>
<plugin type="navitree"></plugin>
<FONT COLOR="#339966"><B> <plugin type="sitemap"></plugin></B></FONT>
</plugins>
</bxcms>
</PRE>
</BLOCKQUOTE>
<BR>
then in master.xsl, at the begining :
<BLOCKQUOTE TYPE=CITE>
<PRE>
<xsl:variable name="sitemapPlugin" select="/bx/plugin[@name='sitemap']"/>
</PRE>
</BLOCKQUOTE>
<BR>
and then later you can use the variable to build your menu. here is an for example from one of my sites : <BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<xsl:for-each select="$sitemapPlugin/sitemap//*[@uri='/products/']/*/collection">
<xsl:sort select="display-order" order="ascending" data-type="number" />
<a href="{$webrootLangW}{@uri}" title="{display-name}"><xsl:value-of select="display-name" /></a>
</xsl:for-each>
</PRE>
</BLOCKQUOTE>
<BR>
Hope this helps. <BR>
Regards, <BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
florent Claude | créatif web libre | <A HREF="http://www.ezoulou.be">http://www.ezoulou.be</A>
</TD>
</TR>
</TABLE>
<BR>
<BR>
Le lundi 02 juin 2008 à 15:39 +0200, Pascal Good a écrit :
<BLOCKQUOTE TYPE=CITE>
Dear List.<BR>
I have a problem with the 3rd level navigation. Under <A HREF="http://crow-ten.freeflux.net/angebote/">http://crow-ten.freeflux.net/angebote/</A><BR>
you can see the first level (Angebote), the second level (Migration, Beratung, Spezial:Lärm, Spezial:Adressen)<BR>
and the third level (Requirements Enginnering,...).<BR>
So far so good.<BR>
<BR>
But the client would like to have in that view, that all points of the third level (also from the Beratung, Lärm and Adressen)<BR>
is on display.<BR>
Is that possible?<BR>
<BR>
Many thanks for your help!<BR>
<BR>
Pascal Good
</BLOCKQUOTE>
</BODY>
</HTML>
--=-8XC4ssU9Qm4Hj0IPBh9u--
--===============1260467464==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
--===============1260467464==--