Re: Two bugs: Multilingual gallery jumping back to default language & Changing language in gallery jumps to overview

Simon Rönnqvist <[email protected]> Mon, 24 Jul 2006 23:35:54 +0300
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
On Mon, 2006-07-24 at 16:52 +0200, Christian Stocker wrote:
> 
> On 24.7.2006 16:39 Uhr, Simon Rönnqvist wrote:
> >   Hi!
> > 
> > I noticed that when using any other language than a site's default
> > language in the gallery, one will jump back to the default language when
> > clicking thumbnails in the overview. 
> 
> just replace $webroot with $webrootLangW in the gallery.xsl where 
> appropriate (it works on my latest installation). It already works on my 
> 1_5 installation correctly.

 Couldn't find any $webroot, my gallery.xsl looks like this (haven't
ever modified it):
<xsl:stylesheet version="1.0" xmlns:bxf="http://bitflux.org/functions" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
 exclude-result-prefixes="bxf xhtml"
>

    <xsl:import href="master.xsl"/>
    <xsl:import href="../standard/plugins/gallery.xsl"/>

    <xsl:output encoding="utf-8" method="xml"/>


    <xsl:param name="thumbWidth" select="100"/>
    <xsl:param name="largeWidth" select="480"/>


    <xsl:template name="leftnavi">
     <xsl:apply-templates select="$navitreePlugin/collection/items/collection[@selected = 'selected']"/>
     <div id="googleAd" class="tall"/>
    </xsl:template>

    <xsl:template name="content">
        <xsl:variable name="gallery" select="/bx/plugin[@name = 'gallery']/gallery"/>


        <xsl:call-template name="gallery_header">
        <xsl:with-param name="gallery" select="$gallery"/>
        </xsl:call-template>
     <p>
            <xsl:call-template name="gallery_displayPager">
                <xsl:with-param name="gallery" select="$gallery"/>
            </xsl:call-template>
&#160;     </p>

        <xsl:call-template name="gallery_displayGallery">
            <xsl:with-param name="gallery" select="$gallery"/>
        </xsl:call-template>

    </xsl:template>

</xsl:stylesheet>


> > Then again if changing language
> > when viewing a specific picture one will be thrown back to the overview.
> 
> You have to live with that for the time beeing :)

No problem, that was a minor issue... :-)

  cheers, Simon

-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms