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

Christian Stocker <[email protected]> Tue, 25 Jul 2006 07:34:36 +0200
Newsgroups gmane.comp.cms.bitflux.general
Organization Bitflux GmbH
Message-ID <[email protected]>

On 24.7.2006 22:35 Uhr, Simon Rönnqvist wrote:
> 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):

The adjustments needed are in standard/themes/plugins/gallery.xsl

IIRC you should be able to just take the gallery.xsl from 1.5 or trunk, 
not much has changed there since 1.3 .)

chregu



> <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

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] |  GPG 0x5CE1DECB
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms