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>
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;bxcms xmlns=&quot;http://bitflux.org/config&quot;&gt;
    &lt;plugins&gt;
	&lt;parameter name=&quot;xslt&quot; type=&quot;pipeline&quot; value=&quot;static.xsl&quot;/&gt;
        &lt;extension type=&quot;html&quot;/&gt;
        &lt;plugin type=&quot;xhtml&quot; admin=&quot;true&quot;&gt;&lt;/plugin&gt;
	&lt;plugin type=&quot;navitree&quot;&gt;&lt;/plugin&gt;
<FONT COLOR="#339966"><B>	&lt;plugin type=&quot;sitemap&quot;&gt;&lt;/plugin&gt;</B></FONT>
    &lt;/plugins&gt;
&lt;/bxcms&gt;
</PRE>
</BLOCKQUOTE>
<BR>
then in master.xsl, at the begining : 
<BLOCKQUOTE TYPE=CITE>
<PRE>
&lt;xsl:variable name=&quot;sitemapPlugin&quot; select=&quot;/bx/plugin[@name='sitemap']&quot;/&gt;
</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>
&lt;xsl:for-each select=&quot;$sitemapPlugin/sitemap//*[@uri='/products/']/*/collection&quot;&gt;
	&lt;xsl:sort select=&quot;display-order&quot; order=&quot;ascending&quot; data-type=&quot;number&quot; /&gt;
	&lt;a href=&quot;{$webrootLangW}{@uri}&quot; title=&quot;{display-name}&quot;&gt;&lt;xsl:value-of select=&quot;display-name&quot; /&gt;&lt;/a&gt;
&lt;/xsl:for-each&gt;
</PRE>
</BLOCKQUOTE>
<BR>
Hope this helps. <BR>
Regards, <BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
florent Claude&nbsp; |&nbsp; cr&#233;atif web libre&nbsp; |&nbsp; <A HREF="http://www.ezoulou.be">http://www.ezoulou.be</A>
</TD>
</TR>
</TABLE>
<BR>
<BR>
Le lundi 02 juin 2008 &#224; 15:39 +0200, Pascal Good a &#233;crit&nbsp;:
<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&#228;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&#228;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==--