Code Monkey home page Code Monkey logo

yams's People

Contributors

deesen avatar ericfilippi avatar goldsky avatar jako avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

yams's Issues

Tab lang content width 100%

Hi Dennis,

Do you know where to change this table style?
Looked true all YAMS files but can't find it.
I'd like to have it 100% width.

width-100

width

Transliteration for every lang possible?

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.

EVO 3.1.7 page caching issues

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..

Redirects in infinity loop

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 !

YAMs php warning after evolution 2.0.2 migration

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.

Transparent RewriteRule

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!

Problem with <li> in pagebuilder block + YAMS.

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?

Maintain YAMS

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.

Wrong config encoding

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.

[F] Alias path don't show

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)

modx 1.2.0 update to 1.2.1 YAMS not working on frontend

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.

The "vericode-image" of the eForm snippet isn't showing up with the current YAMS version

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“.

YAMS (1.2.0 RC7) and the „if (1.4)“ snippet in Modx 1.4.8.

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>
`]]

mm_rules -> mm_renameField don't work

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.

Parse Error

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)

YAMS and content limit

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+]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.