CGBlog multilanguage, pretty urls, detail pages/templates

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
josee225
Forum Members
Forum Members
Posts: 64
Joined: Sat Jun 06, 2009 12:42 am

CGBlog multilanguage, pretty urls, detail pages/templates

Post 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?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”