Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1861 2011-08-25 20:09:06

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: MLP - The Multi-Lingual Publishing Pack

Or maybe I copied it from an example in the plugin’s documentation. I better ask Stef about it. ;)

Offline

#1862 2011-08-25 20:09:16

YannigR
New Member
Registered: 2011-08-25
Posts: 7

Re: MLP - The Multi-Lingual Publishing Pack

Thank you very much johnstephens, there is some progress but it is not yet what i am after:

when you go to http://www.grafito-words.com/fr the content isn’t empty anymore but it is the english version of the article, any hint would be welcome as I am a bit out of my depth!

Offline

#1863 2011-08-25 20:17:28

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

Ah, I understood you wanted to show the English article on every front page. If you only want to show one article in every language on the front page, why don’t you create a section for it (e.g. ‘front’) and set only that section to be displayed on the front page? Then you only need a <txp:article /> tag on the front page.

Offline

#1864 2011-08-25 20:27:27

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: MLP - The Multi-Lingual Publishing Pack

YannigR, did you create renditions of Article 17 in French and Spanish using the MLP tab under Content? If you did, the code you originally posted should do the same thing Els described, unless I misunderstood what you’re trying to do again.

Offline

#1865 2011-08-25 20:31:57

YannigR
New Member
Registered: 2011-08-25
Posts: 7

Re: MLP - The Multi-Lingual Publishing Pack

Els wrote:

Ah, I understood you wanted to show the English article on every front page. If you only want to show one article in every language on the front page, why don’t you create a section for it (e.g. ‘front’) and set only that section to be displayed on the front page? Then you only need a <txp:article /> tag on the front page.

Ooops, I didn’t realise that my question was unclear. Yes, i hadn’t thought of this, I am not too keen on repeating myself but i think that I will do this.

Edit: crossposting with johnstephens, see below.

Last edited by YannigR (2011-08-25 20:37:36)

Offline

#1866 2011-08-25 20:36:23

YannigR
New Member
Registered: 2011-08-25
Posts: 7

Re: MLP - The Multi-Lingual Publishing Pack

johnstephens wrote:

YannigR, did you create renditions of Article 17 in French and Spanish using the MLP tab under Content? If you did, the code you originally posted should do the same thing Els described, unless I misunderstood what you’re trying to do again.

Yes I did create renditions in French and Spanish for article 17, I was hoping that i would automagically get the right language but when I am in French or Spanish, my initial code outputs nothing.

Offline

#1867 2011-08-25 20:48:45

YannigR
New Member
Registered: 2011-08-25
Posts: 7

Re: MLP - The Multi-Lingual Publishing Pack

<txp:if_individual_article>
	[<txp:if_individual_article>: false]
	<txp:article id="17" form ="static_article" />
		[SQL (0.000339984893799): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from l10n_txp_es_es where 1=1 and Status >= 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and ID IN (17) order by Posted desc limit 0, 10]
</txp:if_individual_article>

I’ve reverted to the original option and this is the tag trace in case it helps.

Offline

#1868 2011-08-25 20:49:06

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: MLP - The Multi-Lingual Publishing Pack

What Els suggested is the way I handle my homepage content.

Offline

#1869 2011-08-25 20:56:20

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

This doesn’t work because ‘17’ is the id of the article in the ‘textpattern’ table, and on MLP sites articles are pulled from the ‘l10n_lang’ tables, where they have different id’s.

Offline

#1870 2011-08-25 21:12:41

YannigR
New Member
Registered: 2011-08-25
Posts: 7

Re: MLP - The Multi-Lingual Publishing Pack

I get it now, I didn’t really want to copy the page again to make maintenance easier so I decided to use a custom field:

<txp:if_individual_article> 
                 <txp:article form ="static_article" />
 <txp:else /> 
                <txp:article custom2="Main" form ="static_article" />
 </txp:if_individual_article> 

Thank you very much for your help!

Regards

Yannig

Offline

#1871 2011-08-26 11:17:30

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: MLP - The Multi-Lingual Publishing Pack

redbot wrote:

Ok!

Thanks mate :)

Offline

#1872 2011-09-06 09:05:15

jordi
Member
From: Barcelona
Registered: 2005-09-14
Posts: 94
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi, I have updated a site to TXP 4.4.1 / MLP 4.3.0.12 and when trying to install the l10n plugin from the latest distribution I get an error message that the plugin code is broken or empty.

I have found in these boards that this is usually due to a non-compressed plugin, and looking at the txt file I can see that this plugin, contrary to previous versions, is not compressed.

Installing an older version (0.9.13-gp) the site works OK, but… is there any possibility to get a compressed l10n v. 4.3.0.12?

(Sorry if this has been addressed before, but for the life of me I could not find any reference in this thread).

Offline

Board footer

Powered by FluxBB