@French Fries. Are you using multilingual aliases? I suspect that treasurechest is outputting standard MODx URLs and that YAMS is responding with page not found rather than redirecting to a multilingual alias. It would improve compatibility with standard MODx resources (Ditto included) if YAMS would redirect from normal MODx URLs to multilingual ones. Let me see what I can do about this.
RewriteRule ^en/(.*)\.js$ $1.js [L]
Was treasurechest working with a previous version of YAMS?! How has it stopped working now?
HI, and thanks again. The exclude rule apparently doesn’t work, i’m still redirected to www.epsbv.com/nl/manager when browsing to www.epsbv.com/manager/ (nl is my default language). This is my .htaccess file:
Quote from: EPSBV at Sep 24, 2009, 08:46 AMBefore the friendly URLs stuff and after the RewriteBase line you need to have
Next problem: After changing the .htaccess file I am unable to get into the manager. when trying to reach it i get diverted to ../nl/manager.
How to solve?
# Exclude /assets and /manager directories from rewrite rules RewriteRule ^(manager|assets) - [L]
For info, I also have
# Fix Apache internal dummy connections from breaking [(site_url)] cache RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC] RewriteRule .* - [F,L]
# 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 /
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets|2005|stats) - [L]
# 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]
# Friendly URLs
RewriteEngine On
RewriteBase /
# The Friendly URLs part
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 ^nl/(.*)$ index.php?q=$1&yams_lang=nl [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 5The problem is that you have
HI, and thanks again. The exclude rule apparently doesn’t work, i’m still redirected to www.epsbv.com/nl/manager when browsing to www.epsbv.com/manager/ (nl is my default language). This is my .htaccess file:
...
RewriteEngine On RewriteBase /
# 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 /
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets|2005|stats) - [L]
# 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]
# Redirect from mydomain.com/rootname to mydomain.com/rootname/
RewriteRule ^en$ en/ [R=301,L]
RewriteRule ^nl$ nl/ [R=301,L]
# The Friendly URLs part
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 ^nl/(.*)$ index.php?q=$1&yams_lang=nl [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[[Wayfinder? &startId=`0`]]
[[Wayfinder? &startId=`0` &rowTpl=`@FILE:assets/modules/yams/tpl/wayfinder/docr/row.tpl`]]
[[YAMS? &get=`data` &from=`pagetitle` &docid=`[+id+]`]]
[[YAMS? &get=`list`]]
Have you made your modx-minimal-template multilingual and populated it with some multilingual content? Assuming that you have a) already set up your language settings on the Language Settings tab, b) updated your .htaccess file and c) configured your ManagerManager plugin with rules for YAMS, then you need to do the following: Go to Modules > YAMS > Multilingual Templates and make modx-minimal-template multilingual. Then edit your document and populate it with some multilingual content.
While installing and playing around I seem not be able to solve the following problem.
Everything works fine (Back- and Frontend), expect the Wayfinder-Call to build the navigation.
I wonder if you have an idea.
I’m using the standard modx-minimal-template, so nothing customized yet.
[[YAMS? &get=`data` &from=`pagetitle` &docid=`[*id*]`]]
[[YAMS? &get=`data` &from=`pagetitle` &docid=`[*id*]`]]
[[YAMS? &get=`data` &from=`pagetitle` &docid=`[*id*]`]] [[YAMS? &get=`list`]]
. [[Wayfinder? &startId=`0` &rowTpl=`@FILE:assets/modules/yams/tpl/wayfinder/docr/row.tpl`]]
But, there is another strange thing.
If I call two [[YAMS]]:
[[YAMS? &get=`data` &from=`pagetitle` &docid=`[*id*]`]] [[YAMS? &get=`list`]]
there is only the output of the first one (did try also with non cacheable [!!]).