Re: "multi-language-blog"

Adrian Nussbaum <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
Am 11.06.2005 um 10:46 schrieb Christian Stocker:

>
>
> On 11.6.2005 9:38 Uhr, Adrian Nussbaum wrote:
>
>>
>> Am 10.06.2005 um 18:16 schrieb Christian Stocker:
>>
>>> On 10.6.2005 18:01 Uhr, Adrian Nussbaum wrote:
>>> That's not a bad idea, you could even assign sub-categories, if you
>>> want.
>>>
>>
>> How can i do that? When/how is a category a sub-category and not  
>> just  a
>> further assigned category?
>>
>
> If Parent-Category ist not "root" but another category.
>
>
>>> The
>>> only "problem" is for the links to the blog, you'd have to  
>>> hardcode it
>>> somehow in the navigation (or use the bx:relink property in   
>>> properties,
>>> but they are not really language dependent currently)
>>>
>>
>> Can't I "just" change some code in the blog.xsl to get only "right"
>> posts shown? Isn't there any definition of what is put out on the   
>> page
>> where i could insert a language-parameter somehow?
>>
>
> No. The actual content is generated before the xsl is called, so you
> would have to change blog.php. There you could of course try to take
> only the posts of one language (resp. category). That would be around
> line 165 in inc/bx/plugins/blog.php
>
>             if (isset($cat)  && $cat && $cat != '_all') {
>                 $lres = $GLOBALS['POOL']->db->query("select l,r from
> ".$tablePrefix."blogcategories where
> ".$tablePrefix."blogcategories.fulluri = '$cat' and
> ".$tablePrefix."blogcategories.status=1 ");
>
> There we check, which categories are called.
>
> just add your choosen language to $cat and you should be somehow fine

is there a (php-)variable defined for the language, so i could  
replace $cat with it?

>
> chregu
>
>
>
>
>>> links would then be
>>>
>>> http://example.org/blog/de/ for the german part
>>> http://example.org/en/blog/en/ for the english posts
>>> etc..
>>> You can even have language dependent rss feeds this way.
>>>
>>> http://example.org/blog/de/rss.xml for german posts
>>> http://example.org/blog/en/rss.xml for english posts
>>>
>>
>> would be great!
>>
>>
>>
>>>> #2 | use tags
>>>> maybe i could be possible to select the "blog"-entries by tags...?
>>>> so  i
>>>> could put a "de"-tag (and others, of course) to every german   
>>>> entry  and
>>>> put only the entries with "de"-tags on the german page...?
>>>> could this work?
>>>>
>>>>
>>>
>>> Not really practical currently. Or I don't know a fast solution for
>>> that.
>>>
>>
>> no problem, i just want to try the most easiest way anyway ;-)
>>
>>
>> adrian
>>
>>
>>
>>>
>>> chregu
>>>
>>>
>>>>
>>>> thanx for your hints or other ideas...
>>>>
>>>>
>>>> adrian
>>>>
>>>>
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>   xpure - creative services - www.xpure.ch
>>>>   adrian nussbaum | neumattstrasse 107 | ch-3422 ruedtligen
>>>>   mobile: + 41 764 283 913   |    private: + 41 344 456 061
>>>>   [email protected] | http://www.xpure.ch |  www.blogomanie.info
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>
>>>>
>>>>
>>>
>>> -- 
>>> christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004  
>>> zurich
>>> phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240  
>>> 56 71
>>> http://www.bitflux.ch  |  [email protected]  |  gnupg-keyid  
>>> 0x5CE1DECB
>>>
>>>
>>>
>>>
>>
>>
>>
>> adrian
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   xpure - creative services - www.xpure.ch
>>   adrian nussbaum | neumattstrasse 107 | ch-3422 ruedtligen
>>   mobile: + 41 764 283 913   |    private: + 41 344 456 061
>>   [email protected] | http://www.xpure.ch |  www.blogomanie.info
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>
> -- 
> christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
> phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
> http://www.bitflux.ch  |  [email protected]  |  gnupg-keyid 0x5CE1DECB
>
>
>



adrian


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   xpure - creative services - www.xpure.ch
   adrian nussbaum | neumattstrasse 107 | ch-3422 ruedtligen
   mobile: + 41 764 283 913   |    private: + 41 344 456 061
   [email protected] | http://www.xpure.ch |  www.blogomanie.info
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.