Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2011-04-28 04:20:49

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,252
Website Mastodon

Re: Academic bilingual site

Els wrote:

Maybe Robert’s article can help? Multi-lingual articles in Textpattern: A poor man’s solution

it does … thanks
Am i assuming correctly that the text has to be entered in a form? it cannot therefore be done by editors at the new article phase? I don’;t want to give editors access to the forms or pages sections.


…. texted postive

Offline

#17 2011-04-28 07:38:02

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

Re: Academic bilingual site

Well, if you’re only using two languages, I guess you could use the body and excerpt field for the article body, and maybe custom fields for the titles and do something like this:

<txp:output_form form="accept-language" />
<txp:if_variable name="accept-language" value="de">

<h3><txp:custom_field name="german_title" /></h3>
<txp:body />

<txp:else />

<h3><txp:custom_field name="english_title" /></h3>
<txp:excerpt />

</txp:if_variable>

BTW here is the wiki article. It’s a bit outdated, the described workarounds are no longer necessary since we can use tags as attributes.

Offline

Board footer

Powered by FluxBB