You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @clutchmarketing
The next release of MagicPreview will include the event OnResourceMagicPreview which will allow other extras to hook in to the preview action and parse the output needed.
To make Lingua compatible, the maintainer/contributor can use a plugin like this:
<?php
switch ($modx->event->name) {
case 'OnResourceMagicPreview':
/** @var modResource $resource */
$resource->setContent() etc.
// Parse resource here to include all values before displaying preview
break;
}
The variable $resource is the resource that is being previewed.
When the multi-lingual plugin Lingua is installed, Magic Preview doesn't provide a preview of the template variables in any of the languages.
The text was updated successfully, but these errors were encountered: