Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-07-01 14:50:30
- quinceginger
- Member
- From: Romania
- Registered: 2006-08-21
- Posts: 29
Academic bilingual site
Ludwig von Mises Institute – Romania
A variation on Vadimir Agafonkin’s “Serene” template. Free website for a non-profit private academic organization. Holds a lot of big texts: mostly books and articles in romanian.
My first txp attempt, built as I learned txp. Many things could and can be done better, I know…
I tried to keep the plug-ins at a minimum and so the site only uses: ako_nav, rss_admin_db_manager, rss_article_edit, wet_replace, zem_contact_lang, zem_contact_reborn, zem_redirect.
Offline
Re: Academic bilingual site
looks fine to me. How did you do the bilingual thing? You’re not using the Multi-Lingual Publishing Pack, are you?
Offline
Re: Academic bilingual site
beautiful!
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#4 2007-07-01 19:45:31
- quinceginger
- Member
- From: Romania
- Registered: 2006-08-21
- Posts: 29
Re: Academic bilingual site
colak wrote:
beautiful!
I’m glad you like it. Thank you!
jordi wrote:
looks fine to me. How did you do the bilingual thing? You’re not using the Multi-Lingual Publishing Pack, are you?
I was not aware of the MLP at the time I began the site and then it was too late to change.
In my case I have parallel english & romanian language sections, ex.: “books”/“cuprins”. There are pairs of ro & en articles, each in its corresponding section and each has a “ro-en” custom field containing their inversed id’s.
Then I used wet’s (one more reason to thank him!) artifice to the effect of the impossible ideal:
<txp:article_custom id="<txp:custom_field name="ro-en" />" form="readlink" />
“readlink” form has a conditional that discerns between english and romanian sections and puts ‘english’ or ‘romanian’ accordingly so as to direct the reader to the other language version.
That’s it. Find the adapted artifice below:
<txp:if_custom_field name="ro-en">
<txp:php>
$a = custom_field (array ('name' => 'ro-en'));
echo article_custom (array(
'id' => $a,
'form' => 'readlink'
));
</txp:php>
</txp:if_custom_field>
If anybody thinks I should edit this post and put most of it in the “How to’s and Examples”… section, please let me know.
Last edited by quinceginger (2007-07-01 20:08:36)
Offline
Re: Academic bilingual site
quinceginger – outstanding work! As an author of Serene I’m really pleased to see such modifications. :) Cheers!
Last edited by mourner (2007-07-01 20:48:02)
Offline
#6 2007-07-01 21:36:45
- quinceginger
- Member
- From: Romania
- Registered: 2006-08-21
- Posts: 29
Re: Academic bilingual site
Vlad, I am also very pleased to hear this from you! By the way, the original template is awesome, to start with. Thanks!
Last edited by quinceginger (2007-07-01 21:42:39)
Offline
Re: Academic bilingual site
Thanks for the explanation, it is well thought and works very well.
Offline
#8 2007-07-02 13:26:10
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: Academic bilingual site
A how to would be great if you have the time.
Offline
#9 2007-07-05 20:37:55
- quinceginger
- Member
- From: Romania
- Registered: 2006-08-21
- Posts: 29
Re: Academic bilingual site
Lee, I will try to put a how to in the wiki.
Offline
#10 2007-07-30 21:02:30
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
Re: Academic bilingual site
lee wrote:
A how to would be great if you have the time.
Yours is an elegantly simple solution to a seemingly difficult problem.
I second the request for the wiki explanation. Please add a message here when you’ve written your Wiki entry.
Offline
#11 2007-10-05 14:23:42
- quinceginger
- Member
- From: Romania
- Registered: 2006-08-21
- Posts: 29
Re: Academic bilingual site
Hi,
I have added this to the wiki:
Managing bilingualism without a plug-in
Last edited by quinceginger (2007-10-05 14:24:42)
Offline
#12 2007-10-05 17:56:18
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: Academic bilingual site
Thanks very much.
Offline