Page 1 of 1

CGBlog multilanguage, pretty urls, detail pages/templates

Posted: Mon Apr 30, 2012 11:25 am
by josee225
Hello,

I am having a really hard time with CGBlog right now. I am using cmsms 1.9.4.2 and CGBlog 1.7.5.

I have French and English categories, that have the word "english" in the name, because they have the same name in French and English, so I had to make a distinction. I also have a lot less articles in English then French, so for now, the English does not need to have separate pages for each categories, but French does.

I have a 2 languages site, andn CGBlog is used on the French blog page and English blog page. Here is how my tags are constructed in both languages:
FR:

Code: Select all

{CGBlog summarytemplate="sommaire-page-blogue" pagelimit="5" detailpage="blogue" category="Magic the Gathering-Français,YuGiOh-Français,Pokemon-Français,Jeux de société-Français,Divers-Français"}
EN:

Code: Select all

{CGBlog summarytemplate="sommaire-page-blogue-en" pagelimit="5" detailpage='blog' category="Magic the Gathering-English,Divers-English" detailtemplate="detail-en"}
Because I am using pretty urls, I had to choose a default page for my posts, and I chose the french blog page.

My question: why won't CGBlog just go to the desired page and use the desired detail template specified in my tag? Right now, all my English post open up in the French version of the site, which evidently does not work for us. And, not as bad because it is the right language, but all my French posts open in the blog page, and not the specified one in my tag.

So is there anyway to achieve this?

Re: CGBlog multilanguage, pretty urls, detail pages/template

Posted: Mon Apr 30, 2012 11:34 am
by Rolf
Hi

I made this post once, it is in Dutch but the bigger part of the post is (smarty) code. I hope you can use it http://forum.cmsmadesimple.org/viewtopi ... 61#p259861
It is based on my other ML-post here http://forum.cmsmadesimple.org/viewtopi ... =4&t=48112 in English

Grtz. Rolf