Re: "multi-language-blog"
Christian Stocker <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
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
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
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms