2010-03-09, 16:57:58
holesovice Wrote:So for what I want ( a small site) it can be done!For sure, it can be done for bigger sites too—as long as you don’t mind having to fill in a x-amount of extra fields on page creation (and these multiplied by the number of languages you’re using).
holesovice Wrote:Yes I understand the debate about the need for a plugin.Sorry, we got of track a little there.
If you just want this for your little site and don’t mind manually setting up something we could call “links between pages†you can start developing it right now. Throw in Mike’s CustomFields plugin for the extra settings you need. If you’re website only sports 2 languages you’ll need 2 fields. In the first field you throw an identifier (maybe just a 0 of a 1) so you can tell what language the current page is written in. In the second field you fill in the page slug of the equal page in the other language. Now you use your theme coding to link these together.
Of course it would leave the whole menu function still open. You’ll need to recode a menu function that will check the variable of the first custom field and only display pages that share the same variable. This way you’ll only display one language in the menu at a time.
Don’t know how much of this coding you think you are capable of, so don’t hesitate to ask us for help!
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!