Dear PMS and everybody!
I’d like to ask you to help me to resolve a problem. I’ve installed ModX Evolution 1.0, YAMS 1.1.7 RC7, made the module, snippet, chunk, managermanager set ups. I have a very simple template, and 2 pre-created very simple sites.
Already made this simple template to a multi lingual one, and got this response, seems fine, and works fine, can fill all the contents on a resource creation session.
Associated template variable "pagetitle_en" with template number 4 .
Associated template variable "pagetitle_hu" with template number 4 .
Associated template variable "longtitle_en" with template number 4 .
Associated template variable "longtitle_hu" with template number 4 .
Associated template variable "description_en" with template number 4 .
Associated template variable "description_hu" with template number 4 .
Associated template variable "introtext_en" with template number 4 .
Associated template variable "introtext_hu" with template number 4 .
Associated template variable "menutitle_en" with template number 4 .
Associated template variable "menutitle_hu" with template number 4 .
Associated template variable "content_en" with template number 4 .
Associated template variable "content_hu" with template number 4 .
All right. But when i’m trying to publish and prewiev the site, i get an Object not found response, and i can’t do anything to resolve the problem. If i switch off the multi lingual option on my template, i can reach the site.
I’m a very newbie in this, so i would like to ask some questions:
- Do i have to make folders, files anywhere? (i think no, but i might be wrong)
- Do i have to build a container/resource tree to be able to enjoy the advantages of a multi lingual solution?
- What am i doing wrong? :’(
My goal is to make a site similar to this:
http://www.galerie-interart.com/en/home.html
This is my template:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"
http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title>[*pagetitle*]</title>
<style type="text/css">
...
</style>
</head>
<body>
<div id="content">
<h1>[*longtitle*]</h1>
[*content*]
<h4>Jump to</h4>
{{test_menu}}
{{test_footer}}
</div>
</body>
</html>
I know it is very very simple and not ready for multi lingual use. Is it the problem?
This is my htaccess file:
# For full documentation and other suggested options, please see
#
http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
# including for unexpected logouts in multi-server/cloud environments
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^example\.com [NC]
#RewriteRule (.*)
http://example.com/$1 [R=301,L]
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# For Friendly URLs
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# For Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1&yams_lang=en [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^en/(.*)$ index.php?q=$1&yams_lang=en [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^hu/(.*)$ index.php?q=$1&yams_lang=hu [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Reduce server overhead by enabling output compression if supported.
#php_flag zlib.output_compression On
#php_value zlib.output_compression_level 5
There is a picture about my settings:
http://ysera.wplanet.hu/yams_problem.png
And an another about that annoying response:
http://ysera.wplanet.hu/yams_problem_2.png
Thank you in advance!
Sincerely
Ysera
P.S.: Can i find a good tutorial somewhere for absolute newbies (ModX+YAMS) to get started?