This is a reply to burn’s questions on the
YAMS - am i the only one...? thread.
Firstly, burn, I think that you might not be using the latest version. I made quite a few documentation updates in the latest version. Please grab version 1.0.3-alpha from
YAMS’ page in the MODx repository.
Quote from: burn at Jul 23, 2009, 12:46 PM
- OnDocFormSave (Only required if you have selected the option to synchronise
the main document pagetitle with the default language pagetitle for
mulitlingual documents)
what does red mean?
I agree that this is confusing. The text should read:
Only required if you would like to selected the option to synchronise the main document pagetitle with the default language pagetitle for mulitlingual documents
For documents which are associated with a multilingual template, there is one page title for each language as well as the original document page title. The original document page title is redundant - since it doesn’t appear on the web page output. However, it is used by MODx to label the document in the document tree. The option referred will automatically update the document pagetitle with the contents of the default language pagetitle when it is saved.
In future I will remove the advice in red text and instead suggest that YAMS is always associated with the OnDocFormSave event. If the synchronisation option is not selected, YAMS will just do nothing.
Quote from: burn at Jul 24, 2009, 06:57 AM
how and where would i have to set this (= Server Name mode and/or Root Name) up?
The modes (server name, root name and query param) are not set directly by you. Rather, you decide how you want to configure YAMS and YAMS decides what modes are active dependent on how you set it up. You configure these settings on the "Language Settings" tab of the YAMS module. So, if you specify a different server name for each language, YAMS will determine that server name mode is active. If you specify a different root name for each language, YAMS will determine that root name mode is active. If you don’t set any server or root names, YAMS will put you in query param mode.
Quote from: burn at Jul 25, 2009, 05:32 AM
step 3 (Configure Language Settings) also seems to be fine, i want to have english as default and german as 2nd language, no monolingual pages, i edited yams.config.inc.php and changed it accordingly, see:

Just a note that you shouldn’t have to edit yams.config.inc.php. YAMS should be (almost) completely configurable via the module interface and I advise that you use this approach to be sure that you don’t introduce any inconsistencies in the config file. Let me know if you have any problems with the module interface. Anyway, your screenshot looks fine apart from the fact that German is currently set as your default, not English.
Your set-up looks very similar to the one I use as my main
example site, so I am hopeful that we should be able to get this to work. One difference appears to be that you are using friendly alias paths, but I am not. I am not sure if anyone has tested it with friendly alias paths switched on before, so you might be the first and so you might encounter some gremlins!
Quote from: burn at Jul 25, 2009, 05:32 AM
but now i’m really stuck... as i don’t know how to implement step 5 (Update URLs) the frontend gives me a 404 since it consequently doesn’t find e.g http://localhost/de/modx/features.html -- what gives, any ideas?
Please can you confirm something for me? Do you get a 404 not found if you browse directly to
http://localhost/de/modx/features.html, which I presume is the correct multilingual URL, or do you get it if you follow a link from another page? Please can you try without friendly alias paths to see if that makes a difference?
Quote from: burn at Jul 25, 2009, 05:32 AM
this is what i’d like to see soon:
http://img10.imageshack.us/img10/473/yamsmultilingualdocumen.png
For that you’ll need to
1) install
ManagerManager,
2) make sure that you have
$config_chunk = 'mm_rules';
specified in your ManagerManager plugin, and
3) finally you need to make sure you have a chunk called mm_rules with the following code in it:
require( $modx->config['base_path'] . 'assets/modules/yams/yams.mm_rules.inc.php' );
This will give you the nice tabbed layout you are after when you edit your multilingual documents.
Quote from: burn at Jul 25, 2009, 05:32 AM
BTW, in my YAMS - Module - System Events it shows an error: "Undefined variable: isAltRow", googled for it, no info on that.
it’s not a showstopper, is it?!
I thought this was bug was squashed by me a while ago. That’s what makes me think that you are using an older version. Please let me know if you still get this message when using the latest version. By the way, yes - it should be harmless.