deesen / yams Goto Github PK
View Code? Open in Web Editor NEWOriginal Fork of YAMS (Yet Another Multilingual Solution for Evolution CMS)
Home Page: http://modxcms.com/forums/index.php/board,381.0.html
Original Fork of YAMS (Yet Another Multilingual Solution for Evolution CMS)
Home Page: http://modxcms.com/forums/index.php/board,381.0.html
Last version 1.2.0 RC3 has an issue in yams.config.inc.php file encoding.
I have - ANSI (generated automatically)
Must be - UTF8-without BOM
If wrong encoding, then languages names and backend can't be saved normally.
$modx->insideManager() is deprecated function
$modx->fetchRow() is deprecated function
Hi!
I know it's works without YAMS. So I wonder why it's doesn't work for this website.
Here, the .htaccess file config:
#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]
# Exclude /assets and /manager directories and images from rewrite rules
RewriteRule ^(manager|assets|js|css|images|img)/.*$ - [L]
RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
# Personal request
RewriteRule ^fr/actualites/(.*)$ fr/actualites?filter=$1 [L,N]
# Redirect from mydomain.com/rootname to mydomain.com/rootname/
RewriteRule ^en$ en/ [R=301,L]
RewriteRule ^fr$ fr/ [R=301,L]
RewriteRule ^de$ de/ [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^fr/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^de/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
In a "normal" case (without YAMS), when I go to this page:
/fr/actualites/first-article.html
The redirection is transparent and I stay on this page, this exactly the same URL and I have an access to the $_GET['filter'] (in my actualites Resource)
-> $_GET['filter'] = 'first-article.html'
But, here, I'm redirected to:
/fr/actualites?filter=first-article.html
Am I clear? So, how to change this?
Help!
Hi! I've got a weird problem with yams in combination with pagebuilder. If my content has an <li>
element the output in my pagebuilder block is totally empty.
I use the following in my pagebuilder block TPL:
[[YAMS? &get=`text` &from=`en::<p>[+txt_en+]</p>||nl::<p>[+txt_nl+]</p>`]]
If [+txt_nl+]
or [+txt_en+]
contains a list with a <li>
element the output is empty.
I think it has to do with YAMS but I'm not sure how I would troubleshoot/debug this..
If I dont use yams in the TPL like [+txt_nl+]
it works. Also if I try this in the TPL [[YAMS? &get=`text` &from=`en::<p>[+txt_en+]</p>||nl::<p><ul><li>test</li></ul></p>`]]
it also works.
Any suggestions how to debug this? Someone knows whats up?
[+placeholder_(yams_id)+]
not working ?
Hi Dennis,
Do you know if this is a YAMS bug?
https://forums.modx.com/thread/100311/problem-with-yams
I have updated a website with YAMS from 2.0.4 to 3.1.7 and all looked to be working.
But it seems there is weird behaviour on the site.
When i browse the site the alias is okay but on some pages I keep seeing a different page.
Only when I save a random page in the manager and refresh the page/alias on the front of the website the correct page is being previewed.
I really have no idea what's going on. Tried allot to fix it like disabling caching etc. but it still keeps having the weird behaviour of showing the wrong content!
Need to revert the site now and will try again but I think there is something not working well..
I have only 4 months experience with Git so I´m not sure I am fit enough to take over. But I want to have an uptodate-YAMS ;-) so I would like to maintain it.
Hello Deesen,
I have an issue with YAMS (1.2.0 RC6) and the captcha (vericode-image) in eForm (1.4.9) in 3 different projects with Evolution 1.4.1.
In projects without YAMS or with an older version of it, the „vericode-image“ is showing up normally but in installations with the current YAMS version it is missing.
When I check the source code with an Inspector the path of the image seems to be normal (http://projectname/manager/includes/veriword.php?rand=214971286) but the image is not showing up. I have only the message „Graphics could not be loaded“.
Hi,
i have a problem with Modx Evo 1.2 and YAMS RC5.
In event Log i have many log like this:
Plugin - YAMS / PHP Parse Error
Trying to get property of non-object
« MODX Parse Error »
Error : Undefined offset: 2
ErrorType[num] NOTICE[8]
File assets/modules/yams/class/yams.class.inc.php
Line 2488
Source $urlRootName = $matches[2];
Current Plugin YAMS(OnWebPageInit)
mm_renameField('pagetitle','Custom name here');
require( $modx->config['base_path'] . 'assets/modules/yams/yams.mm_rules.inc.php' );
when adding the require rule renaming fields doesn't work anymore.
Hello,
After migrating from evolution 1.4.10 to 2.0.2, I get some errors in the manager back office 👍
Warning: Use of undefined constant IN_PARSER_MODE - assumed 'IN_PARSER_MODE' (this will throw an Error in a future version of PHP) in root_dir/core/src/Core.php on line 745
Warning: Use of undefined constant MODX_API_MODE - assumed 'MODX_API_MODE' (this will throw an Error in a future version of PHP) in root_dir/assets/modules/yams/yams.plugin.inc.php on line 35
When I deactivate YAMs plugin, both errors disappear. I guess that there is a problem in yams.plugin.inc.php on line 35 but I don't want to break everything adding quotes ...
Where is defined MODX_API_MODE constant ?
Can I fix the problem replacing MODX_API_MODE by 'MODX_API_MODE' ? => but this seems to be not so clean.
Thank you for your help.
Eric.
When de-select Use alias path as alias it should not show the subfolder in the alias but it does.
(I have some seo pages which I like to add in a folder/container and don't show the alias in the url.
For my other pages it needs to show the alias)
[ Although this extension is not maintained, I live in hope someone will take it on ]
With MODX Evo 1.0.15 and the latest YAMS (1.2.0rc3) I cannot get the multilingual aliases to be automatically generated. I've checked the steps in http://forums.modx.com/thread/45544/fixed-autogenerating-multilingual-aliases---is-it-possible and everything is enabled.
Ditto -> [+content:notags:limit=100
+]
limit doesn't work :(
[[Ditto?
&parents=`8`
&total=`4`
&showPublishedOnly=`1`
&showInMenuOnly=`0`
&orderBy=`menuindex ASC`
&noResults=` `
&tpl=`projecten-inhoud`
&tplAlt=`projecten-inhoud-alt`
&extenders=`@FILE assets/modules/yams/yams.extender.inc.php`
&id=`(yams_id)`
&language=`(yams_mname)`
]]
<div class="item even">
<div class="info">
<div class="img"><a href="[~[+id+]~]"><img src="[[phpthumb? &input=`[+p-thumb+]` &options=`w=360,h=260,zc=1`]]" alt="[+p-kop_(yams_id)+]" /></a></div>
<div class="txt">
<h4>[+description+]</h4>
[+content:notags:limit=`100`+]
</div>
<a href="[~[+id+]~]" class="btn"><span>[!YAMS? &get=`text` &from=`nl::Meer information||en::More information`!]</span></a>
<div class="clear"></div>
</div>
</div>
** Updated [+content:notags:limit=100
+]
The transliteration isn't working for YAMS.
Is it possible to get it working for each lang?
Maybe extent YAMS and select the lang file or let it automaticly determain what trans lang needs to be choosen. We already choose the manager language on configuration.
Hello Deesen,
I have a new issue with YAMS (1.2.0 RC7) and the „if (1.4)“ snippet in Modx 1.4.8.
I have stile an older copy of my project (Modx 1.4.6) with the same .tpl below and the same snippets where everything works fine, but in Modx 1.4.8 it doesn't work anymore. (both server settings are on PHP 7.1)
As you will see, I want that the whole code won’t be written if there is no image in the TV-filed. But no mater how I write the code [[ `’ ]]
, it doesn't work, even not with PHx.
If the TV Field is empty (no image), the whole code will still be written.
Do you have any idea what this could cause?
(I kept the code short here to kep it simple)
[[if? &is=`[[YAMS? &get=`tv` &from=`content_image` &docid=`[*id*]`]]:empty` &then=`` &else=`
<div class="content_img [*float*]">
<img src="[[YAMS? &get=`tv` &from=`content_image` &docid=`[*id*]`]]" alt="">
</div>
`]]
If I write it that way, it's the other way round (no image no tags):
[[if? &is=`[[YAMS? &get=`tv` &from=`content_image` &docid=`[*id*]`]]:!empty` &then=`
<div class="content_img [*float*]">
<img src="[[YAMS? &get=`tv` &from=`content_image` &docid=`[*id*]`]]" alt="">
</div>
`]]
Help !
Fresh install, new website. MODX 1.4.5 - YAMS 1.2.0 RC7
When I go to the first page http://sub.domain.com/ -> redirect to http://sub.domain.com/fr/home.html -> redirect to http://sub.domain.com/ -> etc. (no ending)
If I go to an secondary page: http://sub.domain.com/presentation.html -> redirect to http://sub.domain.com/http://sub.domain.com/fr/presentation.html and display the default page (not the presentation.html).
Yes, http://sub.domain.com twice !!!!
My .htaccess file
#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]
# Exclude /assets and /manager directories and images from rewrite rules
RewriteRule ^(manager|assets|js|css|images|img)/.*$ - [L]
RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
# Redirect from mydomain.com/rootname to mydomain.com/rootname/
RewriteRule ^en$ en/ [R=301,L]
RewriteRule ^fr$ fr/ [R=301,L]
RewriteRule ^de$ de/ [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^fr/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^de/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
I don't understand.
Heeeelp !
Hi there. I just finished an update to Modx 1.2.1 and my frontend shows me this message: "The nest of values are hard to read. Please use three different quotes."
And under "Modul/YAMS/ I can't even change any settings. I geht this messages.
Could not set redirection.
Could not set the http status for redirection to the default language.
Could not set the http status for redirection to non-default languages.
Could not set the http status for changing languages.
Could not set the list of index.php?id= document ids.
Could not set the URL conversion mode.
or
Failed to set active templates: Array( [22] => [10], ...
When I disable the YAMS Plugin, the webpage is showing up normal but without the funktion of course.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.